mirror of https://github.com/mgba-emu/mgba.git
GBA: Small cleanup
This commit is contained in:
parent
a8beb9f5f3
commit
357008ff40
|
@ -154,7 +154,7 @@ static void _GBACoreSetAVStream(struct mCore* core, struct mAVStream* stream) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool _GBACoreLoadROM(struct mCore* core, struct VFile* vf) {
|
static bool _GBACoreLoadROM(struct mCore* core, struct VFile* vf) {
|
||||||
return GBALoadROM2(core->board, vf);
|
return GBALoadROM(core->board, vf);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool _GBACoreLoadBIOS(struct mCore* core, struct VFile* vf, int type) {
|
static bool _GBACoreLoadBIOS(struct mCore* core, struct VFile* vf, int type) {
|
||||||
|
|
|
@ -416,7 +416,7 @@ void GBADetachDebugger(struct GBA* gba) {
|
||||||
gba->cpu->components[GBA_COMPONENT_DEBUGGER] = 0;
|
gba->cpu->components[GBA_COMPONENT_DEBUGGER] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GBALoadMB(struct GBA* gba, struct VFile* vf, const char* fname) {
|
bool GBALoadMB(struct GBA* gba, struct VFile* vf) {
|
||||||
GBAUnloadROM(gba);
|
GBAUnloadROM(gba);
|
||||||
gba->romVf = vf;
|
gba->romVf = vf;
|
||||||
gba->pristineRomSize = vf->size(vf);
|
gba->pristineRomSize = vf->size(vf);
|
||||||
|
@ -444,7 +444,7 @@ bool GBALoadMB(struct GBA* gba, struct VFile* vf, const char* fname) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GBALoadROM2(struct GBA* gba, struct VFile* vf) {
|
bool GBALoadROM(struct GBA* gba, struct VFile* vf) {
|
||||||
GBAUnloadROM(gba);
|
GBAUnloadROM(gba);
|
||||||
gba->romVf = vf;
|
gba->romVf = vf;
|
||||||
gba->pristineRomSize = vf->size(vf);
|
gba->pristineRomSize = vf->size(vf);
|
||||||
|
|
|
@ -168,14 +168,14 @@ void GBASetBreakpoint(struct GBA* gba, struct mCPUComponent* component, uint32_t
|
||||||
uint32_t* opcode);
|
uint32_t* opcode);
|
||||||
void GBAClearBreakpoint(struct GBA* gba, uint32_t address, enum ExecutionMode mode, uint32_t opcode);
|
void GBAClearBreakpoint(struct GBA* gba, uint32_t address, enum ExecutionMode mode, uint32_t opcode);
|
||||||
|
|
||||||
bool GBALoadROM2(struct GBA* gba, struct VFile* vf);
|
bool GBALoadROM(struct GBA* gba, struct VFile* vf);
|
||||||
bool GBALoadSave(struct GBA* gba, struct VFile* sav);
|
bool GBALoadSave(struct GBA* gba, struct VFile* sav);
|
||||||
void GBAYankROM(struct GBA* gba);
|
void GBAYankROM(struct GBA* gba);
|
||||||
void GBAUnloadROM(struct GBA* gba);
|
void GBAUnloadROM(struct GBA* gba);
|
||||||
void GBALoadBIOS(struct GBA* gba, struct VFile* vf);
|
void GBALoadBIOS(struct GBA* gba, struct VFile* vf);
|
||||||
void GBAApplyPatch(struct GBA* gba, struct Patch* patch);
|
void GBAApplyPatch(struct GBA* gba, struct Patch* patch);
|
||||||
|
|
||||||
bool GBALoadMB(struct GBA* gba, struct VFile* vf, const char* fname);
|
bool GBALoadMB(struct GBA* gba, struct VFile* vf);
|
||||||
|
|
||||||
bool GBAIsROM(struct VFile* vf);
|
bool GBAIsROM(struct VFile* vf);
|
||||||
bool GBAIsMB(struct VFile* vf);
|
bool GBAIsMB(struct VFile* vf);
|
||||||
|
|
Loading…
Reference in New Issue