Skip to content

Commit

Permalink
Stop forcing using fiofunctions in gskit
Browse files Browse the repository at this point in the history
  • Loading branch information
fjtrujy committed Dec 26, 2023
1 parent 505c412 commit fca0f7b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ee/gs/src/gsInit.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#include <osd_config.h>
#include <rom0_info.h>

#define posixIODriver { open, close, read }

#if F__gsInit_internal
u8 __modelSupportsGetGsDxDyOffset;
#else
Expand All @@ -34,7 +36,7 @@ short int gsKit_check_rom(void)

if(default_signal < 0)
{
GetRomName((char *)romname);
GetRomNameWithIODriver((char *)romname, posixIODriver);
romname[14] = '\0';

//ROMVER string format: VVVVRTYYYYMMDD
Expand Down Expand Up @@ -489,7 +491,7 @@ GSGLOBAL *gsKit_init_global_custom(int Os_AllocSize, int Per_AllocSize)
gsGlobal->dma_misc = gsKit_alloc_ucab(512);

/* Generic Values */
if(configGetTvScreenType() == 2) gsGlobal->Aspect = GS_ASPECT_16_9;
if(configGetTvScreenTypeWithIODriver(posixIODriver) == 2) gsGlobal->Aspect = GS_ASPECT_16_9;
else
gsGlobal->Aspect = GS_ASPECT_4_3;

Expand Down

0 comments on commit fca0f7b

Please sign in to comment.