aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/qt_sdl
diff options
context:
space:
mode:
authorRSDuck <RSDuck@users.noreply.github.com>2023-08-01 03:00:41 +0200
committerRSDuck <RSDuck@users.noreply.github.com>2023-08-01 03:00:41 +0200
commit7731f66e553a396f136953798751d5b6f84a9dd1 (patch)
treeb302debfed8bdcccfbb76cee82f57d50c0774898 /src/frontend/qt_sdl
parent3efbf1b813e40c02e3e12488712f33bb0b63f468 (diff)
fix some UB
Diffstat (limited to 'src/frontend/qt_sdl')
-rw-r--r--src/frontend/qt_sdl/Config.cpp2
-rw-r--r--src/frontend/qt_sdl/ROMManager.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/frontend/qt_sdl/Config.cpp b/src/frontend/qt_sdl/Config.cpp
index afdaaee..b4d78f7 100644
--- a/src/frontend/qt_sdl/Config.cpp
+++ b/src/frontend/qt_sdl/Config.cpp
@@ -301,7 +301,7 @@ ConfigEntry ConfigFile[] =
{"AudioInterp", 0, &AudioInterp, 0, false},
{"AudioBitDepth", 0, &AudioBitDepth, 0, false},
{"AudioVolume", 0, &AudioVolume, 256, true},
- {"DSiVolumeSync", 0, &DSiVolumeSync, 0, true},
+ {"DSiVolumeSync", 1, &DSiVolumeSync, false, true},
{"MicInputType", 0, &MicInputType, 1, false},
{"MicDevice", 2, &MicDevice, (std::string)"", false},
{"MicWavPath", 2, &MicWavPath, (std::string)"", false},
diff --git a/src/frontend/qt_sdl/ROMManager.cpp b/src/frontend/qt_sdl/ROMManager.cpp
index a3a911c..3b2b72b 100644
--- a/src/frontend/qt_sdl/ROMManager.cpp
+++ b/src/frontend/qt_sdl/ROMManager.cpp
@@ -451,6 +451,7 @@ void UnloadCheats()
{
delete CheatFile;
CheatFile = nullptr;
+ AREngine::SetCodeFile(nullptr);
}
}