all repos — mgba @ ee6bbaf61c0890552b103e2a577eb94f9d453c77

mGBA Game Boy Advance Emulator

Qt: Show a warning when save file can't be opened
Vicki Pfau vi@endrift.com
Sun, 07 Jun 2020 15:52:26 -0700
commit

ee6bbaf61c0890552b103e2a577eb94f9d453c77

parent

35be6c121b93ef43c9249b8497121d1eb18c1d0c

3 files changed, 5 insertions(+), 2 deletions(-)

jump to
M CHANGESCHANGES

@@ -54,6 +54,7 @@ - Qt: Add transformation matrix info to sprite view

- Qt: Disable Replace ROM option when no game loaded - Qt: Defer texture updates until frame is drawn (fixes mgba.io/i/1590) - Qt: Set icon for Discord Rich Presence + - Qt: Show a warning when save file can't be opened 0.8.1: (2020-02-16) Emulation fixes:
M src/gba/gba.csrc/gba/gba.c

@@ -432,7 +432,7 @@ }

bool GBALoadSave(struct GBA* gba, struct VFile* sav) { GBASavedataInit(&gba->memory.savedata, sav); - return true; + return sav; } void GBAYankROM(struct GBA* gba) {
M src/platform/qt/CoreManager.cppsrc/platform/qt/CoreManager.cpp

@@ -109,7 +109,9 @@ info = QFileInfo(base + "/" + path);

} bytes = info.dir().canonicalPath().toUtf8(); mDirectorySetAttachBase(&core->dirs, VDirOpen(bytes.constData())); - mCoreAutoloadSave(core); + if (!mCoreAutoloadSave(core)) { + LOG(QT, ERROR) << tr("Failed to open save file. Is the save directory writable?"); + } mCoreAutoloadCheats(core); CoreController* cc = new CoreController(core);