libretro: Fix compile errors due to missing JitterEmulation functionality.

This commit is contained in:
Stephen Anthony 2022-06-05 20:39:19 -02:30
parent aad997a6bd
commit 7e03cfac4d
1 changed files with 11 additions and 1 deletions

View File

@ -25,7 +25,9 @@
#include "PaletteHandler.hxx" #include "PaletteHandler.hxx"
#include "Joystick.hxx" #include "Joystick.hxx"
#include "Paddles.hxx" #include "Paddles.hxx"
#ifdef GUI_SUPPORT
#include "JitterEmulation.hxx" #include "JitterEmulation.hxx"
#endif
#ifdef DEBUGGER_SUPPORT #ifdef DEBUGGER_SUPPORT
#include "DebuggerDialog.hxx" #include "DebuggerDialog.hxx"
@ -226,8 +228,10 @@ Settings::Settings()
setPermanent("plr.tiarandom", "false"); setPermanent("plr.tiarandom", "false");
setPermanent("plr.colorloss", "false"); setPermanent("plr.colorloss", "false");
setPermanent("plr.tv.jitter", "true"); setPermanent("plr.tv.jitter", "true");
#ifdef GUI_SUPPORT
setPermanent("plr.tv.jitter_sense", JitterEmulation::PLR_SENSITIVITY); setPermanent("plr.tv.jitter_sense", JitterEmulation::PLR_SENSITIVITY);
setPermanent("plr.tv.jitter_recovery", JitterEmulation::PLR_RECOVERY); setPermanent("plr.tv.jitter_recovery", JitterEmulation::PLR_RECOVERY);
#endif
setPermanent("plr.debugcolors", "false"); setPermanent("plr.debugcolors", "false");
setPermanent("plr.console", "2600"); // 7800 setPermanent("plr.console", "2600"); // 7800
setPermanent("plr.timemachine", true); setPermanent("plr.timemachine", true);
@ -247,8 +251,10 @@ Settings::Settings()
setPermanent("dev.tiarandom", "true"); setPermanent("dev.tiarandom", "true");
setPermanent("dev.colorloss", "true"); setPermanent("dev.colorloss", "true");
setPermanent("dev.tv.jitter", "true"); setPermanent("dev.tv.jitter", "true");
#ifdef GUI_SUPPORT
setPermanent("dev.tv.jitter_sense", JitterEmulation::DEV_SENSITIVITY); setPermanent("dev.tv.jitter_sense", JitterEmulation::DEV_SENSITIVITY);
setPermanent("dev.tv.jitter_recovery", JitterEmulation::DEV_RECOVERY); setPermanent("dev.tv.jitter_recovery", JitterEmulation::DEV_RECOVERY);
#endif
setPermanent("dev.debugcolors", "false"); setPermanent("dev.debugcolors", "false");
setPermanent("dev.tiadriven", "true"); setPermanent("dev.tiadriven", "true");
setPermanent("dev.console", "2600"); // 7800 setPermanent("dev.console", "2600"); // 7800
@ -339,6 +345,7 @@ void Settings::validate()
i = getInt("tv.filter"); i = getInt("tv.filter");
if(i < 0 || i > 5) setValue("tv.filter", "0"); if(i < 0 || i > 5) setValue("tv.filter", "0");
#ifdef GUI_SUPPORT
i = getInt("dev.tv.jitter_sense"); i = getInt("dev.tv.jitter_sense");
if(i < JitterEmulation::MIN_SENSITIVITY || i > JitterEmulation::MAX_SENSITIVITY) if(i < JitterEmulation::MIN_SENSITIVITY || i > JitterEmulation::MAX_SENSITIVITY)
setValue("dev.tv.jitter_sense", JitterEmulation::DEV_SENSITIVITY); setValue("dev.tv.jitter_sense", JitterEmulation::DEV_SENSITIVITY);
@ -346,6 +353,7 @@ void Settings::validate()
i = getInt("dev.tv.jitter_recovery"); i = getInt("dev.tv.jitter_recovery");
if(i < JitterEmulation::MIN_RECOVERY || i > JitterEmulation::MAX_RECOVERY) if(i < JitterEmulation::MIN_RECOVERY || i > JitterEmulation::MAX_RECOVERY)
setValue("dev.tv.jitter_recovery", JitterEmulation::DEV_RECOVERY); setValue("dev.tv.jitter_recovery", JitterEmulation::DEV_RECOVERY);
#endif
int size = getInt("dev.tm.size"); int size = getInt("dev.tm.size");
if(size < 20 || size > 1000) if(size < 20 || size > 1000)
@ -363,12 +371,14 @@ void Settings::validate()
i = getInt("dev.tm.horizon"); i = getInt("dev.tm.horizon");
if(i < 0 || i > 6) setValue("dev.tm.horizon", 1);*/ if(i < 0 || i > 6) setValue("dev.tm.horizon", 1);*/
#ifdef GUI_SUPPORT
i = getInt("plr.tv.jitter_sense"); i = getInt("plr.tv.jitter_sense");
if(i < JitterEmulation::MIN_SENSITIVITY || i > JitterEmulation::MAX_SENSITIVITY) if(i < JitterEmulation::MIN_SENSITIVITY || i > JitterEmulation::MAX_SENSITIVITY)
setValue("plr.tv.jitter_sense", JitterEmulation::PLR_SENSITIVITY); setValue("plr.tv.jitter_sense", JitterEmulation::PLR_SENSITIVITY);
i = getInt("plr.tv.jitter_recovery"); i = getInt("plr.tv.jitter_recovery");
if(i < 1 || i > 20) setValue("plr.tv.jitter_recovery", JitterEmulation::PLR_RECOVERY); if(i < 1 || i > 20) setValue("plr.tv.jitter_recovery", JitterEmulation::PLR_RECOVERY);
#endif
size = getInt("plr.tm.size"); size = getInt("plr.tm.size");
if(size < 20 || size > 1000) if(size < 20 || size > 1000)