2012-12-19 09:30:18 +00:00
|
|
|
/****************************************************************************
|
|
|
|
* *
|
|
|
|
* Project 64 - A Nintendo 64 emulator. *
|
|
|
|
* http://www.pj64-emu.com/ *
|
|
|
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
|
|
|
* *
|
|
|
|
* License: *
|
|
|
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
|
|
|
* *
|
|
|
|
****************************************************************************/
|
|
|
|
#pragma once
|
2008-09-18 03:15:49 +00:00
|
|
|
|
|
|
|
#define MaxPluginSetting 65535
|
|
|
|
|
|
|
|
enum SettingID {
|
|
|
|
//Default values
|
2008-11-14 20:51:06 +00:00
|
|
|
Default_None,
|
|
|
|
Default_Constant,
|
|
|
|
|
|
|
|
//information - temp keys
|
|
|
|
Info_ShortCutsChanged,
|
|
|
|
|
|
|
|
//Support Files
|
|
|
|
SupportFile_Settings,
|
2010-05-14 23:28:15 +00:00
|
|
|
SupportFile_SettingsDefault,
|
2008-11-14 20:51:06 +00:00
|
|
|
SupportFile_RomDatabase,
|
2012-09-26 23:13:09 +00:00
|
|
|
SupportFile_RomDatabaseDefault,
|
2015-02-06 05:48:15 +00:00
|
|
|
SupportFile_Glide64RDB,
|
|
|
|
SupportFile_Glide64RDBDefault,
|
2008-11-14 20:51:06 +00:00
|
|
|
SupportFile_Cheats,
|
2012-09-26 23:13:09 +00:00
|
|
|
SupportFile_CheatsDefault,
|
2008-11-14 20:51:06 +00:00
|
|
|
SupportFile_Notes,
|
2012-09-26 23:13:09 +00:00
|
|
|
SupportFile_NotesDefault,
|
2008-11-14 20:51:06 +00:00
|
|
|
SupportFile_ExtInfo,
|
2012-09-26 23:13:09 +00:00
|
|
|
SupportFile_ExtInfoDefault,
|
2008-11-14 20:51:06 +00:00
|
|
|
SupportFile_ShortCuts,
|
2012-09-26 23:13:09 +00:00
|
|
|
SupportFile_ShortCutsDefault,
|
2008-11-14 20:51:06 +00:00
|
|
|
SupportFile_RomListCache,
|
2012-09-26 23:13:09 +00:00
|
|
|
SupportFile_RomListCacheDefault,
|
2008-11-14 20:51:06 +00:00
|
|
|
SupportFile_7zipCache,
|
2012-09-26 23:13:09 +00:00
|
|
|
SupportFile_7zipCacheDefault,
|
2008-11-14 20:51:06 +00:00
|
|
|
|
|
|
|
//Settings
|
|
|
|
Setting_ApplicationName,
|
|
|
|
Setting_UseFromRegistry,
|
|
|
|
Setting_RdbEditor,
|
2008-12-01 18:19:49 +00:00
|
|
|
Setting_PluginPageFirst,
|
2008-11-14 20:51:06 +00:00
|
|
|
Setting_DisableScrSaver,
|
|
|
|
Setting_AutoSleep,
|
|
|
|
Setting_AutoStart,
|
|
|
|
Setting_AutoFullscreen,
|
2012-12-29 10:50:45 +00:00
|
|
|
Setting_CheckEmuRunning,
|
2008-12-11 10:31:10 +00:00
|
|
|
Setting_EraseGameDefaults,
|
2008-11-14 20:51:06 +00:00
|
|
|
|
|
|
|
Setting_AutoZipInstantSave,
|
|
|
|
Setting_RememberCheats,
|
2012-09-27 03:42:28 +00:00
|
|
|
Setting_LanguageDir,
|
|
|
|
Setting_LanguageDirDefault,
|
2008-11-14 20:51:06 +00:00
|
|
|
Setting_CurrentLanguage,
|
|
|
|
|
|
|
|
//RDB TLB Settings
|
2008-12-04 10:41:51 +00:00
|
|
|
Rdb_GoodName,
|
2008-11-14 20:51:06 +00:00
|
|
|
Rdb_SaveChip,
|
|
|
|
Rdb_CpuType,
|
|
|
|
Rdb_RDRamSize,
|
|
|
|
Rdb_CounterFactor,
|
|
|
|
Rdb_UseTlb,
|
2012-10-05 23:53:11 +00:00
|
|
|
Rdb_DelayDP,
|
2008-11-14 20:51:06 +00:00
|
|
|
Rdb_DelaySi,
|
2010-10-23 18:53:01 +00:00
|
|
|
Rdb_32Bit,
|
2010-07-23 10:45:35 +00:00
|
|
|
Rdb_FastSP,
|
2008-11-14 20:51:06 +00:00
|
|
|
Rdb_Status,
|
2008-12-04 10:41:51 +00:00
|
|
|
Rdb_NotesCore,
|
|
|
|
Rdb_NotesPlugin,
|
2008-11-14 20:51:06 +00:00
|
|
|
Rdb_FixedAudio,
|
|
|
|
Rdb_SyncViaAudio,
|
|
|
|
Rdb_RspAudioSignal,
|
|
|
|
Rdb_TLB_VAddrStart,
|
|
|
|
Rdb_TLB_VAddrLen,
|
|
|
|
Rdb_TLB_PAddrStart,
|
|
|
|
Rdb_UseHleGfx,
|
|
|
|
Rdb_UseHleAudio,
|
|
|
|
Rdb_LoadRomToMemory,
|
|
|
|
Rdb_ScreenHertz,
|
|
|
|
Rdb_FuncLookupMode,
|
|
|
|
Rdb_RegCache,
|
|
|
|
Rdb_BlockLinking,
|
2010-06-16 07:31:47 +00:00
|
|
|
Rdb_SMM_StoreInstruc,
|
2008-11-14 20:51:06 +00:00
|
|
|
Rdb_SMM_Cache,
|
|
|
|
Rdb_SMM_PIDMA,
|
|
|
|
Rdb_SMM_TLB,
|
|
|
|
Rdb_SMM_Protect,
|
|
|
|
Rdb_SMM_ValidFunc,
|
|
|
|
Rdb_GameCheatFix,
|
2008-12-04 10:41:51 +00:00
|
|
|
Rdb_ViRefreshRate,
|
2012-11-13 05:44:13 +00:00
|
|
|
Rdb_AiCountPerBytes,
|
2008-11-14 20:51:06 +00:00
|
|
|
|
|
|
|
//Individual Game Settings
|
|
|
|
Game_IniKey,
|
|
|
|
Game_GameName,
|
|
|
|
Game_GoodName,
|
2015-01-26 03:43:37 +00:00
|
|
|
Game_SystemType,
|
2009-12-28 22:22:50 +00:00
|
|
|
Game_EditPlugin_Gfx,
|
|
|
|
Game_EditPlugin_Audio,
|
|
|
|
Game_EditPlugin_Contr,
|
|
|
|
Game_EditPlugin_RSP,
|
2008-11-14 20:51:06 +00:00
|
|
|
Game_Plugin_Gfx,
|
|
|
|
Game_Plugin_Audio,
|
|
|
|
Game_Plugin_Controller,
|
|
|
|
Game_Plugin_RSP,
|
|
|
|
Game_SaveChip,
|
|
|
|
Game_CpuType,
|
|
|
|
Game_LastSaveSlot,
|
|
|
|
Game_FixedAudio,
|
|
|
|
Game_SyncViaAudio,
|
2010-10-23 18:53:01 +00:00
|
|
|
Game_32Bit,
|
2008-11-14 20:51:06 +00:00
|
|
|
Game_SMM_Cache,
|
|
|
|
Game_SMM_Protect,
|
|
|
|
Game_SMM_ValidFunc,
|
|
|
|
Game_SMM_PIDMA,
|
|
|
|
Game_SMM_TLB,
|
2010-06-16 07:31:47 +00:00
|
|
|
Game_SMM_StoreInstruc,
|
2008-11-14 20:51:06 +00:00
|
|
|
Game_CurrentSaveState,
|
|
|
|
Game_RDRamSize,
|
|
|
|
Game_CounterFactor,
|
|
|
|
Game_UseTlb,
|
2012-10-05 23:53:11 +00:00
|
|
|
Game_DelayDP,
|
2008-11-14 20:51:06 +00:00
|
|
|
Game_DelaySI,
|
2010-07-23 10:45:35 +00:00
|
|
|
Game_FastSP,
|
2008-11-14 20:51:06 +00:00
|
|
|
Game_FuncLookupMode,
|
|
|
|
Game_RegCache,
|
|
|
|
Game_BlockLinking,
|
|
|
|
Game_ScreenHertz,
|
|
|
|
Game_RspAudioSignal,
|
|
|
|
Game_UseHleGfx,
|
|
|
|
Game_UseHleAudio,
|
|
|
|
Game_LoadRomToMemory,
|
2008-12-04 10:41:51 +00:00
|
|
|
Game_ViRefreshRate,
|
2012-11-13 05:44:13 +00:00
|
|
|
Game_AiCountPerBytes,
|
2008-11-14 20:51:06 +00:00
|
|
|
|
|
|
|
// General Game running info
|
|
|
|
GameRunning_LoadingInProgress,
|
|
|
|
GameRunning_CPU_Running,
|
|
|
|
GameRunning_CPU_Paused,
|
|
|
|
GameRunning_CPU_PausedType,
|
|
|
|
GameRunning_InstantSaveFile,
|
|
|
|
GameRunning_LimitFPS,
|
|
|
|
GameRunning_ScreenHertz,
|
|
|
|
|
|
|
|
//User Interface
|
|
|
|
UserInterface_BasicMode,
|
|
|
|
UserInterface_ShowCPUPer,
|
|
|
|
UserInterface_DisplayFrameRate,
|
|
|
|
UserInterface_InFullScreen,
|
|
|
|
UserInterface_FrameDisplayType,
|
|
|
|
UserInterface_MainWindowTop,
|
|
|
|
UserInterface_MainWindowLeft,
|
|
|
|
UserInterface_AlwaysOnTop,
|
|
|
|
|
|
|
|
RomBrowser_Enabled,
|
|
|
|
RomBrowser_ColoumnsChanged,
|
|
|
|
RomBrowser_Top,
|
|
|
|
RomBrowser_Left,
|
|
|
|
RomBrowser_Width,
|
|
|
|
RomBrowser_Height,
|
|
|
|
RomBrowser_PosIndex,
|
|
|
|
RomBrowser_WidthIndex,
|
|
|
|
RomBrowser_SortFieldIndex,
|
|
|
|
RomBrowser_SortAscendingIndex,
|
|
|
|
RomBrowser_Recursive,
|
|
|
|
RomBrowser_Maximized,
|
|
|
|
|
|
|
|
//Directory Info
|
|
|
|
Directory_LastSave,
|
|
|
|
Directory_RecentGameDirCount,
|
|
|
|
Directory_RecentGameDirIndex,
|
|
|
|
Directory_Game,
|
|
|
|
Directory_GameInitial,
|
|
|
|
Directory_GameSelected,
|
|
|
|
Directory_GameUseSelected,
|
|
|
|
Directory_Plugin,
|
|
|
|
Directory_PluginInitial,
|
|
|
|
Directory_PluginSelected,
|
|
|
|
Directory_PluginUseSelected,
|
2010-05-31 00:21:08 +00:00
|
|
|
Directory_PluginSync,
|
2008-11-14 20:51:06 +00:00
|
|
|
Directory_SnapShot,
|
|
|
|
Directory_SnapShotInitial,
|
|
|
|
Directory_SnapShotSelected,
|
|
|
|
Directory_SnapShotUseSelected,
|
|
|
|
Directory_NativeSave,
|
|
|
|
Directory_NativeSaveInitial,
|
|
|
|
Directory_NativeSaveSelected,
|
|
|
|
Directory_NativeSaveUseSelected,
|
|
|
|
Directory_InstantSave,
|
|
|
|
Directory_InstantSaveInitial,
|
|
|
|
Directory_InstantSaveSelected,
|
|
|
|
Directory_InstantSaveUseSelected,
|
|
|
|
Directory_Texture,
|
|
|
|
Directory_TextureInitial,
|
|
|
|
Directory_TextureSelected,
|
|
|
|
Directory_TextureUseSelected,
|
|
|
|
|
|
|
|
//File Info
|
|
|
|
File_RecentGameFileCount,
|
|
|
|
File_RecentGameFileIndex,
|
|
|
|
|
|
|
|
//Debugger
|
|
|
|
Debugger_Enabled,
|
2012-09-28 20:07:45 +00:00
|
|
|
Debugger_ShowTLBMisses,
|
2008-11-14 20:51:06 +00:00
|
|
|
Debugger_ShowUnhandledMemory,
|
|
|
|
Debugger_ShowPifErrors,
|
2012-09-30 13:07:00 +00:00
|
|
|
Debugger_ShowDivByZero,
|
2008-11-14 20:51:06 +00:00
|
|
|
Debugger_GenerateLogFiles,
|
|
|
|
Debugger_ProfileCode,
|
|
|
|
Debugger_DisableGameFixes,
|
|
|
|
Debugger_AppLogLevel,
|
|
|
|
Debugger_AppLogFlush,
|
|
|
|
Debugger_GenerateDebugLog,
|
|
|
|
Debugger_ShowDListAListCount,
|
|
|
|
Debugger_ShowRecompMemSize,
|
|
|
|
|
|
|
|
//Plugins
|
|
|
|
Plugin_RSP_Current,
|
|
|
|
Plugin_RSP_CurVer,
|
|
|
|
Plugin_GFX_Current,
|
|
|
|
Plugin_GFX_CurVer,
|
|
|
|
Plugin_AUDIO_Current,
|
|
|
|
Plugin_AUDIO_CurVer,
|
|
|
|
Plugin_CONT_Current,
|
|
|
|
Plugin_CONT_CurVer,
|
|
|
|
Plugin_UseHleGfx,
|
|
|
|
Plugin_UseHleAudio,
|
|
|
|
|
|
|
|
//Cheats
|
|
|
|
Cheat_Entry,
|
|
|
|
Cheat_Active,
|
|
|
|
Cheat_Extension,
|
|
|
|
Cheat_Notes,
|
|
|
|
Cheat_Options,
|
|
|
|
Cheat_Range,
|
|
|
|
Cheat_RangeNotes,
|
|
|
|
|
|
|
|
FirstRSPDefaultSet, LastRSPDefaultSet = FirstRSPDefaultSet + MaxPluginSetting,
|
|
|
|
FirstRSPSettings, LastRSPSettings = FirstRSPSettings + MaxPluginSetting,
|
|
|
|
FirstGfxDefaultSet, LastGfxDefaultSet = FirstGfxDefaultSet + MaxPluginSetting,
|
|
|
|
FirstGfxSettings, LastGfxSettings = FirstGfxSettings + MaxPluginSetting,
|
|
|
|
FirstAudioDefaultSet, LastAudioDefaultSet = FirstAudioDefaultSet + MaxPluginSetting,
|
|
|
|
FirstAudioSettings, LastAudioSettings = FirstAudioSettings + MaxPluginSetting,
|
|
|
|
FirstCtrlDefaultSet, LastCtrlDefaultSet = FirstCtrlDefaultSet + MaxPluginSetting,
|
|
|
|
FirstCtrlSettings, LastCtrlSettings = FirstCtrlSettings + MaxPluginSetting,
|
2008-09-18 03:15:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#include "Support.h"
|
|
|
|
#include "./Settings/Settings Class.h"
|
2012-09-28 20:07:45 +00:00
|
|
|
#include "./Settings/Debug Settings.h"
|
2012-09-24 01:14:02 +00:00
|
|
|
#include "./Settings/Game Settings.h"
|
2008-09-18 03:15:49 +00:00
|
|
|
#include "./Settings/Recompiler Settings.h"
|
|
|
|
#include "./Settings/N64System Settings.h"
|
|
|
|
#include "./Settings/Gui Settings.h"
|