Libretro: Added toggle for high resolution mode blend feature
This commit is contained in:
parent
3df7a20976
commit
f2f692e984
1 changed files with 7 additions and 0 deletions
|
@ -39,6 +39,7 @@ static std::unique_ptr<LibretroMessageManager> _messageManager;
|
|||
static constexpr const char* MesenNtscFilter = "mesen-s_ntsc_filter";
|
||||
static constexpr const char* MesenRegion = "mesen-s_region";
|
||||
static constexpr const char* MesenAspectRatio = "mesen-s_aspect_ratio";
|
||||
static constexpr const char* MesenBlendHighRes = "mesen-s_blend_high_res";
|
||||
static constexpr const char* MesenOverscanVertical = "mesen-s_overscan_vertical";
|
||||
static constexpr const char* MesenOverscanHorizontal = "mesen-s_overscan_horizontal";
|
||||
static constexpr const char* MesenRamState = "mesen-s_ramstate";
|
||||
|
@ -107,6 +108,7 @@ extern "C" {
|
|||
{ MesenOverscanVertical, "Vertical Overscan; None|8px|16px" },
|
||||
{ MesenOverscanHorizontal, "Horizontal Overscan; None|8px|16px" },
|
||||
{ MesenAspectRatio, "Aspect Ratio; Auto|No Stretching|NTSC|PAL|4:3|16:9" },
|
||||
{ MesenBlendHighRes, "Blend Hi-Res Modes; disabled|enabled" },
|
||||
{ MesenOverclock, "Overclock; None|Low|Medium|High|Very High" },
|
||||
{ MesenOverclockType, "Overclock Type; Before NMI|After NMI" },
|
||||
{ MesenSuperFxOverclock, "Super FX Clock Speed; 100%|200%|300%|400%|500%|1000%" },
|
||||
|
@ -367,6 +369,11 @@ extern "C" {
|
|||
}
|
||||
}
|
||||
|
||||
if(readVariable(MesenBlendHighRes, var)) {
|
||||
string value = string(var.value);
|
||||
video.BlendHighResolutionModes = (value == "enabled");
|
||||
}
|
||||
|
||||
auto getKeyCode = [=](int port, int retroKey) {
|
||||
return (port << 8) | (retroKey + 1);
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue