GBA Savedata: Early return in force type if types already match
Vicki Pfau vi@endrift.com
Sun, 16 Sep 2018 11:06:09 -0700
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
src/gba/savedata.c
→
src/gba/savedata.c
@@ -195,6 +195,9 @@ return true;
} 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;