Added (emu-only) RCVI hack. (#425)
* Added emu-only RCVI hack * newline moment * Changed the value to *20 hi arthur * RCVI hack compiler warning * Revise BETTER_REVERB comments to better reflect RCVI hack's existence * Fix potentially confusing comment * More BETTER_REVERB typos :peterVOID: * Address requested PR changes for RCVI Hack Co-authored-by: gheskett <gheskett@gmail.com>
This commit is contained in:
1 parent
818da65ae6
commit
683ac0b2bf
4 files changed
+28
-13
No files matched your search
+9
-2
@@ -334,7 +334,7 @@ void check_cache_emulation() {
|
||||
}
|
||||
|
||||
extern void crash_screen_init(void);
|
||||
|
||||
extern OSViMode VI;
|
||||
void thread3_main(UNUSED void *arg) {
|
||||
setup_mesg_queues();
|
||||
alloc_pool();
|
||||
@@ -365,6 +365,13 @@ void thread3_main(UNUSED void *arg) {
|
||||
} else {
|
||||
gCacheEmulated = FALSE;
|
||||
}
|
||||
#ifdef RCVI_HACK
|
||||
VI.comRegs.vSync = 525*20;
|
||||
change_vi(&VI, SCREEN_WIDTH, SCREEN_HEIGHT);
|
||||
osViSetMode(&VI);
|
||||
osViSetSpecialFeatures(OS_VI_DITHER_FILTER_ON);
|
||||
osViSetSpecialFeatures(OS_VI_GAMMA_OFF);
|
||||
#endif
|
||||
} else {
|
||||
gIsConsole = TRUE;
|
||||
gBorderHeight = BORDER_HEIGHT_CONSOLE;
|
||||
@@ -458,7 +465,7 @@ void turn_off_audio(void) {
|
||||
}
|
||||
}
|
||||
|
||||
void change_vi(OSViMode *mode, int width, int height){
|
||||
void change_vi(OSViMode *mode, int width, int height) {
|
||||
mode->comRegs.width = width;
|
||||
mode->comRegs.xScale = ((width * 512) / 320);
|
||||
if (height > 240) {
|
||||
|
||||
Reference in new issue
Block a user