Add setting for THPS2. Move RenderToTextureBuffer option to rend

section.
This commit is contained in:
Flyinghead 2018-05-22 15:34:33 +02:00
parent 0f6249fdcf
commit 23a2af0a28
5 changed files with 8 additions and 5 deletions

View File

@ -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;

View File

@ -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];

View File

@ -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

View File

@ -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;

View File

@ -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;