Qt: Fix saving named states breaking when screenshot states disabled (fixes #3320)
This commit is contained in:
parent
1c739e39e7
commit
279485fc3e
1
CHANGES
1
CHANGES
@ -38,6 +38,7 @@ Other fixes:
|
|||||||
- Qt: Fix potential crash when configuring shortcuts
|
- Qt: Fix potential crash when configuring shortcuts
|
||||||
- Qt: Fix crash when applying changes to GB I/O registers in I/O view
|
- Qt: Fix crash when applying changes to GB I/O registers in I/O view
|
||||||
- Qt: Fix LCDC background priority/enable bit being mis-mapped in I/O view
|
- Qt: Fix LCDC background priority/enable bit being mis-mapped in I/O view
|
||||||
|
- Qt: Fix saving named states breaking when screenshot states disabled (fixes mgba.io/i/3320)
|
||||||
- Updater: Fix updating appimage across filesystems
|
- Updater: Fix updating appimage across filesystems
|
||||||
Misc:
|
Misc:
|
||||||
- Core: Handle relative paths for saves, screenshots, etc consistently (fixes mgba.io/i/2826)
|
- Core: Handle relative paths for saves, screenshots, etc consistently (fixes mgba.io/i/2826)
|
||||||
|
@ -736,7 +736,7 @@ void CoreController::saveState(const QString& path, int flags) {
|
|||||||
vf->read(vf, controller->m_backupSaveState.data(), controller->m_backupSaveState.size());
|
vf->read(vf, controller->m_backupSaveState.data(), controller->m_backupSaveState.size());
|
||||||
vf->close(vf);
|
vf->close(vf);
|
||||||
}
|
}
|
||||||
vf = VFileDevice::open(controller->m_statePath, O_WRONLY | O_CREAT | O_TRUNC);
|
vf = VFileDevice::open(controller->m_statePath, O_RDWR | O_CREAT | O_TRUNC);
|
||||||
if (!vf) {
|
if (!vf) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user