diff --git a/core/nullDC.cpp b/core/nullDC.cpp index f57ea2dbf..a7a1733cb 100755 --- a/core/nullDC.cpp +++ b/core/nullDC.cpp @@ -131,6 +131,9 @@ cThread webui_thd(&webui_th,0); void LoadSpecialSettings() { + if (!strncmp("T13008D", reios_product_number, 7)) + // Tony Hawk's Pro Skater 2 + settings.rend.RenderToTextureBuffer = 1; } int dc_init(int argc,wchar* argv[]) @@ -255,6 +258,7 @@ void LoadSettings() settings.rend.UseMipmaps = cfgLoadInt("config","rend.UseMipmaps",1); settings.rend.WideScreen = cfgLoadInt("config","rend.WideScreen",0); settings.rend.ShowFPS = cfgLoadInt("config", "rend.ShowFPS", 0); + settings.rend.RenderToTextureBuffer = cfgLoadInt("config", "rend.RenderToTextureBuffer", 0); settings.pvr.subdivide_transp = cfgLoadInt("config","pvr.Subdivide",0); @@ -263,7 +267,6 @@ void LoadSettings() settings.pvr.MaxThreads = cfgLoadInt("config", "pvr.MaxThreads", 3); settings.pvr.SynchronousRendering = cfgLoadInt("config", "pvr.SynchronousRendering", 0); - settings.pvr.RenderToTextureBuffer = cfgLoadInt("config", "pvr.RenderToTextureBuffer", 0); settings.debug.SerialConsole = cfgLoadInt("config", "Debug.SerialConsoleEnabled", 0) != 0; diff --git a/core/reios/reios.cpp b/core/reios/reios.cpp index b45ef6da5..8df4fce14 100644 --- a/core/reios/reios.cpp +++ b/core/reios/reios.cpp @@ -108,7 +108,7 @@ static char reios_maker_id[17]; static char reios_device_info[17]; static char reios_area_symbols[9]; static char reios_peripherals[9]; -static char reios_product_number[11]; +char reios_product_number[11]; static char reios_product_version[7]; static char reios_releasedate[17]; static char reios_boot_filename[17]; diff --git a/core/reios/reios.h b/core/reios/reios.h index 94ed8128e..96459ae84 100644 --- a/core/reios/reios.h +++ b/core/reios/reios.h @@ -11,6 +11,6 @@ void DYNACALL reios_trap(u32 op); const char* reios_locate_ip(void); bool reios_locate_bootfile(const char* bootfile); -extern char reios_product_number[17]; +extern char reios_product_number[11]; #define REIOS_OPCODE 0x085B diff --git a/core/rend/gles/gltex.cpp b/core/rend/gles/gltex.cpp index 92ee52c5d..2458277a5 100644 --- a/core/rend/gles/gltex.cpp +++ b/core/rend/gles/gltex.cpp @@ -468,7 +468,7 @@ void ReadRTTBuffer() { const u8 fb_packmode = FB_W_CTRL.fb_packmode; - if (settings.pvr.RenderToTextureBuffer) + if (settings.rend.RenderToTextureBuffer) { u32 tex_addr = fb_rtt.TexAddr << 3; diff --git a/core/types.h b/core/types.h index 87c462603..585a6c67e 100644 --- a/core/types.h +++ b/core/types.h @@ -616,6 +616,7 @@ struct settings_t bool UseMipmaps; bool WideScreen; bool ShowFPS; + bool RenderToTextureBuffer; } rend; struct @@ -714,7 +715,6 @@ struct settings_t u32 MaxThreads; u32 SynchronousRendering; - u32 RenderToTextureBuffer; string HashLogFile; string HashCheckFile;