Qt: Enable ROM preloading by default

This commit is contained in:
Vicki Pfau 2025-02-11 05:12:35 -08:00
parent daf01b03d5
commit 6221cd2d06
7 changed files with 9 additions and 4 deletions

View File

@ -60,6 +60,7 @@ Misc:
- Qt: Allow passing multiple games on command line for multiplayer (closes mgba.io/i/3061)
- Qt: Support building against Qt 6
- Qt: Add shortcuts to increment fast forward speed (mgba.io/i/2903)
- Qt: Enable ROM preloading by default
- Res: Port hq2x and OmniScale shaders from SameBoy
- Res: Port NSO-gba-colors shader (closes mgba.io/i/2834)
- Res: Update gba-colors shader (closes mgba.io/i/2976)

View File

@ -149,6 +149,7 @@ ConfigController::ConfigController(QObject* parent)
mCoreConfigSetDefaultIntValue(&m_config, "sgb.borders", 1);
mCoreConfigSetDefaultIntValue(&m_config, "gb.colors", GB_COLORS_CGB);
#endif
mCoreConfigSetDefaultIntValue(&m_config, "preload", true);
mCoreConfigMap(&m_config, &m_opts);
mSubParserGraphicsInit(&m_subparsers[0], &m_graphicsOpts);

View File

@ -305,7 +305,7 @@ void CoreController::loadConfig(ConfigController* config) {
m_fastForwardMute = config->getOption("fastForwardMute", -1).toInt();
mCoreConfigCopyValue(&m_threadContext.core->config, config->config(), "volume");
mCoreConfigCopyValue(&m_threadContext.core->config, config->config(), "mute");
m_preload = config->getOption("preload").toInt();
m_preload = config->getOption("preload", true).toInt();
QSize sizeBefore = screenDimensions();
m_activeBuffer.resize(256 * 224 * sizeof(mColor));

View File

@ -263,7 +263,7 @@ private:
QString m_savePath;
bool m_patched = false;
bool m_preload = false;
bool m_preload = true;
bool m_saveBlocked = false;
uint32_t m_crc32;

View File

@ -36,7 +36,7 @@ signals:
private:
const mCoreConfig* m_config = nullptr;
MultiplayerController* m_multiplayer = nullptr;
bool m_preload = false;
bool m_preload = true;
};
}

View File

@ -747,7 +747,7 @@ void SettingsView::reloadConfig() {
loadSetting("patchPath", m_ui.patchPath);
loadSetting("cheatsPath", m_ui.cheatsPath);
loadSetting("showLibrary", m_ui.showLibrary);
loadSetting("preload", m_ui.preload);
loadSetting("preload", m_ui.preload, true);
loadSetting("showFps", m_ui.showFps, true);
loadSetting("cheatAutoload", m_ui.cheatAutoload, true);
loadSetting("cheatAutosave", m_ui.cheatAutosave, true);

View File

@ -1263,6 +1263,9 @@
<property name="text">
<string>Preload entire ROM into memory</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="10" column="1">