2016-04-13 18:29:27 +00:00
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include <Common/stdtypes.h>
|
|
|
|
|
|
|
|
enum UISettingID
|
|
|
|
{
|
2021-03-18 00:32:37 +00:00
|
|
|
StartUISetting = SettingID::FirstUISettings,
|
|
|
|
|
2021-03-10 09:37:35 +00:00
|
|
|
// Information - temporary keys
|
2016-04-13 18:29:27 +00:00
|
|
|
Info_ShortCutsChanged,
|
|
|
|
|
2021-03-10 09:37:35 +00:00
|
|
|
// Support files
|
2016-04-13 18:29:27 +00:00
|
|
|
SupportFile_ShortCuts,
|
|
|
|
SupportFile_ShortCutsDefault,
|
|
|
|
|
2021-03-10 09:37:35 +00:00
|
|
|
// Settings location
|
2016-04-13 18:29:27 +00:00
|
|
|
Setting_PluginPageFirst,
|
|
|
|
Setting_DisableScrSaver,
|
2019-10-23 21:12:12 +00:00
|
|
|
Setting_EnableDiscordRPC,
|
2016-04-13 18:29:27 +00:00
|
|
|
Setting_AutoSleep,
|
|
|
|
Setting_AutoFullscreen,
|
|
|
|
|
2021-03-10 09:37:35 +00:00
|
|
|
// RDB TLB settings
|
2016-04-13 18:29:27 +00:00
|
|
|
Rdb_Status,
|
|
|
|
Rdb_NotesCore,
|
|
|
|
Rdb_NotesPlugin,
|
|
|
|
|
2021-03-10 09:37:35 +00:00
|
|
|
// User interface
|
2016-04-13 18:29:27 +00:00
|
|
|
UserInterface_InFullScreen,
|
|
|
|
UserInterface_MainWindowTop,
|
|
|
|
UserInterface_MainWindowLeft,
|
|
|
|
UserInterface_AlwaysOnTop,
|
2021-03-18 00:32:37 +00:00
|
|
|
UserInterface_ShowStatusBar,
|
2021-03-23 01:16:11 +00:00
|
|
|
UserInterface_ExitFullscreenOnLoseFocus,
|
2016-04-13 18:29:27 +00:00
|
|
|
|
|
|
|
RomBrowser_Enabled,
|
|
|
|
RomBrowser_ColoumnsChanged,
|
|
|
|
RomBrowser_Top,
|
|
|
|
RomBrowser_Left,
|
|
|
|
RomBrowser_Width,
|
|
|
|
RomBrowser_Height,
|
|
|
|
RomBrowser_PosIndex,
|
|
|
|
RomBrowser_WidthIndex,
|
|
|
|
RomBrowser_SortFieldIndex,
|
|
|
|
RomBrowser_SortAscendingIndex,
|
|
|
|
RomBrowser_Maximized,
|
|
|
|
|
2021-03-10 09:37:35 +00:00
|
|
|
// Directory info
|
2016-04-13 18:29:27 +00:00
|
|
|
Directory_LastSave,
|
|
|
|
Directory_RecentGameDirCount,
|
|
|
|
Directory_RecentGameDirIndex,
|
|
|
|
|
2021-03-10 09:37:35 +00:00
|
|
|
// Recent game
|
2016-04-13 18:29:27 +00:00
|
|
|
File_RecentGameFileCount,
|
|
|
|
File_RecentGameFileIndex,
|
2016-08-11 10:38:45 +00:00
|
|
|
|
2021-03-10 09:37:35 +00:00
|
|
|
// Support window
|
2016-08-11 10:38:45 +00:00
|
|
|
SupportWindows_RunCount,
|
2019-01-13 08:09:37 +00:00
|
|
|
|
2021-03-10 09:37:35 +00:00
|
|
|
// Debugger UI window positions and sizes
|
2019-01-14 07:06:01 +00:00
|
|
|
DebuggerUI_CommandsPos,
|
|
|
|
DebuggerUI_MemoryPos,
|
|
|
|
DebuggerUI_MemoryDumpPos,
|
|
|
|
DebuggerUI_MemorySearchPos,
|
|
|
|
DebuggerUI_DMALogPos,
|
2019-01-14 09:18:43 +00:00
|
|
|
DebuggerUI_CPULogPos,
|
2019-01-14 07:06:01 +00:00
|
|
|
DebuggerUI_ScriptsPos,
|
|
|
|
DebuggerUI_StackPos,
|
|
|
|
DebuggerUI_StackTracePos,
|
|
|
|
DebuggerUI_SymbolsPos,
|
|
|
|
DebuggerUI_TLBPos,
|
2019-01-17 09:34:24 +00:00
|
|
|
DebuggerUI_ExceptionBPPos
|
2016-04-13 18:29:27 +00:00
|
|
|
};
|
|
|
|
|
2019-04-19 23:49:25 +00:00
|
|
|
float DPIScale(void);
|
2016-04-13 18:29:27 +00:00
|
|
|
void RegisterUISettings (void);
|
|
|
|
void UISettingsSaveBool(UISettingID Type, bool Value);
|
|
|
|
void UISettingsSaveBoolIndex(UISettingID Type, int32_t index, bool Value);
|
|
|
|
void UISettingsSaveDword(UISettingID Type, uint32_t Value);
|
|
|
|
void UISettingsSaveDwordIndex(UISettingID Type, int32_t index, uint32_t Value);
|
|
|
|
void UISettingsSaveString(UISettingID Type, const std::string & Value);
|
|
|
|
void UISettingsSaveStringIndex(UISettingID Type, int32_t index, const std::string & Value);
|
|
|
|
|
|
|
|
void UISettingsDeleteSettingIndex(UISettingID Type, int32_t index);
|
|
|
|
|
|
|
|
bool UISettingsLoadBool(UISettingID Type);
|
|
|
|
bool UISettingsLoadBoolIndex(UISettingID Type, int32_t index);
|
|
|
|
uint32_t UISettingsLoadDword(UISettingID Type);
|
|
|
|
bool UISettingsLoadDword(UISettingID Type, uint32_t & Value);
|
|
|
|
bool UISettingsLoadDwordIndex(UISettingID Type, int index, uint32_t & Value);
|
|
|
|
bool UISettingsLoadStringIndex(UISettingID Type, int32_t index, std::string & Value);
|
|
|
|
std::string UISettingsLoadStringIndex(UISettingID Type, int32_t index);
|
|
|
|
std::string UISettingsLoadStringVal(UISettingID Type);
|
|
|
|
bool UISettingsLoadStringVal(UISettingID Type, char * Buffer, int32_t BufferSize);
|