mirror of https://github.com/mgba-emu/mgba.git
GBA Savedata: Early return in force type if types already match
This commit is contained in:
parent
1f57dec081
commit
981072a299
|
@ -195,6 +195,9 @@ bool GBASavedataLoad(struct GBASavedata* savedata, struct VFile* in) {
|
|||
}
|
||||
|
||||
void GBASavedataForceType(struct GBASavedata* savedata, enum SavedataType type) {
|
||||
if (savedata->type == type) {
|
||||
return;
|
||||
}
|
||||
if (savedata->type != SAVEDATA_AUTODETECT) {
|
||||
struct VFile* vf = savedata->vf;
|
||||
int mapMode = savedata->mapMode;
|
||||
|
|
Loading…
Reference in New Issue