mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +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"
|
#include "N64.h"
|
||||||
|
|
||||||
|
u8 *HEADER;
|
||||||
u8 *DMEM;
|
u8 *DMEM;
|
||||||
u8 *IMEM;
|
u8 *IMEM;
|
||||||
u64 TMEM[512];
|
u64 TMEM[512];
|
||||||
u8 *RDRAM;
|
u8 *RDRAM;
|
||||||
|
|
||||||
u32 RDRAMSize;
|
u32 RDRAMSize;
|
||||||
|
|
||||||
N64Regs REG;
|
N64Regs REG;
|
||||||
|
|
1
N64.h
1
N64.h
|
@ -35,6 +35,7 @@ struct N64Regs
|
||||||
};
|
};
|
||||||
|
|
||||||
extern N64Regs REG;
|
extern N64Regs REG;
|
||||||
|
extern u8 *HEADER;
|
||||||
extern u8 *DMEM;
|
extern u8 *DMEM;
|
||||||
extern u8 *IMEM;
|
extern u8 *IMEM;
|
||||||
extern u8 *RDRAM;
|
extern u8 *RDRAM;
|
||||||
|
|
9
RSP.cpp
9
RSP.cpp
|
@ -263,6 +263,15 @@ void RSP_Init()
|
||||||
RSP.uc_start = RSP.uc_dstart = 0;
|
RSP.uc_start = RSP.uc_dstart = 0;
|
||||||
RSP.bLLE = false;
|
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));
|
memset(&gSP, 0, sizeof(gSPInfo));
|
||||||
|
|
||||||
gDP.loadTile = &gDP.tiles[7];
|
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;
|
u32 PC[18], PCi, busy, halt, close, DList, uc_start, uc_dstart, cmd, nextCmd;
|
||||||
s32 count;
|
s32 count;
|
||||||
bool bLLE;
|
bool bLLE;
|
||||||
|
char romname[21];
|
||||||
} RSPInfo;
|
} RSPInfo;
|
||||||
|
|
||||||
extern RSPInfo RSP;
|
extern RSPInfo RSP;
|
||||||
|
|
|
@ -140,6 +140,7 @@ void PluginAPI::UpdateScreen()
|
||||||
}
|
}
|
||||||
|
|
||||||
void PluginAPI::_initiateGFX(const GFX_INFO & _gfxInfo) const {
|
void PluginAPI::_initiateGFX(const GFX_INFO & _gfxInfo) const {
|
||||||
|
HEADER = _gfxInfo.HEADER;
|
||||||
DMEM = _gfxInfo.DMEM;
|
DMEM = _gfxInfo.DMEM;
|
||||||
IMEM = _gfxInfo.IMEM;
|
IMEM = _gfxInfo.IMEM;
|
||||||
RDRAM = _gfxInfo.RDRAM;
|
RDRAM = _gfxInfo.RDRAM;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user