Skip to content

Commit

Permalink
Revert "Use POSIX functions to get romname"
Browse files Browse the repository at this point in the history
  • Loading branch information
AKuHAK authored Jan 6, 2024
1 parent 9cba7d7 commit 0e906c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ PNG_ASSETS_DIR = gfx/
MAPFILE = opl.map
EE_LDFLAGS += -Wl,-Map,$(MAPFILE)

EE_LIBS = -L$(PS2SDK)/ports/lib -L$(GSKIT)/lib -L./lib -lgskit -ldmakit -lgskit_toolkit -lpoweroff -lfileXio -lpatches -ljpeg_ps2_addons -ljpeg -lpng -lz -lmc -lfreetype -lvux -lcdvd -lnetman -lps2ips -laudsrv -lvorbisfile -lvorbis -logg -lpadx -lelf-loader-nocolour
EE_LIBS = -L$(PS2SDK)/ports/lib -L$(GSKIT)/lib -L./lib -lgskit -ldmakit -lgskit_toolkit -lpoweroff -lfileXio -lpatches -ljpeg_ps2_addons -ljpeg -lpng -lz -ldebug -lm -lmc -lfreetype -lvux -lcdvd -lnetman -lps2ips -laudsrv -lvorbisfile -lvorbis -logg -lpadx -lelf-loader-nocolour
EE_INCS += -I$(PS2SDK)/ports/include -I$(PS2SDK)/ports/include/freetype2 -I$(GSKIT)/include -I$(GSKIT)/ee/dma/include -I$(GSKIT)/ee/gs/include -I$(GSKIT)/ee/toolkit/include -Imodules/iopcore/common -Imodules/network/common -Imodules/hdd/common -Iinclude

BIN2C = $(PS2SDK)/bin/bin2c
Expand Down
5 changes: 1 addition & 4 deletions src/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
#include "include/ioman.h"
#include "include/system.h"
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <malloc.h>
#include <rom0_info.h>

Expand Down Expand Up @@ -458,8 +456,7 @@ int InitConsoleRegionData(void)
char romver[16];

if ((result = ConsoleRegion) < 0) {
_io_driver driver = {open, close, (int (*)(int, void *, int))read, O_RDONLY};
GetRomNameWithIODriver(romver, &driver);
GetRomName(romver);

switch (romver[4]) {
case 'C':
Expand Down

0 comments on commit 0e906c9

Please sign in to comment.