~registry/dolphin-emu/triforce

« back to all changes in this revision

Viewing changes to Source/Core/Core/Src/CoreParameter.h

  • Committer: Sérgio Benjamim
  • Date: 2015-02-13 05:54:40 UTC
  • Revision ID: sergio_br2@yahoo.com.br-20150213055440-ey2rt3sjpy27km78
Dolphin Triforce branch from code.google, commit b957980 (4.0-315).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright 2013 Dolphin Emulator Project
 
2
// Licensed under GPLv2
 
3
// Refer to the license.txt file included.
 
4
 
 
5
#ifndef _COREPARAMETER_H
 
6
#define _COREPARAMETER_H
 
7
 
 
8
#include "IniFile.h"
 
9
#include <string>
 
10
 
 
11
enum Hotkey
 
12
{
 
13
        HK_OPEN,
 
14
        HK_CHANGE_DISC,
 
15
        HK_REFRESH_LIST,
 
16
 
 
17
        HK_PLAY_PAUSE,
 
18
        HK_STOP,
 
19
        HK_RESET,
 
20
        HK_FRAME_ADVANCE,
 
21
 
 
22
        HK_START_RECORDING,
 
23
        HK_PLAY_RECORDING,
 
24
        HK_EXPORT_RECORDING,
 
25
        HK_READ_ONLY_MODE,
 
26
 
 
27
        HK_FULLSCREEN,
 
28
        HK_SCREENSHOT,
 
29
        HK_EXIT,
 
30
 
 
31
        HK_WIIMOTE1_CONNECT,
 
32
        HK_WIIMOTE2_CONNECT,
 
33
        HK_WIIMOTE3_CONNECT,
 
34
        HK_WIIMOTE4_CONNECT,
 
35
        HK_BALANCEBOARD_CONNECT,
 
36
 
 
37
        HK_TOGGLE_IR,
 
38
        HK_TOGGLE_AR,
 
39
        HK_TOGGLE_EFBCOPIES,
 
40
        HK_TOGGLE_FOG,
 
41
 
 
42
        HK_INCREASE_FRAME_LIMIT,
 
43
        HK_DECREASE_FRAME_LIMIT,
 
44
 
 
45
        HK_LOAD_STATE_SLOT_1,
 
46
        HK_LOAD_STATE_SLOT_2,
 
47
        HK_LOAD_STATE_SLOT_3,
 
48
        HK_LOAD_STATE_SLOT_4,
 
49
        HK_LOAD_STATE_SLOT_5,
 
50
        HK_LOAD_STATE_SLOT_6,
 
51
        HK_LOAD_STATE_SLOT_7,
 
52
        HK_LOAD_STATE_SLOT_8,
 
53
        HK_LOAD_STATE_SLOT_9,
 
54
        HK_LOAD_STATE_SLOT_10,
 
55
 
 
56
        HK_SAVE_STATE_SLOT_1,
 
57
        HK_SAVE_STATE_SLOT_2,
 
58
        HK_SAVE_STATE_SLOT_3,
 
59
        HK_SAVE_STATE_SLOT_4,
 
60
        HK_SAVE_STATE_SLOT_5,
 
61
        HK_SAVE_STATE_SLOT_6,
 
62
        HK_SAVE_STATE_SLOT_7,
 
63
        HK_SAVE_STATE_SLOT_8,
 
64
        HK_SAVE_STATE_SLOT_9,
 
65
        HK_SAVE_STATE_SLOT_10,
 
66
 
 
67
        HK_LOAD_LAST_STATE_1,
 
68
        HK_LOAD_LAST_STATE_2,
 
69
        HK_LOAD_LAST_STATE_3,
 
70
        HK_LOAD_LAST_STATE_4,
 
71
        HK_LOAD_LAST_STATE_5,
 
72
        HK_LOAD_LAST_STATE_6,
 
73
        HK_LOAD_LAST_STATE_7,
 
74
        HK_LOAD_LAST_STATE_8,
 
75
 
 
76
        HK_SAVE_FIRST_STATE,
 
77
        HK_UNDO_LOAD_STATE,
 
78
        HK_UNDO_SAVE_STATE,
 
79
        HK_SAVE_STATE_FILE,
 
80
        HK_LOAD_STATE_FILE,
 
81
 
 
82
        NUM_HOTKEYS,
 
83
};
 
84
 
 
85
struct SCoreStartupParameter
 
86
{
 
87
        void* hInstance;  // HINSTANCE but we don't want to include <windows.h>
 
88
 
 
89
        // Settings
 
90
        bool bEnableDebugging;
 
91
        #ifdef USE_GDBSTUB
 
92
        int  iGDBPort;
 
93
        #endif
 
94
        bool bAutomaticStart;
 
95
        bool bBootToPause;
 
96
 
 
97
        // 0 = Interpreter
 
98
        // 1 = Jit
 
99
        // 2 = JitIL
 
100
        // 3 = JIT ARM
 
101
        int iCPUCore;
 
102
 
 
103
        // JIT (shared between JIT and JITIL)
 
104
        bool bJITNoBlockCache, bJITBlockLinking;
 
105
        bool bJITOff;
 
106
        bool bJITLoadStoreOff, bJITLoadStorelXzOff, bJITLoadStorelwzOff, bJITLoadStorelbzxOff;
 
107
        bool bJITLoadStoreFloatingOff;
 
108
        bool bJITLoadStorePairedOff;
 
109
        bool bJITFloatingPointOff;
 
110
        bool bJITIntegerOff;
 
111
        bool bJITPairedOff;
 
112
        bool bJITSystemRegistersOff;
 
113
        bool bJITBranchOff;
 
114
        bool bJITILTimeProfiling;
 
115
        bool bJITILOutputIR;
 
116
 
 
117
        bool bFastmem;
 
118
        bool bEnableFPRF;
 
119
 
 
120
        bool bCPUThread;
 
121
        bool bDSPThread;
 
122
        bool bDSPHLE;
 
123
        bool bSkipIdle;
 
124
        bool bNTSC;
 
125
        bool bForceNTSCJ;
 
126
        bool bHLE_BS2;
 
127
        bool bEnableCheats;
 
128
        bool bMergeBlocks;
 
129
        bool bEnableMemcardSaving;
 
130
 
 
131
        bool bDPL2Decoder;
 
132
        int iLatency;
 
133
 
 
134
        bool bRunCompareServer;
 
135
        bool bRunCompareClient;
 
136
 
 
137
        bool bMMU;
 
138
        bool bDCBZOFF;
 
139
        bool bTLBHack;
 
140
        int iBBDumpPort;
 
141
        bool bVBeamSpeedHack;
 
142
        bool bSyncGPU;
 
143
        bool bFastDiscSpeed;
 
144
 
 
145
        int SelectedLanguage;
 
146
 
 
147
        bool bWii;
 
148
 
 
149
        // Interface settings
 
150
        bool bConfirmStop, bHideCursor, bAutoHideCursor, bUsePanicHandlers, bOnScreenDisplayMessages;
 
151
        std::string theme_name;
 
152
 
 
153
        // Hotkeys
 
154
        int iHotkey[NUM_HOTKEYS];
 
155
        int iHotkeyModifier[NUM_HOTKEYS];
 
156
 
 
157
        // Display settings
 
158
        std::string strFullscreenResolution;
 
159
        int iRenderWindowXPos, iRenderWindowYPos;
 
160
        int iRenderWindowWidth, iRenderWindowHeight;
 
161
        bool bRenderWindowAutoSize, bKeepWindowOnTop;
 
162
        bool bFullscreen, bRenderToMain;
 
163
        bool bProgressive, bDisableScreenSaver;
 
164
 
 
165
        int iPosX, iPosY, iWidth, iHeight;
 
166
 
 
167
        // Fifo Player related settings
 
168
        bool bLoopFifoReplay;
 
169
 
 
170
        enum EBootBS2
 
171
        {
 
172
                BOOT_DEFAULT,
 
173
                BOOT_BS2_JAP,
 
174
                BOOT_BS2_USA,
 
175
                BOOT_BS2_EUR,
 
176
        };
 
177
 
 
178
        enum EBootType
 
179
        {
 
180
                BOOT_ISO,
 
181
                BOOT_ELF,
 
182
                BOOT_DOL,
 
183
                BOOT_WII_NAND,
 
184
                BOOT_BS2,
 
185
                BOOT_DFF
 
186
        };
 
187
        EBootType m_BootType;
 
188
 
 
189
        std::string m_strVideoBackend;
 
190
 
 
191
        // files
 
192
        std::string m_strFilename;
 
193
        std::string m_strBootROM;
 
194
        std::string m_strSRAM;
 
195
        std::string m_strDefaultGCM;
 
196
        std::string m_strDVDRoot;
 
197
        std::string m_strApploader;
 
198
        std::string m_strUniqueID;
 
199
        std::string m_strRevisionSpecificUniqueID;
 
200
        std::string m_strName;
 
201
        std::string m_strGameIniDefault;
 
202
        std::string m_strGameIniDefaultRevisionSpecific;
 
203
        std::string m_strGameIniLocal;
 
204
 
 
205
        // Constructor just calls LoadDefaults
 
206
        SCoreStartupParameter();
 
207
 
 
208
        void LoadDefaults();
 
209
        bool AutoSetup(EBootBS2 _BootBS2);
 
210
        const std::string &GetUniqueID() const { return m_strUniqueID; }
 
211
        void CheckMemcardPath(std::string& memcardPath, std::string Region, bool isSlotA);
 
212
        IniFile LoadDefaultGameIni() const;
 
213
        IniFile LoadLocalGameIni() const;
 
214
        IniFile LoadGameIni() const;
 
215
};
 
216
 
 
217
#endif