mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-02 09:03:37 +00:00
Add RSP.romname
This commit is contained in:
parent
c847ec9091
commit
9cda50c677
2
N64.cpp
2
N64.cpp
|
@ -1,9 +1,11 @@
|
|||
#include "N64.h"
|
||||
|
||||
u8 *HEADER;
|
||||
u8 *DMEM;
|
||||
u8 *IMEM;
|
||||
u64 TMEM[512];
|
||||
u8 *RDRAM;
|
||||
|
||||
u32 RDRAMSize;
|
||||
|
||||
N64Regs REG;
|
||||
|
|
1
N64.h
1
N64.h
|
@ -35,6 +35,7 @@ struct N64Regs
|
|||
};
|
||||
|
||||
extern N64Regs REG;
|
||||
extern u8 *HEADER;
|
||||
extern u8 *DMEM;
|
||||
extern u8 *IMEM;
|
||||
extern u8 *RDRAM;
|
||||
|
|
9
RSP.cpp
9
RSP.cpp
|
@ -263,6 +263,15 @@ void RSP_Init()
|
|||
RSP.uc_start = RSP.uc_dstart = 0;
|
||||
RSP.bLLE = false;
|
||||
|
||||
// get the name of the ROM
|
||||
for (int i = 0; i < 20; ++i)
|
||||
RSP.romname[i] = HEADER[(32 + i) ^ 3];
|
||||
RSP.romname[20] = 0;
|
||||
|
||||
// remove all trailing spaces
|
||||
while (RSP.romname[strlen(RSP.romname) - 1] == ' ')
|
||||
RSP.romname[strlen(RSP.romname) - 1] = 0;
|
||||
|
||||
memset(&gSP, 0, sizeof(gSPInfo));
|
||||
|
||||
gDP.loadTile = &gDP.tiles[7];
|
||||
|
|
1
RSP.h
1
RSP.h
|
@ -8,6 +8,7 @@ typedef struct
|
|||
u32 PC[18], PCi, busy, halt, close, DList, uc_start, uc_dstart, cmd, nextCmd;
|
||||
s32 count;
|
||||
bool bLLE;
|
||||
char romname[21];
|
||||
} RSPInfo;
|
||||
|
||||
extern RSPInfo RSP;
|
||||
|
|
|
@ -140,6 +140,7 @@ void PluginAPI::UpdateScreen()
|
|||
}
|
||||
|
||||
void PluginAPI::_initiateGFX(const GFX_INFO & _gfxInfo) const {
|
||||
HEADER = _gfxInfo.HEADER;
|
||||
DMEM = _gfxInfo.DMEM;
|
||||
IMEM = _gfxInfo.IMEM;
|
||||
RDRAM = _gfxInfo.RDRAM;
|
||||
|
|
Loading…
Reference in New Issue
Block a user