mirror of https://github.com/mgba-emu/mgba.git
GBA Saveata: Fix fumbled check
This commit is contained in:
parent
853b028892
commit
06b1b04c7d
|
@ -184,7 +184,7 @@ size_t GBASavedataSize(const struct GBASavedata* savedata) {
|
||||||
|
|
||||||
bool GBASavedataLoad(struct GBASavedata* savedata, struct VFile* in) {
|
bool GBASavedataLoad(struct GBASavedata* savedata, struct VFile* in) {
|
||||||
if (savedata->data) {
|
if (savedata->data) {
|
||||||
if (!in || savedata->type != SAVEDATA_FORCE_NONE) {
|
if (!in || savedata->type == SAVEDATA_FORCE_NONE) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
ssize_t size = GBASavedataSize(savedata);
|
ssize_t size = GBASavedataSize(savedata);
|
||||||
|
|
Loading…
Reference in New Issue