From 47b31991c3d7575e48c2ef35fc0884a6a4bb6d53 Mon Sep 17 00:00:00 2001 From: Shamus Hammons Date: Sat, 6 Aug 2005 03:26:27 +0000 Subject: [PATCH] New render type config option --- src/settings.cpp | 1 + src/settings.h | 13 +++++++------ vj.cfg | 11 ++++++++--- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/src/settings.cpp b/src/settings.cpp index f4a14c0..ac64832 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -42,6 +42,7 @@ void LoadVJSettings(void) vjs.fullscreen = sdlemu_getval_bool("fullscreen", false); vjs.useOpenGL = sdlemu_getval_bool("useOpenGL", true); vjs.glFilter = sdlemu_getval_int("glFilterType", 0); + vjs.renderType = sdlemu_getval_int("renderType", 0); // Keybindings in order of U, D, L, R, C, B, A, Op, Pa, 0-9, #, * vjs.p1KeyBindings[0] = sdlemu_getval_int("p1k_up", SDLK_UP); diff --git a/src/settings.h b/src/settings.h index 91ef9f3..e527040 100644 --- a/src/settings.h +++ b/src/settings.h @@ -29,23 +29,24 @@ struct VJSettings uint32 glFilter; bool hardwareTypeAlpine; uint32 frameSkip; - + uint32 renderType; + // Keybindings in order of U, D, L, R, C, B, A, Op, Pa, 0-9, #, * + uint16 p1KeyBindings[21]; uint16 p2KeyBindings[21]; // Paths + char ROMPath[MAX_PATH]; char jagBootPath[MAX_PATH]; char CDBootPath[MAX_PATH]; char EEPROMPath[MAX_PATH]; - - // Internal global stuff -// uint32 ROMType; }; -// ROM Types -//enum { RT_CARTRIDGE, RT_ +// Render types + +enum { RT_NORMAL = 0, RT_TV = 1 }; // Exported functions diff --git a/vj.cfg b/vj.cfg index 90537b7..04d81fa 100644 --- a/vj.cfg +++ b/vj.cfg @@ -27,19 +27,23 @@ glFilterType = 0 fullscreen = 0 +# Backend renderer (OpenGL dependent): 0 - regular, 1 - "TV" style + +renderType = 0 + # NTSC/PAL options: 1 - NTSC, 0 - PAL hardwareTypeNTSC = 1 # Framskip options: 0 - no skip, 1-N - draw every Nth frame -# Note: Skipping frames may cause strange visual side effects--don't bother reporting these -# unless they occur with a frameskip value of 0! +# Note: Skipping frames may cause strange visual side effects--don't bother +# reporting these unless they occur with a frameskip value of 0! frameSkip = 0 # DSP options: 1 - use, 0 - don't use -DSPEnabled = 1 +DSPEnabled = 0 # If DSP enabled, set whether or not to use the pipelined core: 1 - use, 0 - don't use @@ -100,3 +104,4 @@ p2k_8 = 264 # SDLK_KP8 p2k_9 = 265 # SDLK_KP9 p2k_pound = 267 # SDLK_KP_DIVIDE p2k_star = 268 # SDLK_KP_MULTIPLY + -- 2.37.2