]> Shamusworld >> Repos - virtualjaguar/commitdiff
New render type config option
authorShamus Hammons <jlhamm@acm.org>
Sat, 6 Aug 2005 03:26:27 +0000 (03:26 +0000)
committerShamus Hammons <jlhamm@acm.org>
Sat, 6 Aug 2005 03:26:27 +0000 (03:26 +0000)
src/settings.cpp
src/settings.h
vj.cfg

index f4a14c0f817953b4c7c5ce6c4c0eb82e96c74806..ac6483212f954dccdf91fa3db868d26621ee3cf1 100644 (file)
@@ -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);
index 91ef9f320e308377e65c70d6ebf8b0a82c1eb79e..e527040803df63731e5c1cde94128c9bf916c56a 100644 (file)
@@ -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 90537b71934d68489edbfd3063824684305cabab..04d81fa08acfc1d03d783309229fe57ccce0222f 100644 (file)
--- 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
+