winport:
- add hotkeys for change JIT block size; (default: Ctrl+Numpad+, Ctrl+Numpad-);
This commit is contained in:
parent
3982cdb90e
commit
31b7f554b9
|
@ -109,6 +109,30 @@ void HK_CpuMode(int, bool justPressed)
|
||||||
osd->addLine(tmp);
|
osd->addLine(tmp);
|
||||||
//WritePrivateProfileInt("Emulation", "CpuMode", CommonSettings.use_jit, IniName)
|
//WritePrivateProfileInt("Emulation", "CpuMode", CommonSettings.use_jit, IniName)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void HK_JitBlockSizeDec(int, bool justPressed)
|
||||||
|
{
|
||||||
|
if (!CommonSettings.use_jit) return;
|
||||||
|
if (CommonSettings.jit_max_block_size < 2) return;
|
||||||
|
|
||||||
|
CommonSettings.jit_max_block_size--;
|
||||||
|
char tmp[256];
|
||||||
|
sprintf(tmp,"JIT block size changed to: %d", CommonSettings.jit_max_block_size);
|
||||||
|
osd->addLine(tmp);
|
||||||
|
arm_jit_reset(CommonSettings.use_jit);
|
||||||
|
}
|
||||||
|
|
||||||
|
void HK_JitBlockSizeInc(int, bool justPressed)
|
||||||
|
{
|
||||||
|
if (!CommonSettings.use_jit) return;
|
||||||
|
if (CommonSettings.jit_max_block_size > 99) return;
|
||||||
|
|
||||||
|
CommonSettings.jit_max_block_size++;
|
||||||
|
char tmp[256];
|
||||||
|
sprintf(tmp,"JIT block size changed to: %d", CommonSettings.jit_max_block_size);
|
||||||
|
osd->addLine(tmp);
|
||||||
|
arm_jit_reset(CommonSettings.use_jit);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void HK_SearchCheats(int, bool justPressed)
|
void HK_SearchCheats(int, bool justPressed)
|
||||||
|
@ -547,6 +571,20 @@ void InitCustomKeys (SCustomKeys *keys)
|
||||||
keys->CpuMode.name = STRW(ID_LABEL_HK3b);
|
keys->CpuMode.name = STRW(ID_LABEL_HK3b);
|
||||||
keys->CpuMode.page = HOTKEY_PAGE_MAIN;
|
keys->CpuMode.page = HOTKEY_PAGE_MAIN;
|
||||||
keys->CpuMode.key = VK_SCROLL;
|
keys->CpuMode.key = VK_SCROLL;
|
||||||
|
|
||||||
|
keys->JitBlockSizeDec.handleKeyDown = HK_JitBlockSizeDec;
|
||||||
|
keys->JitBlockSizeDec.code = "JitBlockSizeDec";
|
||||||
|
keys->JitBlockSizeDec.name = STRW(ID_LABEL_HK3c);
|
||||||
|
keys->JitBlockSizeDec.page = HOTKEY_PAGE_MAIN;
|
||||||
|
keys->JitBlockSizeDec.key = VK_SUBTRACT;
|
||||||
|
keys->JitBlockSizeDec.modifiers = CUSTKEY_CTRL_MASK;
|
||||||
|
|
||||||
|
keys->JitBlockSizeInc.handleKeyDown = HK_JitBlockSizeInc;
|
||||||
|
keys->JitBlockSizeInc.code = "JitBlockSizeInc";
|
||||||
|
keys->JitBlockSizeInc.name = STRW(ID_LABEL_HK3d);
|
||||||
|
keys->JitBlockSizeInc.page = HOTKEY_PAGE_MAIN;
|
||||||
|
keys->JitBlockSizeInc.key = VK_ADD;
|
||||||
|
keys->JitBlockSizeInc.modifiers = CUSTKEY_CTRL_MASK;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
keys->FrameAdvance.handleKeyDown = HK_FrameAdvanceKeyDown;
|
keys->FrameAdvance.handleKeyDown = HK_FrameAdvanceKeyDown;
|
||||||
|
|
|
@ -77,7 +77,7 @@ struct SCustomKeys
|
||||||
SCustomKey OpenROM, ReloadROM, Reset, Pause;
|
SCustomKey OpenROM, ReloadROM, Reset, Pause;
|
||||||
|
|
||||||
#ifdef HAVE_JIT
|
#ifdef HAVE_JIT
|
||||||
SCustomKey CpuMode;
|
SCustomKey CpuMode, JitBlockSizeDec, JitBlockSizeInc;
|
||||||
#endif
|
#endif
|
||||||
SCustomKey FrameAdvance, FastForward, FastForwardToggle, IncreaseSpeed, DecreaseSpeed, FrameLimitToggle, Microphone, IncreasePressure, DecreasePressure, ToggleStylusJitter;
|
SCustomKey FrameAdvance, FastForward, FastForwardToggle, IncreaseSpeed, DecreaseSpeed, FrameLimitToggle, Microphone, IncreasePressure, DecreasePressure, ToggleStylusJitter;
|
||||||
|
|
||||||
|
|
|
@ -913,6 +913,8 @@
|
||||||
#define IDM_AUTODETECTSAVETYPE_FROMDATABASE 40105
|
#define IDM_AUTODETECTSAVETYPE_FROMDATABASE 40105
|
||||||
#define ID_DISPLAYMETHOD_FILTER 40106
|
#define ID_DISPLAYMETHOD_FILTER 40106
|
||||||
#define ID_LABEL_HK3b 44670
|
#define ID_LABEL_HK3b 44670
|
||||||
|
#define ID_LABEL_HK3c 44671
|
||||||
|
#define ID_LABEL_HK3d 44672
|
||||||
#define ID_LABEL_HK8b 44720
|
#define ID_LABEL_HK8b 44720
|
||||||
#define IDC_LABEL_UP 50000
|
#define IDC_LABEL_UP 50000
|
||||||
#define IDC_LABEL_RIGHT 50001
|
#define IDC_LABEL_RIGHT 50001
|
||||||
|
|
Loading…
Reference in New Issue