mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 21:39:52 +00:00
Make the save and per-game flags non-optional
This commit is contained in:
parent
b3d85ae89a
commit
b84f723a7f
172
Core/Config.cpp
172
Core/Config.cpp
@ -159,16 +159,16 @@ static float DefaultUISaturation() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static const ConfigSetting generalSettings[] = {
|
static const ConfigSetting generalSettings[] = {
|
||||||
ConfigSetting("FirstRun", &g_Config.bFirstRun, true),
|
ConfigSetting("FirstRun", &g_Config.bFirstRun, true, true, false),
|
||||||
ConfigSetting("RunCount", &g_Config.iRunCount, 0),
|
ConfigSetting("RunCount", &g_Config.iRunCount, 0, true, false),
|
||||||
ConfigSetting("Enable Logging", &g_Config.bEnableLogging, true),
|
ConfigSetting("Enable Logging", &g_Config.bEnableLogging, true, true, false),
|
||||||
ConfigSetting("AutoRun", &g_Config.bAutoRun, true),
|
ConfigSetting("AutoRun", &g_Config.bAutoRun, true, true, false),
|
||||||
ConfigSetting("Browse", &g_Config.bBrowse, false),
|
ConfigSetting("Browse", &g_Config.bBrowse, false, true, false),
|
||||||
ConfigSetting("IgnoreBadMemAccess", &g_Config.bIgnoreBadMemAccess, true, true),
|
ConfigSetting("IgnoreBadMemAccess", &g_Config.bIgnoreBadMemAccess, true, true, false),
|
||||||
ConfigSetting("CurrentDirectory", &g_Config.currentDirectory, ""),
|
ConfigSetting("CurrentDirectory", &g_Config.currentDirectory, "", true, false),
|
||||||
ConfigSetting("ShowDebuggerOnLoad", &g_Config.bShowDebuggerOnLoad, false),
|
ConfigSetting("ShowDebuggerOnLoad", &g_Config.bShowDebuggerOnLoad, false, true, false),
|
||||||
ConfigSetting("CheckForNewVersion", &g_Config.bCheckForNewVersion, true),
|
ConfigSetting("CheckForNewVersion", &g_Config.bCheckForNewVersion, true, true, false),
|
||||||
ConfigSetting("Language", &g_Config.sLanguageIni, &DefaultLangRegion),
|
ConfigSetting("Language", &g_Config.sLanguageIni, &DefaultLangRegion, true, false),
|
||||||
ConfigSetting("ForceLagSync2", &g_Config.bForceLagSync, false, true, true),
|
ConfigSetting("ForceLagSync2", &g_Config.bForceLagSync, false, true, true),
|
||||||
ConfigSetting("DiscordPresence", &g_Config.bDiscordPresence, true, true, false), // Or maybe it makes sense to have it per-game? Race conditions abound...
|
ConfigSetting("DiscordPresence", &g_Config.bDiscordPresence, true, true, false), // Or maybe it makes sense to have it per-game? Race conditions abound...
|
||||||
ConfigSetting("UISound", &g_Config.bUISound, false, true, false),
|
ConfigSetting("UISound", &g_Config.bUISound, false, true, false),
|
||||||
@ -177,14 +177,14 @@ static const ConfigSetting generalSettings[] = {
|
|||||||
ReportedConfigSetting("EnableCheats", &g_Config.bEnableCheats, false, true, true),
|
ReportedConfigSetting("EnableCheats", &g_Config.bEnableCheats, false, true, true),
|
||||||
ConfigSetting("CwCheatRefreshRate", &g_Config.iCwCheatRefreshRate, 77, true, true),
|
ConfigSetting("CwCheatRefreshRate", &g_Config.iCwCheatRefreshRate, 77, true, true),
|
||||||
ConfigSetting("CwCheatScrollPosition", &g_Config.fCwCheatScrollPosition, 0.0f, true, true),
|
ConfigSetting("CwCheatScrollPosition", &g_Config.fCwCheatScrollPosition, 0.0f, true, true),
|
||||||
ConfigSetting("GameListScrollPosition", &g_Config.fGameListScrollPosition, 0.0f),
|
ConfigSetting("GameListScrollPosition", &g_Config.fGameListScrollPosition, 0.0f, true, false),
|
||||||
|
|
||||||
ConfigSetting("ScreenshotsAsPNG", &g_Config.bScreenshotsAsPNG, false, true, true),
|
ConfigSetting("ScreenshotsAsPNG", &g_Config.bScreenshotsAsPNG, false, true, true),
|
||||||
ConfigSetting("UseFFV1", &g_Config.bUseFFV1, false),
|
ConfigSetting("UseFFV1", &g_Config.bUseFFV1, false, true, false),
|
||||||
ConfigSetting("DumpFrames", &g_Config.bDumpFrames, false),
|
ConfigSetting("DumpFrames", &g_Config.bDumpFrames, false, true, false),
|
||||||
ConfigSetting("DumpVideoOutput", &g_Config.bDumpVideoOutput, false),
|
ConfigSetting("DumpVideoOutput", &g_Config.bDumpVideoOutput, false, true, false),
|
||||||
ConfigSetting("DumpAudio", &g_Config.bDumpAudio, false),
|
ConfigSetting("DumpAudio", &g_Config.bDumpAudio, false, true, false),
|
||||||
ConfigSetting("SaveLoadResetsAVdumping", &g_Config.bSaveLoadResetsAVdumping, false),
|
ConfigSetting("SaveLoadResetsAVdumping", &g_Config.bSaveLoadResetsAVdumping, false, true, false),
|
||||||
ConfigSetting("StateSlot", &g_Config.iCurrentStateSlot, 0, true, true),
|
ConfigSetting("StateSlot", &g_Config.iCurrentStateSlot, 0, true, true),
|
||||||
ConfigSetting("EnableStateUndo", &g_Config.bEnableStateUndo, &DefaultEnableStateUndo, true, true),
|
ConfigSetting("EnableStateUndo", &g_Config.bEnableStateUndo, &DefaultEnableStateUndo, true, true),
|
||||||
ConfigSetting("StateLoadUndoGame", &g_Config.sStateLoadUndoGame, "NA", true, false),
|
ConfigSetting("StateLoadUndoGame", &g_Config.sStateLoadUndoGame, "NA", true, false),
|
||||||
@ -193,12 +193,12 @@ static const ConfigSetting generalSettings[] = {
|
|||||||
ConfigSetting("RewindSnapshotInterval", &g_Config.iRewindSnapshotInterval, 0, true, true),
|
ConfigSetting("RewindSnapshotInterval", &g_Config.iRewindSnapshotInterval, 0, true, true),
|
||||||
|
|
||||||
ConfigSetting("ShowOnScreenMessage", &g_Config.bShowOnScreenMessages, true, true, false),
|
ConfigSetting("ShowOnScreenMessage", &g_Config.bShowOnScreenMessages, true, true, false),
|
||||||
ConfigSetting("ShowRegionOnGameIcon", &g_Config.bShowRegionOnGameIcon, false),
|
ConfigSetting("ShowRegionOnGameIcon", &g_Config.bShowRegionOnGameIcon, false, true, false),
|
||||||
ConfigSetting("ShowIDOnGameIcon", &g_Config.bShowIDOnGameIcon, false),
|
ConfigSetting("ShowIDOnGameIcon", &g_Config.bShowIDOnGameIcon, false, true, false),
|
||||||
ConfigSetting("GameGridScale", &g_Config.fGameGridScale, 1.0),
|
ConfigSetting("GameGridScale", &g_Config.fGameGridScale, 1.0, true, false),
|
||||||
ConfigSetting("GridView1", &g_Config.bGridView1, true),
|
ConfigSetting("GridView1", &g_Config.bGridView1, true, true, false),
|
||||||
ConfigSetting("GridView2", &g_Config.bGridView2, true),
|
ConfigSetting("GridView2", &g_Config.bGridView2, true, true, false),
|
||||||
ConfigSetting("GridView3", &g_Config.bGridView3, false),
|
ConfigSetting("GridView3", &g_Config.bGridView3, false, true, false),
|
||||||
ConfigSetting("RightAnalogUp", &g_Config.iRightAnalogUp, 0, true, true),
|
ConfigSetting("RightAnalogUp", &g_Config.iRightAnalogUp, 0, true, true),
|
||||||
ConfigSetting("RightAnalogDown", &g_Config.iRightAnalogDown, 0, true, true),
|
ConfigSetting("RightAnalogDown", &g_Config.iRightAnalogDown, 0, true, true),
|
||||||
ConfigSetting("RightAnalogLeft", &g_Config.iRightAnalogLeft, 0, true, true),
|
ConfigSetting("RightAnalogLeft", &g_Config.iRightAnalogLeft, 0, true, true),
|
||||||
@ -216,16 +216,16 @@ static const ConfigSetting generalSettings[] = {
|
|||||||
ConfigSetting("GestureControlEnabled", &g_Config.bGestureControlEnabled, false, true, true),
|
ConfigSetting("GestureControlEnabled", &g_Config.bGestureControlEnabled, false, true, true),
|
||||||
|
|
||||||
// "default" means let emulator decide, "" means disable.
|
// "default" means let emulator decide, "" means disable.
|
||||||
ConfigSetting("ReportingHost", &g_Config.sReportHost, "default"),
|
ConfigSetting("ReportingHost", &g_Config.sReportHost, "default", true, false),
|
||||||
ConfigSetting("AutoSaveSymbolMap", &g_Config.bAutoSaveSymbolMap, false, true, true),
|
ConfigSetting("AutoSaveSymbolMap", &g_Config.bAutoSaveSymbolMap, false, true, true),
|
||||||
ConfigSetting("CacheFullIsoInRam", &g_Config.bCacheFullIsoInRam, false, true, true),
|
ConfigSetting("CacheFullIsoInRam", &g_Config.bCacheFullIsoInRam, false, true, true),
|
||||||
ConfigSetting("RemoteISOPort", &g_Config.iRemoteISOPort, 0, true, false),
|
ConfigSetting("RemoteISOPort", &g_Config.iRemoteISOPort, 0, true, false),
|
||||||
ConfigSetting("LastRemoteISOServer", &g_Config.sLastRemoteISOServer, ""),
|
ConfigSetting("LastRemoteISOServer", &g_Config.sLastRemoteISOServer, "", true, false),
|
||||||
ConfigSetting("LastRemoteISOPort", &g_Config.iLastRemoteISOPort, 0),
|
ConfigSetting("LastRemoteISOPort", &g_Config.iLastRemoteISOPort, 0, true, false),
|
||||||
ConfigSetting("RemoteISOManualConfig", &g_Config.bRemoteISOManual, false),
|
ConfigSetting("RemoteISOManualConfig", &g_Config.bRemoteISOManual, false, true, false),
|
||||||
ConfigSetting("RemoteShareOnStartup", &g_Config.bRemoteShareOnStartup, false),
|
ConfigSetting("RemoteShareOnStartup", &g_Config.bRemoteShareOnStartup, false, true, false),
|
||||||
ConfigSetting("RemoteISOSubdir", &g_Config.sRemoteISOSubdir, "/"),
|
ConfigSetting("RemoteISOSubdir", &g_Config.sRemoteISOSubdir, "/", true, false),
|
||||||
ConfigSetting("RemoteDebuggerOnStartup", &g_Config.bRemoteDebuggerOnStartup, false),
|
ConfigSetting("RemoteDebuggerOnStartup", &g_Config.bRemoteDebuggerOnStartup, false, true, false),
|
||||||
|
|
||||||
#ifdef __ANDROID__
|
#ifdef __ANDROID__
|
||||||
ConfigSetting("ScreenRotation", &g_Config.iScreenRotation, ROTATION_AUTO_HORIZONTAL),
|
ConfigSetting("ScreenRotation", &g_Config.iScreenRotation, ROTATION_AUTO_HORIZONTAL),
|
||||||
@ -238,15 +238,15 @@ static const ConfigSetting generalSettings[] = {
|
|||||||
ConfigSetting("UISaturation", &g_Config.fUISaturation, &DefaultUISaturation, true, false),
|
ConfigSetting("UISaturation", &g_Config.fUISaturation, &DefaultUISaturation, true, false),
|
||||||
|
|
||||||
#if defined(USING_WIN_UI)
|
#if defined(USING_WIN_UI)
|
||||||
ConfigSetting("TopMost", &g_Config.bTopMost, false),
|
ConfigSetting("TopMost", &g_Config.bTopMost, false, true, false),
|
||||||
ConfigSetting("PauseOnLostFocus", &g_Config.bPauseOnLostFocus, false, true, true),
|
ConfigSetting("PauseOnLostFocus", &g_Config.bPauseOnLostFocus, false, true, true),
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(MOBILE_DEVICE)
|
#if !defined(MOBILE_DEVICE)
|
||||||
ConfigSetting("WindowX", &g_Config.iWindowX, -1), // -1 tells us to center the window.
|
ConfigSetting("WindowX", &g_Config.iWindowX, -1, true, false), // -1 tells us to center the window.
|
||||||
ConfigSetting("WindowY", &g_Config.iWindowY, -1),
|
ConfigSetting("WindowY", &g_Config.iWindowY, -1, true, false),
|
||||||
ConfigSetting("WindowWidth", &g_Config.iWindowWidth, 0), // 0 will be automatically reset later (need to do the AdjustWindowRect dance).
|
ConfigSetting("WindowWidth", &g_Config.iWindowWidth, 0, true, false), // 0 will be automatically reset later (need to do the AdjustWindowRect dance).
|
||||||
ConfigSetting("WindowHeight", &g_Config.iWindowHeight, 0),
|
ConfigSetting("WindowHeight", &g_Config.iWindowHeight, 0, true, false),
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ConfigSetting("PauseWhenMinimized", &g_Config.bPauseWhenMinimized, false, true, true),
|
ConfigSetting("PauseWhenMinimized", &g_Config.bPauseWhenMinimized, false, true, true),
|
||||||
@ -475,8 +475,8 @@ static const ConfigSetting graphicsSettings[] = {
|
|||||||
ConfigSetting("CardboardYShift", &g_Config.iCardboardYShift, 0, true, true),
|
ConfigSetting("CardboardYShift", &g_Config.iCardboardYShift, 0, true, true),
|
||||||
ConfigSetting("iShowStatusFlags", &g_Config.iShowStatusFlags, 0, true, true),
|
ConfigSetting("iShowStatusFlags", &g_Config.iShowStatusFlags, 0, true, true),
|
||||||
ReportedConfigSetting("GraphicsBackend", &g_Config.iGPUBackend, &DefaultGPUBackend, &GPUBackendTranslator::To, &GPUBackendTranslator::From, true, false),
|
ReportedConfigSetting("GraphicsBackend", &g_Config.iGPUBackend, &DefaultGPUBackend, &GPUBackendTranslator::To, &GPUBackendTranslator::From, true, false),
|
||||||
ConfigSetting("FailedGraphicsBackends", &g_Config.sFailedGPUBackends, ""),
|
ConfigSetting("FailedGraphicsBackends", &g_Config.sFailedGPUBackends, "", true, false),
|
||||||
ConfigSetting("DisabledGraphicsBackends", &g_Config.sDisabledGPUBackends, ""),
|
ConfigSetting("DisabledGraphicsBackends", &g_Config.sDisabledGPUBackends, "", true, false),
|
||||||
ConfigSetting("VulkanDevice", &g_Config.sVulkanDevice, "", true, false),
|
ConfigSetting("VulkanDevice", &g_Config.sVulkanDevice, "", true, false),
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
ConfigSetting("D3D11Device", &g_Config.sD3D11Device, "", true, false),
|
ConfigSetting("D3D11Device", &g_Config.sD3D11Device, "", true, false),
|
||||||
@ -502,7 +502,7 @@ static const ConfigSetting graphicsSettings[] = {
|
|||||||
ConfigSetting("AnalogFrameRate", &g_Config.iAnalogFpsLimit, 240, true, true),
|
ConfigSetting("AnalogFrameRate", &g_Config.iAnalogFpsLimit, 240, true, true),
|
||||||
ConfigSetting("UnthrottlingMode", &g_Config.iFastForwardMode, &DefaultFastForwardMode, &FastForwardModeToString, &FastForwardModeFromString, true, true),
|
ConfigSetting("UnthrottlingMode", &g_Config.iFastForwardMode, &DefaultFastForwardMode, &FastForwardModeToString, &FastForwardModeFromString, true, true),
|
||||||
#if defined(USING_WIN_UI)
|
#if defined(USING_WIN_UI)
|
||||||
ConfigSetting("RestartRequired", &g_Config.bRestartRequired, false, false),
|
ConfigSetting("RestartRequired", &g_Config.bRestartRequired, false, false, false),
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Most low-performance (and many high performance) mobile GPUs do not support aniso anyway so defaulting to 4 is fine.
|
// Most low-performance (and many high performance) mobile GPUs do not support aniso anyway so defaulting to 4 is fine.
|
||||||
@ -511,11 +511,11 @@ static const ConfigSetting graphicsSettings[] = {
|
|||||||
|
|
||||||
ReportedConfigSetting("VertexDecCache", &g_Config.bVertexCache, false, true, true),
|
ReportedConfigSetting("VertexDecCache", &g_Config.bVertexCache, false, true, true),
|
||||||
ReportedConfigSetting("TextureBackoffCache", &g_Config.bTextureBackoffCache, false, true, true),
|
ReportedConfigSetting("TextureBackoffCache", &g_Config.bTextureBackoffCache, false, true, true),
|
||||||
ReportedConfigSetting("VertexDecJit", &g_Config.bVertexDecoderJit, &DefaultCodeGen, false),
|
ReportedConfigSetting("VertexDecJit", &g_Config.bVertexDecoderJit, &DefaultCodeGen, false, false),
|
||||||
|
|
||||||
#ifndef MOBILE_DEVICE
|
#ifndef MOBILE_DEVICE
|
||||||
ConfigSetting("FullScreen", &g_Config.bFullScreen, false),
|
ConfigSetting("FullScreen", &g_Config.bFullScreen, false, true, false),
|
||||||
ConfigSetting("FullScreenMulti", &g_Config.bFullScreenMulti, false),
|
ConfigSetting("FullScreenMulti", &g_Config.bFullScreenMulti, false, true, false),
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ConfigSetting("BufferFiltering", &g_Config.iDisplayFilter, SCALE_LINEAR, true, true),
|
ConfigSetting("BufferFiltering", &g_Config.iDisplayFilter, SCALE_LINEAR, true, true),
|
||||||
@ -752,40 +752,40 @@ static const ConfigSetting systemParamSettings[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static const ConfigSetting debuggerSettings[] = {
|
static const ConfigSetting debuggerSettings[] = {
|
||||||
ConfigSetting("DisasmWindowX", &g_Config.iDisasmWindowX, -1),
|
ConfigSetting("DisasmWindowX", &g_Config.iDisasmWindowX, -1, true, false),
|
||||||
ConfigSetting("DisasmWindowY", &g_Config.iDisasmWindowY, -1),
|
ConfigSetting("DisasmWindowY", &g_Config.iDisasmWindowY, -1, true, false),
|
||||||
ConfigSetting("DisasmWindowW", &g_Config.iDisasmWindowW, -1),
|
ConfigSetting("DisasmWindowW", &g_Config.iDisasmWindowW, -1, true, false),
|
||||||
ConfigSetting("DisasmWindowH", &g_Config.iDisasmWindowH, -1),
|
ConfigSetting("DisasmWindowH", &g_Config.iDisasmWindowH, -1, true, false),
|
||||||
ConfigSetting("GEWindowX", &g_Config.iGEWindowX, -1),
|
ConfigSetting("GEWindowX", &g_Config.iGEWindowX, -1, true, false),
|
||||||
ConfigSetting("GEWindowY", &g_Config.iGEWindowY, -1),
|
ConfigSetting("GEWindowY", &g_Config.iGEWindowY, -1, true, false),
|
||||||
ConfigSetting("GEWindowW", &g_Config.iGEWindowW, -1),
|
ConfigSetting("GEWindowW", &g_Config.iGEWindowW, -1, true, false),
|
||||||
ConfigSetting("GEWindowH", &g_Config.iGEWindowH, -1),
|
ConfigSetting("GEWindowH", &g_Config.iGEWindowH, -1, true, false),
|
||||||
ConfigSetting("GEWindowTabsBL", &g_Config.uGETabsLeft, (uint32_t)0),
|
ConfigSetting("GEWindowTabsBL", &g_Config.uGETabsLeft, (uint32_t)0, true, false),
|
||||||
ConfigSetting("GEWindowTabsBR", &g_Config.uGETabsRight, (uint32_t)0),
|
ConfigSetting("GEWindowTabsBR", &g_Config.uGETabsRight, (uint32_t)0, true, false),
|
||||||
ConfigSetting("GEWindowTabsTR", &g_Config.uGETabsTopRight, (uint32_t)0),
|
ConfigSetting("GEWindowTabsTR", &g_Config.uGETabsTopRight, (uint32_t)0, true, false),
|
||||||
ConfigSetting("ConsoleWindowX", &g_Config.iConsoleWindowX, -1),
|
ConfigSetting("ConsoleWindowX", &g_Config.iConsoleWindowX, -1, true, false),
|
||||||
ConfigSetting("ConsoleWindowY", &g_Config.iConsoleWindowY, -1),
|
ConfigSetting("ConsoleWindowY", &g_Config.iConsoleWindowY, -1, true, false),
|
||||||
ConfigSetting("FontWidth", &g_Config.iFontWidth, 8),
|
ConfigSetting("FontWidth", &g_Config.iFontWidth, 8, true, false),
|
||||||
ConfigSetting("FontHeight", &g_Config.iFontHeight, 12),
|
ConfigSetting("FontHeight", &g_Config.iFontHeight, 12, true, false),
|
||||||
ConfigSetting("DisplayStatusBar", &g_Config.bDisplayStatusBar, true),
|
ConfigSetting("DisplayStatusBar", &g_Config.bDisplayStatusBar, true, true, false),
|
||||||
ConfigSetting("ShowBottomTabTitles",&g_Config.bShowBottomTabTitles, true),
|
ConfigSetting("ShowBottomTabTitles",&g_Config.bShowBottomTabTitles, true, true, false),
|
||||||
ConfigSetting("ShowDeveloperMenu", &g_Config.bShowDeveloperMenu, false),
|
ConfigSetting("ShowDeveloperMenu", &g_Config.bShowDeveloperMenu, false, true, false),
|
||||||
ConfigSetting("ShowAllocatorDebug", &g_Config.bShowAllocatorDebug, false, false),
|
ConfigSetting("ShowAllocatorDebug", &g_Config.bShowAllocatorDebug, false, false, false),
|
||||||
ConfigSetting("ShowGpuProfile", &g_Config.bShowGpuProfile, false, false),
|
ConfigSetting("ShowGpuProfile", &g_Config.bShowGpuProfile, false, false, false),
|
||||||
ConfigSetting("SkipDeadbeefFilling", &g_Config.bSkipDeadbeefFilling, false),
|
ConfigSetting("SkipDeadbeefFilling", &g_Config.bSkipDeadbeefFilling, false, true, false),
|
||||||
ConfigSetting("FuncHashMap", &g_Config.bFuncHashMap, false),
|
ConfigSetting("FuncHashMap", &g_Config.bFuncHashMap, false, true, false),
|
||||||
ConfigSetting("MemInfoDetailed", &g_Config.bDebugMemInfoDetailed, false),
|
ConfigSetting("MemInfoDetailed", &g_Config.bDebugMemInfoDetailed, false, true, false),
|
||||||
ConfigSetting("DrawFrameGraph", &g_Config.bDrawFrameGraph, false),
|
ConfigSetting("DrawFrameGraph", &g_Config.bDrawFrameGraph, false, true, false),
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ConfigSetting jitSettings[] = {
|
static const ConfigSetting jitSettings[] = {
|
||||||
ReportedConfigSetting("DiscardRegsOnJRRA", &g_Config.bDiscardRegsOnJRRA, false, false),
|
ReportedConfigSetting("DiscardRegsOnJRRA", &g_Config.bDiscardRegsOnJRRA, false, false, false),
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ConfigSetting upgradeSettings[] = {
|
static const ConfigSetting upgradeSettings[] = {
|
||||||
ConfigSetting("UpgradeMessage", &g_Config.upgradeMessage, ""),
|
ConfigSetting("UpgradeMessage", &g_Config.upgradeMessage, "", true, false),
|
||||||
ConfigSetting("UpgradeVersion", &g_Config.upgradeVersion, ""),
|
ConfigSetting("UpgradeVersion", &g_Config.upgradeVersion, "", true, false),
|
||||||
ConfigSetting("DismissedVersion", &g_Config.dismissedVersion, ""),
|
ConfigSetting("DismissedVersion", &g_Config.dismissedVersion, "", true, false),
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ConfigSetting themeSettings[] = {
|
static const ConfigSetting themeSettings[] = {
|
||||||
@ -794,24 +794,24 @@ static const ConfigSetting themeSettings[] = {
|
|||||||
|
|
||||||
|
|
||||||
static const ConfigSetting vrSettings[] = {
|
static const ConfigSetting vrSettings[] = {
|
||||||
ConfigSetting("VREnable", &g_Config.bEnableVR, true),
|
ConfigSetting("VREnable", &g_Config.bEnableVR, true, true, false),
|
||||||
ConfigSetting("VREnable6DoF", &g_Config.bEnable6DoF, true),
|
ConfigSetting("VREnable6DoF", &g_Config.bEnable6DoF, true, true, false),
|
||||||
ConfigSetting("VREnableStereo", &g_Config.bEnableStereo, false),
|
ConfigSetting("VREnableStereo", &g_Config.bEnableStereo, false, true, false),
|
||||||
ConfigSetting("VREnableMotions", &g_Config.bEnableMotions, true),
|
ConfigSetting("VREnableMotions", &g_Config.bEnableMotions, true, true, false),
|
||||||
ConfigSetting("VRForce72Hz", &g_Config.bForce72Hz, true),
|
ConfigSetting("VRForce72Hz", &g_Config.bForce72Hz, true, true, false),
|
||||||
ConfigSetting("VRManualForceVR", &g_Config.bManualForceVR, false),
|
ConfigSetting("VRManualForceVR", &g_Config.bManualForceVR, false, true, false),
|
||||||
ConfigSetting("VRRescaleHUD", &g_Config.bRescaleHUD, true),
|
ConfigSetting("VRRescaleHUD", &g_Config.bRescaleHUD, true, true, false),
|
||||||
ConfigSetting("VRCameraDistance", &g_Config.fCameraDistance, 0.0f),
|
ConfigSetting("VRCameraDistance", &g_Config.fCameraDistance, 0.0f, true, false),
|
||||||
ConfigSetting("VRCameraHeight", &g_Config.fCameraHeight, 0.0f),
|
ConfigSetting("VRCameraHeight", &g_Config.fCameraHeight, 0.0f, true, false),
|
||||||
ConfigSetting("VRCameraSide", &g_Config.fCameraSide, 0.0f),
|
ConfigSetting("VRCameraSide", &g_Config.fCameraSide, 0.0f, true, false),
|
||||||
ConfigSetting("VRCameraPitch", &g_Config.iCameraPitch, 0),
|
ConfigSetting("VRCameraPitch", &g_Config.iCameraPitch, 0, true, false),
|
||||||
ConfigSetting("VRCanvasDistance", &g_Config.fCanvasDistance, 12.0f),
|
ConfigSetting("VRCanvasDistance", &g_Config.fCanvasDistance, 12.0f, true, false),
|
||||||
ConfigSetting("VRFieldOfView", &g_Config.fFieldOfViewPercentage, 100.0f),
|
ConfigSetting("VRFieldOfView", &g_Config.fFieldOfViewPercentage, 100.0f, true, false),
|
||||||
ConfigSetting("VRHeadUpDisplayScale", &g_Config.fHeadUpDisplayScale, 0.3f),
|
ConfigSetting("VRHeadUpDisplayScale", &g_Config.fHeadUpDisplayScale, 0.3f, true, false),
|
||||||
ConfigSetting("VRMotionLength", &g_Config.fMotionLength, 0.5f),
|
ConfigSetting("VRMotionLength", &g_Config.fMotionLength, 0.5f, true, false),
|
||||||
ConfigSetting("VRHeadRotationScale", &g_Config.fHeadRotationScale, 5.0f),
|
ConfigSetting("VRHeadRotationScale", &g_Config.fHeadRotationScale, 5.0f, true, false),
|
||||||
ConfigSetting("VRHeadRotationEnabled", &g_Config.bHeadRotationEnabled, false),
|
ConfigSetting("VRHeadRotationEnabled", &g_Config.bHeadRotationEnabled, false, true, false),
|
||||||
ConfigSetting("VRHeadRotationSmoothing", &g_Config.bHeadRotationSmoothing, false),
|
ConfigSetting("VRHeadRotationSmoothing", &g_Config.bHeadRotationSmoothing, false, true, false),
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ConfigSectionSettings sections[] = {
|
static const ConfigSectionSettings sections[] = {
|
||||||
|
@ -66,113 +66,113 @@ struct ConfigSetting {
|
|||||||
CustomButtonDefaultCallback customButton;
|
CustomButtonDefaultCallback customButton;
|
||||||
};
|
};
|
||||||
|
|
||||||
ConfigSetting(const char *ini, bool *v, bool def, bool save = true, bool perGame = false)
|
ConfigSetting(const char *ini, bool *v, bool def, bool save, bool perGame)
|
||||||
: iniKey_(ini), type_(TYPE_BOOL), report_(false), save_(save), perGame_(perGame) {
|
: iniKey_(ini), type_(TYPE_BOOL), report_(false), save_(save), perGame_(perGame) {
|
||||||
ptr_.b = v;
|
ptr_.b = v;
|
||||||
cb_.b = nullptr;
|
cb_.b = nullptr;
|
||||||
default_.b = def;
|
default_.b = def;
|
||||||
}
|
}
|
||||||
|
|
||||||
ConfigSetting(const char *ini, int *v, int def, bool save = true, bool perGame = false)
|
ConfigSetting(const char *ini, int *v, int def, bool save, bool perGame)
|
||||||
: iniKey_(ini), type_(TYPE_INT), report_(false), save_(save), perGame_(perGame) {
|
: iniKey_(ini), type_(TYPE_INT), report_(false), save_(save), perGame_(perGame) {
|
||||||
ptr_.i = v;
|
ptr_.i = v;
|
||||||
cb_.i = nullptr;
|
cb_.i = nullptr;
|
||||||
default_.i = def;
|
default_.i = def;
|
||||||
}
|
}
|
||||||
|
|
||||||
ConfigSetting(const char *ini, int *v, int def, std::string(*transTo)(int), int (*transFrom)(const std::string &), bool save = true, bool perGame = false)
|
ConfigSetting(const char *ini, int *v, int def, std::string(*transTo)(int), int (*transFrom)(const std::string &), bool save, bool perGame)
|
||||||
: iniKey_(ini), type_(TYPE_INT), report_(false), save_(save), perGame_(perGame), translateTo_(transTo), translateFrom_(transFrom) {
|
: iniKey_(ini), type_(TYPE_INT), report_(false), save_(save), perGame_(perGame), translateTo_(transTo), translateFrom_(transFrom) {
|
||||||
ptr_.i = v;
|
ptr_.i = v;
|
||||||
cb_.i = nullptr;
|
cb_.i = nullptr;
|
||||||
default_.i = def;
|
default_.i = def;
|
||||||
}
|
}
|
||||||
|
|
||||||
ConfigSetting(const char *ini, uint32_t *v, uint32_t def, bool save = true, bool perGame = false)
|
ConfigSetting(const char *ini, uint32_t *v, uint32_t def, bool save, bool perGame)
|
||||||
: iniKey_(ini), type_(TYPE_UINT32), report_(false), save_(save), perGame_(perGame) {
|
: iniKey_(ini), type_(TYPE_UINT32), report_(false), save_(save), perGame_(perGame) {
|
||||||
ptr_.u = v;
|
ptr_.u = v;
|
||||||
cb_.u = nullptr;
|
cb_.u = nullptr;
|
||||||
default_.u = def;
|
default_.u = def;
|
||||||
}
|
}
|
||||||
|
|
||||||
ConfigSetting(const char *ini, uint64_t *v, uint64_t def, bool save = true, bool perGame = false)
|
ConfigSetting(const char *ini, uint64_t *v, uint64_t def, bool save, bool perGame)
|
||||||
: iniKey_(ini), type_(TYPE_UINT64), report_(false), save_(save), perGame_(perGame) {
|
: iniKey_(ini), type_(TYPE_UINT64), report_(false), save_(save), perGame_(perGame) {
|
||||||
ptr_.lu = v;
|
ptr_.lu = v;
|
||||||
cb_.lu = nullptr;
|
cb_.lu = nullptr;
|
||||||
default_.lu = def;
|
default_.lu = def;
|
||||||
}
|
}
|
||||||
|
|
||||||
ConfigSetting(const char *ini, float *v, float def, bool save = true, bool perGame = false)
|
ConfigSetting(const char *ini, float *v, float def, bool save, bool perGame)
|
||||||
: iniKey_(ini), type_(TYPE_FLOAT), report_(false), save_(save), perGame_(perGame) {
|
: iniKey_(ini), type_(TYPE_FLOAT), report_(false), save_(save), perGame_(perGame) {
|
||||||
ptr_.f = v;
|
ptr_.f = v;
|
||||||
cb_.f = nullptr;
|
cb_.f = nullptr;
|
||||||
default_.f = def;
|
default_.f = def;
|
||||||
}
|
}
|
||||||
|
|
||||||
ConfigSetting(const char *ini, std::string *v, const char *def, bool save = true, bool perGame = false)
|
ConfigSetting(const char *ini, std::string *v, const char *def, bool save, bool perGame)
|
||||||
: iniKey_(ini), type_(TYPE_STRING), report_(false), save_(save), perGame_(perGame) {
|
: iniKey_(ini), type_(TYPE_STRING), report_(false), save_(save), perGame_(perGame) {
|
||||||
ptr_.s = v;
|
ptr_.s = v;
|
||||||
cb_.s = nullptr;
|
cb_.s = nullptr;
|
||||||
default_.s = def;
|
default_.s = def;
|
||||||
}
|
}
|
||||||
|
|
||||||
ConfigSetting(const char *ini, Path *p, const char *def, bool save = true, bool perGame = false)
|
ConfigSetting(const char *ini, Path *p, const char *def, bool save, bool perGame)
|
||||||
: iniKey_(ini), type_(TYPE_PATH), report_(false), save_(save), perGame_(perGame) {
|
: iniKey_(ini), type_(TYPE_PATH), report_(false), save_(save), perGame_(perGame) {
|
||||||
ptr_.p = p;
|
ptr_.p = p;
|
||||||
cb_.p = nullptr;
|
cb_.p = nullptr;
|
||||||
default_.p = def;
|
default_.p = def;
|
||||||
}
|
}
|
||||||
|
|
||||||
ConfigSetting(const char *iniX, const char *iniY, const char *iniScale, const char *iniShow, ConfigTouchPos *v, ConfigTouchPos def, bool save = true, bool perGame = false)
|
ConfigSetting(const char *iniX, const char *iniY, const char *iniScale, const char *iniShow, ConfigTouchPos *v, ConfigTouchPos def, bool save, bool perGame)
|
||||||
: iniKey_(iniX), ini2_(iniY), ini3_(iniScale), ini4_(iniShow), type_(TYPE_TOUCH_POS), report_(false), save_(save), perGame_(perGame) {
|
: iniKey_(iniX), ini2_(iniY), ini3_(iniScale), ini4_(iniShow), type_(TYPE_TOUCH_POS), report_(false), save_(save), perGame_(perGame) {
|
||||||
ptr_.touchPos = v;
|
ptr_.touchPos = v;
|
||||||
cb_.touchPos = nullptr;
|
cb_.touchPos = nullptr;
|
||||||
default_.touchPos = def;
|
default_.touchPos = def;
|
||||||
}
|
}
|
||||||
|
|
||||||
ConfigSetting(const char *iniKey, const char *iniImage, const char *iniShape, const char *iniToggle, const char *iniRepeat, ConfigCustomButton *v, ConfigCustomButton def, bool save = true, bool perGame = false)
|
ConfigSetting(const char *iniKey, const char *iniImage, const char *iniShape, const char *iniToggle, const char *iniRepeat, ConfigCustomButton *v, ConfigCustomButton def, bool save, bool perGame)
|
||||||
: iniKey_(iniKey), ini2_(iniImage), ini3_(iniShape), ini4_(iniToggle), ini5_(iniRepeat), type_(TYPE_CUSTOM_BUTTON), report_(false), save_(save), perGame_(perGame) {
|
: iniKey_(iniKey), ini2_(iniImage), ini3_(iniShape), ini4_(iniToggle), ini5_(iniRepeat), type_(TYPE_CUSTOM_BUTTON), report_(false), save_(save), perGame_(perGame) {
|
||||||
ptr_.customButton = v;
|
ptr_.customButton = v;
|
||||||
cb_.customButton = nullptr;
|
cb_.customButton = nullptr;
|
||||||
default_.customButton = def;
|
default_.customButton = def;
|
||||||
}
|
}
|
||||||
|
|
||||||
ConfigSetting(const char *ini, bool *v, BoolDefaultCallback def, bool save = true, bool perGame = false)
|
ConfigSetting(const char *ini, bool *v, BoolDefaultCallback def, bool save, bool perGame)
|
||||||
: iniKey_(ini), type_(TYPE_BOOL), report_(false), save_(save), perGame_(perGame) {
|
: iniKey_(ini), type_(TYPE_BOOL), report_(false), save_(save), perGame_(perGame) {
|
||||||
ptr_.b = v;
|
ptr_.b = v;
|
||||||
cb_.b = def;
|
cb_.b = def;
|
||||||
}
|
}
|
||||||
|
|
||||||
ConfigSetting(const char *ini, int *v, IntDefaultCallback def, bool save = true, bool perGame = false)
|
ConfigSetting(const char *ini, int *v, IntDefaultCallback def, bool save, bool perGame)
|
||||||
: iniKey_(ini), type_(TYPE_INT), report_(false), save_(save), perGame_(perGame) {
|
: iniKey_(ini), type_(TYPE_INT), report_(false), save_(save), perGame_(perGame) {
|
||||||
ptr_.i = v;
|
ptr_.i = v;
|
||||||
cb_.i = def;
|
cb_.i = def;
|
||||||
}
|
}
|
||||||
|
|
||||||
ConfigSetting(const char *ini, int *v, IntDefaultCallback def, std::string(*transTo)(int), int(*transFrom)(const std::string &), bool save = true, bool perGame = false)
|
ConfigSetting(const char *ini, int *v, IntDefaultCallback def, std::string(*transTo)(int), int(*transFrom)(const std::string &), bool save, bool perGame)
|
||||||
: iniKey_(ini), type_(TYPE_INT), report_(false), save_(save), perGame_(perGame), translateTo_(transTo), translateFrom_(transFrom) {
|
: iniKey_(ini), type_(TYPE_INT), report_(false), save_(save), perGame_(perGame), translateTo_(transTo), translateFrom_(transFrom) {
|
||||||
ptr_.i = v;
|
ptr_.i = v;
|
||||||
cb_.i = def;
|
cb_.i = def;
|
||||||
}
|
}
|
||||||
|
|
||||||
ConfigSetting(const char *ini, uint32_t *v, Uint32DefaultCallback def, bool save = true, bool perGame = false)
|
ConfigSetting(const char *ini, uint32_t *v, Uint32DefaultCallback def, bool save, bool perGame)
|
||||||
: iniKey_(ini), type_(TYPE_UINT32), report_(false), save_(save), perGame_(perGame) {
|
: iniKey_(ini), type_(TYPE_UINT32), report_(false), save_(save), perGame_(perGame) {
|
||||||
ptr_.u = v;
|
ptr_.u = v;
|
||||||
cb_.u = def;
|
cb_.u = def;
|
||||||
}
|
}
|
||||||
|
|
||||||
ConfigSetting(const char *ini, float *v, FloatDefaultCallback def, bool save = true, bool perGame = false)
|
ConfigSetting(const char *ini, float *v, FloatDefaultCallback def, bool save, bool perGame)
|
||||||
: iniKey_(ini), type_(TYPE_FLOAT), report_(false), save_(save), perGame_(perGame) {
|
: iniKey_(ini), type_(TYPE_FLOAT), report_(false), save_(save), perGame_(perGame) {
|
||||||
ptr_.f = v;
|
ptr_.f = v;
|
||||||
cb_.f = def;
|
cb_.f = def;
|
||||||
}
|
}
|
||||||
|
|
||||||
ConfigSetting(const char *ini, std::string *v, StringDefaultCallback def, bool save = true, bool perGame = false)
|
ConfigSetting(const char *ini, std::string *v, StringDefaultCallback def, bool save, bool perGame)
|
||||||
: iniKey_(ini), type_(TYPE_STRING), report_(false), save_(save), perGame_(perGame) {
|
: iniKey_(ini), type_(TYPE_STRING), report_(false), save_(save), perGame_(perGame) {
|
||||||
ptr_.s = v;
|
ptr_.s = v;
|
||||||
cb_.s = def;
|
cb_.s = def;
|
||||||
}
|
}
|
||||||
|
|
||||||
ConfigSetting(const char *iniX, const char *iniY, const char *iniScale, const char *iniShow, ConfigTouchPos *v, TouchPosDefaultCallback def, bool save = true, bool perGame = false)
|
ConfigSetting(const char *iniX, const char *iniY, const char *iniScale, const char *iniShow, ConfigTouchPos *v, TouchPosDefaultCallback def, bool save, bool perGame)
|
||||||
: iniKey_(iniX), ini2_(iniY), ini3_(iniScale), ini4_(iniShow), type_(TYPE_TOUCH_POS), report_(false), save_(save), perGame_(perGame) {
|
: iniKey_(iniX), ini2_(iniY), ini3_(iniScale), ini4_(iniShow), type_(TYPE_TOUCH_POS), report_(false), save_(save), perGame_(perGame) {
|
||||||
ptr_.touchPos = v;
|
ptr_.touchPos = v;
|
||||||
cb_.touchPos = def;
|
cb_.touchPos = def;
|
||||||
@ -211,13 +211,13 @@ struct ConfigSetting {
|
|||||||
|
|
||||||
struct ReportedConfigSetting : public ConfigSetting {
|
struct ReportedConfigSetting : public ConfigSetting {
|
||||||
template <typename T1, typename T2>
|
template <typename T1, typename T2>
|
||||||
ReportedConfigSetting(const char *ini, T1 *v, T2 def, bool save = true, bool perGame = false)
|
ReportedConfigSetting(const char *ini, T1 *v, T2 def, bool save, bool perGame)
|
||||||
: ConfigSetting(ini, v, def, save, perGame) {
|
: ConfigSetting(ini, v, def, save, perGame) {
|
||||||
report_ = true;
|
report_ = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T1, typename T2>
|
template <typename T1, typename T2>
|
||||||
ReportedConfigSetting(const char *ini, T1 *v, T2 def, std::string(*transTo)(int), int(*transFrom)(const std::string &), bool save = true, bool perGame = false)
|
ReportedConfigSetting(const char *ini, T1 *v, T2 def, std::string(*transTo)(int), int(*transFrom)(const std::string &), bool save, bool perGame)
|
||||||
: ConfigSetting(ini, v, def, transTo, transFrom, save, perGame) {
|
: ConfigSetting(ini, v, def, transTo, transFrom, save, perGame) {
|
||||||
report_ = true;
|
report_ = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user