2016-01-27 09:11:59 +00:00
|
|
|
/****************************************************************************
|
|
|
|
* *
|
|
|
|
* Project64 - 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
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
MaxPluginSetting = 65535
|
|
|
|
};
|
|
|
|
|
|
|
|
enum SettingID
|
|
|
|
{
|
|
|
|
//Default values
|
|
|
|
Default_None,
|
|
|
|
Default_Constant,
|
|
|
|
|
|
|
|
//Command Settings
|
|
|
|
Cmd_BaseDirectory,
|
|
|
|
Cmd_RomFile,
|
|
|
|
Cmd_ShowHelp,
|
|
|
|
|
|
|
|
//Support Files
|
|
|
|
SupportFile_Settings,
|
|
|
|
SupportFile_SettingsDefault,
|
|
|
|
SupportFile_RomDatabase,
|
|
|
|
SupportFile_RomDatabaseDefault,
|
2017-09-26 20:55:53 +00:00
|
|
|
SupportFile_VideoRDB,
|
|
|
|
SupportFile_VideoRDBDefault,
|
|
|
|
SupportFile_AudioRDB,
|
|
|
|
SupportFile_AudioRDBDefault,
|
2019-01-11 22:50:25 +00:00
|
|
|
SupportFile_Cheats,
|
|
|
|
SupportFile_CheatsDefault,
|
|
|
|
SupportFile_Enhancements,
|
|
|
|
SupportFile_EnhancementsDefault,
|
|
|
|
SupportFile_Notes,
|
2016-01-27 09:11:59 +00:00
|
|
|
SupportFile_NotesDefault,
|
|
|
|
SupportFile_ExtInfo,
|
|
|
|
SupportFile_ExtInfoDefault,
|
|
|
|
|
|
|
|
//Settings
|
|
|
|
Setting_ApplicationName,
|
|
|
|
Setting_UseFromRegistry,
|
|
|
|
Setting_RdbEditor,
|
|
|
|
Setting_CN64TimeCritical,
|
|
|
|
Setting_AutoStart,
|
|
|
|
Setting_CheckEmuRunning,
|
|
|
|
Setting_EraseGameDefaults,
|
2017-08-22 08:08:54 +00:00
|
|
|
Setting_ForceInterpreterCPU,
|
|
|
|
Setting_FixedRdramAddress,
|
2016-01-27 09:11:59 +00:00
|
|
|
|
|
|
|
Setting_AutoZipInstantSave,
|
|
|
|
Setting_RememberCheats,
|
2016-04-21 20:29:55 +00:00
|
|
|
Setting_UniqueSaveDir,
|
2016-01-27 09:11:59 +00:00
|
|
|
Setting_LanguageDir,
|
|
|
|
Setting_LanguageDirDefault,
|
|
|
|
Setting_CurrentLanguage,
|
|
|
|
Setting_EnableDisk,
|
2018-12-08 10:53:06 +00:00
|
|
|
Setting_SyncViaAudioEnabled,
|
2019-01-11 22:50:25 +00:00
|
|
|
Setting_Enhancement,
|
2016-01-27 09:11:59 +00:00
|
|
|
|
2018-11-25 09:44:15 +00:00
|
|
|
//Default Settings
|
|
|
|
Default_RDRamSize,
|
|
|
|
Default_UseHleGfx,
|
|
|
|
Default_UseTlb,
|
|
|
|
Default_ViRefreshRate,
|
|
|
|
Default_AiCountPerBytes,
|
|
|
|
Default_CounterFactor,
|
|
|
|
Default_32Bit,
|
|
|
|
Default_SyncViaAudio,
|
|
|
|
Default_FixedAudio,
|
2018-12-28 12:09:38 +00:00
|
|
|
Default_UnalignedDMA,
|
2018-11-25 09:44:15 +00:00
|
|
|
|
2016-04-13 07:34:19 +00:00
|
|
|
//RDB Settings
|
2016-01-27 09:11:59 +00:00
|
|
|
Rdb_GoodName,
|
|
|
|
Rdb_SaveChip,
|
|
|
|
Rdb_CpuType,
|
|
|
|
Rdb_RDRamSize,
|
|
|
|
Rdb_CounterFactor,
|
|
|
|
Rdb_UseTlb,
|
|
|
|
Rdb_DelayDP,
|
|
|
|
Rdb_DelaySi,
|
|
|
|
Rdb_32Bit,
|
|
|
|
Rdb_FastSP,
|
|
|
|
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,
|
|
|
|
Rdb_SMM_StoreInstruc,
|
|
|
|
Rdb_SMM_Cache,
|
|
|
|
Rdb_SMM_PIDMA,
|
|
|
|
Rdb_SMM_TLB,
|
|
|
|
Rdb_SMM_Protect,
|
|
|
|
Rdb_SMM_ValidFunc,
|
|
|
|
Rdb_GameCheatFix,
|
|
|
|
Rdb_GameCheatFixPlugin,
|
|
|
|
Rdb_ViRefreshRate,
|
|
|
|
Rdb_AiCountPerBytes,
|
|
|
|
Rdb_AudioResetOnLoad,
|
|
|
|
Rdb_AllowROMWrites,
|
|
|
|
Rdb_CRC_Recalc,
|
2018-12-28 12:09:38 +00:00
|
|
|
Rdb_UnalignedDMA,
|
2016-01-27 09:11:59 +00:00
|
|
|
|
|
|
|
//Individual Game Settings
|
|
|
|
Game_IniKey,
|
|
|
|
Game_File,
|
2016-04-21 20:29:55 +00:00
|
|
|
Game_UniqueSaveDir,
|
2016-01-27 09:11:59 +00:00
|
|
|
Game_GameName,
|
2017-01-31 15:36:51 +00:00
|
|
|
Cfg_GoodName,
|
2016-01-27 09:11:59 +00:00
|
|
|
Game_TempLoaded,
|
|
|
|
Game_SystemType,
|
|
|
|
Game_EditPlugin_Gfx,
|
|
|
|
Game_EditPlugin_Audio,
|
|
|
|
Game_EditPlugin_Contr,
|
|
|
|
Game_EditPlugin_RSP,
|
|
|
|
Game_Plugin_Gfx,
|
|
|
|
Game_Plugin_Audio,
|
|
|
|
Game_Plugin_Controller,
|
|
|
|
Game_Plugin_RSP,
|
|
|
|
Game_SaveChip,
|
|
|
|
Game_CpuType,
|
|
|
|
Game_LastSaveSlot,
|
|
|
|
Game_FixedAudio,
|
|
|
|
Game_SyncViaAudio,
|
|
|
|
Game_32Bit,
|
|
|
|
Game_SMM_Cache,
|
|
|
|
Game_SMM_Protect,
|
|
|
|
Game_SMM_ValidFunc,
|
|
|
|
Game_SMM_PIDMA,
|
|
|
|
Game_SMM_TLB,
|
|
|
|
Game_SMM_StoreInstruc,
|
|
|
|
Game_CurrentSaveState,
|
2016-06-05 00:59:47 +00:00
|
|
|
Game_LastSaveTime,
|
2016-01-27 09:11:59 +00:00
|
|
|
Game_RDRamSize,
|
|
|
|
Game_CounterFactor,
|
|
|
|
Game_UseTlb,
|
|
|
|
Game_DelayDP,
|
|
|
|
Game_DelaySI,
|
|
|
|
Game_FastSP,
|
|
|
|
Game_FuncLookupMode,
|
|
|
|
Game_RegCache,
|
|
|
|
Game_BlockLinking,
|
|
|
|
Game_ScreenHertz,
|
|
|
|
Game_RspAudioSignal,
|
|
|
|
Game_UseHleGfx,
|
|
|
|
Game_UseHleAudio,
|
|
|
|
Game_LoadRomToMemory,
|
|
|
|
Game_ViRefreshRate,
|
|
|
|
Game_AiCountPerBytes,
|
|
|
|
Game_AudioResetOnLoad,
|
|
|
|
Game_AllowROMWrites,
|
|
|
|
Game_CRC_Recalc,
|
2016-02-01 12:41:46 +00:00
|
|
|
Game_Transferpak_ROM,
|
|
|
|
Game_Transferpak_Sav,
|
2017-04-30 09:24:38 +00:00
|
|
|
Game_LoadSaveAtStart,
|
2017-09-28 11:43:58 +00:00
|
|
|
Game_FullSpeed,
|
2018-12-28 12:09:38 +00:00
|
|
|
Game_UnalignedDMA,
|
2016-01-27 09:11:59 +00:00
|
|
|
|
|
|
|
// General Game running info
|
|
|
|
GameRunning_LoadingInProgress,
|
|
|
|
GameRunning_CPU_Running,
|
|
|
|
GameRunning_CPU_Paused,
|
|
|
|
GameRunning_CPU_PausedType,
|
|
|
|
GameRunning_InstantSaveFile,
|
|
|
|
GameRunning_LimitFPS,
|
|
|
|
GameRunning_ScreenHertz,
|
|
|
|
GameRunning_InReset,
|
|
|
|
|
|
|
|
//User Interface
|
|
|
|
UserInterface_BasicMode,
|
|
|
|
UserInterface_ShowCPUPer,
|
|
|
|
UserInterface_DisplayFrameRate,
|
|
|
|
UserInterface_FrameDisplayType,
|
|
|
|
|
|
|
|
//Directory Info
|
|
|
|
Directory_Plugin,
|
|
|
|
Directory_PluginInitial,
|
|
|
|
Directory_PluginSelected,
|
|
|
|
Directory_PluginUseSelected,
|
|
|
|
Directory_PluginSync,
|
2016-08-07 07:01:50 +00:00
|
|
|
Directory_PluginSyncInitial,
|
|
|
|
Directory_PluginSyncSelected,
|
|
|
|
Directory_PluginSyncUseSelected,
|
2016-01-27 09:11:59 +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,
|
2016-02-01 06:30:22 +00:00
|
|
|
Directory_Log,
|
|
|
|
Directory_LogInitial,
|
|
|
|
Directory_LogSelected,
|
|
|
|
Directory_LogUseSelected,
|
2016-01-27 09:11:59 +00:00
|
|
|
|
2016-04-13 07:34:19 +00:00
|
|
|
//Rom List
|
|
|
|
RomList_RomListCache,
|
|
|
|
RomList_RomListCacheDefault,
|
|
|
|
RomList_GameDir,
|
|
|
|
RomList_GameDirInitial,
|
|
|
|
RomList_GameDirSelected,
|
|
|
|
RomList_GameDirUseSelected,
|
|
|
|
RomList_GameDirRecursive,
|
2018-12-28 11:47:09 +00:00
|
|
|
RomList_ShowFileExtensions,
|
2016-04-13 07:34:19 +00:00
|
|
|
RomList_7zipCache,
|
|
|
|
RomList_7zipCacheDefault,
|
|
|
|
|
2016-01-27 09:11:59 +00:00
|
|
|
//File Info
|
|
|
|
File_DiskIPLPath,
|
|
|
|
|
|
|
|
//Debugger
|
|
|
|
Debugger_Enabled,
|
|
|
|
Debugger_ShowTLBMisses,
|
|
|
|
Debugger_ShowUnhandledMemory,
|
|
|
|
Debugger_ShowPifErrors,
|
|
|
|
Debugger_ShowDivByZero,
|
2016-12-12 19:11:47 +00:00
|
|
|
Debugger_RecordRecompilerAsm,
|
2016-01-27 09:11:59 +00:00
|
|
|
Debugger_DisableGameFixes,
|
|
|
|
Debugger_AppLogLevel,
|
|
|
|
Debugger_AppLogFlush,
|
|
|
|
Debugger_ShowDListAListCount,
|
|
|
|
Debugger_ShowRecompMemSize,
|
2016-06-04 09:07:20 +00:00
|
|
|
Debugger_DebugLanguage,
|
2016-10-02 21:46:05 +00:00
|
|
|
Debugger_RecordExecutionTimes,
|
2018-01-15 21:14:15 +00:00
|
|
|
Debugger_SteppingOps,
|
2018-01-17 11:36:28 +00:00
|
|
|
Debugger_SkipOp,
|
2017-12-12 10:15:34 +00:00
|
|
|
Debugger_HaveExecutionBP,
|
2018-02-01 17:28:08 +00:00
|
|
|
Debugger_WriteBPExists,
|
2018-02-05 20:25:53 +00:00
|
|
|
Debugger_ReadBPExists,
|
2018-01-16 21:26:54 +00:00
|
|
|
Debugger_WaitingForStep,
|
2018-12-08 12:45:52 +00:00
|
|
|
Debugger_AutoRefreshMemoryView,
|
2019-01-14 09:18:43 +00:00
|
|
|
Debugger_CPULoggingEnabled,
|
|
|
|
Debugger_CPULogBufferSize,
|
2019-01-17 09:34:24 +00:00
|
|
|
Debugger_ExceptionBreakpoints,
|
2016-01-27 09:11:59 +00:00
|
|
|
|
|
|
|
//Trace
|
|
|
|
Debugger_TraceMD5,
|
2016-04-17 19:34:47 +00:00
|
|
|
Debugger_TraceThread,
|
|
|
|
Debugger_TracePath,
|
2016-01-27 09:11:59 +00:00
|
|
|
Debugger_TraceSettings,
|
|
|
|
Debugger_TraceUnknown,
|
|
|
|
Debugger_TraceAppInit,
|
|
|
|
Debugger_TraceAppCleanup,
|
|
|
|
Debugger_TraceN64System,
|
|
|
|
Debugger_TracePlugins,
|
|
|
|
Debugger_TraceGFXPlugin,
|
|
|
|
Debugger_TraceAudioPlugin,
|
|
|
|
Debugger_TraceControllerPlugin,
|
|
|
|
Debugger_TraceRSPPlugin,
|
|
|
|
Debugger_TraceRSP,
|
|
|
|
Debugger_TraceAudio,
|
|
|
|
Debugger_TraceRegisterCache,
|
|
|
|
Debugger_TraceRecompiler,
|
|
|
|
Debugger_TraceTLB,
|
|
|
|
Debugger_TraceProtectedMEM,
|
|
|
|
Debugger_TraceUserInterface,
|
2016-04-13 07:34:19 +00:00
|
|
|
Debugger_TraceRomList,
|
2016-06-04 08:33:48 +00:00
|
|
|
Debugger_TraceExceptionHandler,
|
2016-01-27 09:11:59 +00:00
|
|
|
|
|
|
|
//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,
|
2016-08-07 07:12:16 +00:00
|
|
|
Plugin_EnableAudio,
|
2016-01-27 09:11:59 +00:00
|
|
|
|
|
|
|
Logging_GenerateLog,
|
|
|
|
Logging_LogRDRamRegisters,
|
|
|
|
Logging_LogSPRegisters,
|
|
|
|
Logging_LogDPCRegisters,
|
|
|
|
Logging_LogDPSRegisters,
|
|
|
|
Logging_LogMIPSInterface,
|
|
|
|
Logging_LogVideoInterface,
|
|
|
|
Logging_LogAudioInterface,
|
|
|
|
Logging_LogPerInterface,
|
|
|
|
Logging_LogRDRAMInterface,
|
|
|
|
Logging_LogSerialInterface,
|
|
|
|
Logging_LogPRDMAOperations,
|
|
|
|
Logging_LogPRDirectMemLoads,
|
|
|
|
Logging_LogPRDMAMemLoads,
|
|
|
|
Logging_LogPRDirectMemStores,
|
|
|
|
Logging_LogPRDMAMemStores,
|
|
|
|
Logging_LogControllerPak,
|
|
|
|
Logging_LogCP0changes,
|
|
|
|
Logging_LogCP0reads,
|
|
|
|
Logging_LogTLB,
|
|
|
|
Logging_LogExceptions,
|
|
|
|
Logging_NoInterrupts,
|
|
|
|
Logging_LogCache,
|
|
|
|
Logging_LogRomHeader,
|
|
|
|
Logging_LogUnknown,
|
|
|
|
|
|
|
|
//Cheats
|
|
|
|
Cheat_Entry,
|
|
|
|
Cheat_Active,
|
|
|
|
Cheat_Extension,
|
|
|
|
Cheat_Notes,
|
|
|
|
Cheat_Options,
|
|
|
|
Cheat_Range,
|
|
|
|
Cheat_RangeNotes,
|
|
|
|
|
2019-01-11 22:50:25 +00:00
|
|
|
//Enhancement
|
|
|
|
Enhancement_Name,
|
|
|
|
Enhancement_Active,
|
|
|
|
Enhancement_OnByDefault,
|
|
|
|
Enhancement_Overclock,
|
|
|
|
Enhancement_OverclockValue,
|
2019-01-19 22:21:38 +00:00
|
|
|
Enhancement_Gameshark,
|
|
|
|
Enhancement_GamesharkCode,
|
2019-01-11 22:50:25 +00:00
|
|
|
Enhancement_Notes,
|
|
|
|
|
|
|
|
FirstUISettings, LastUISettings = FirstUISettings + MaxPluginSetting,
|
2016-01-27 09:11:59 +00:00
|
|
|
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,
|
|
|
|
};
|