diff --git a/Makefile b/Makefile index a3b5a89..86c13ff 100644 --- a/Makefile +++ b/Makefile @@ -19,12 +19,12 @@ PACKED_BIN = $(TARGET_PACKED).elf PACKED_BIN_R4D = $(R4D_TARGET_PACKED).elf PACKED_BIN_ARCADE = $(ARCADE_TARGET_PACKED).elf PACKED_BIN_R4D_ARCADE = $(R4D_ARCADE_TARGET_PACKED).elf -EE_CFLAGS += -Os -fdata-sections -ffunction-sections -DNEWLIB_PORT_AWARE -Iinclude -Imodules/iopcore/common -Imodules/network/common +EE_CFLAGS += -Os -fdata-sections -ffunction-sections -DNEWLIB_PORT_AWARE -Iinclude -Imodules/iopcore/common -Imodules/network/common -I$(PS2SDK)/ports/include EE_LDFLAGS += -Wl,--gc-sections CFLAGS_R4D = $(EE_CFLAGS) -DR4D $(EE_INCS) CFLAGS_ARCADE = $(EE_CFLAGS) -DARCADE $(EE_INCS) CFLAGS_R4D_ARCADE = $(EE_CFLAGS) -DR4D -DARCADE $(EE_INCS) -EE_LIBS_COMMON = -lc -ldebug -lfileXio -lkernel -lelf-loader -lpatches -lps2ips -lmc -lxcdvd +EE_LIBS_COMMON = -lc -ldebug -lfileXio -lkernel -lelf-loader -lpatches -lps2ips -lmc -lxcdvd -L$(PS2SDK)/ports/lib -lsiocookie EE_LIBS = $(EE_LIBS_COMMON) -lpad EE_LIBS_ARCADE = $(EE_LIBS_COMMON) -lpadx EE_LIBS_R4D_ARCADE = $(EE_LIBS_COMMON) -lpadx diff --git a/main.c b/main.c index 4641461..5d73be2 100644 --- a/main.c +++ b/main.c @@ -19,6 +19,7 @@ #include #include #include +#include // error code list // 0x54 - ENOENT @@ -46,7 +47,6 @@ char* ConsoleROMVER = romver_buf; char buffer[256]; size_t total_read = 0; - void reload_modules_withiopreset() { SifIopReset("", 0); SifIopSync(); @@ -115,6 +115,8 @@ void loadextramodules() { int main() { SifInitRpc(0); + ee_sio_start(38400, 0, 0, 0, 0, 1); + setvbuf(stdout, NULL, _IONBF, 0); //patch for OSDMenu reload_modules_withiopreset(); @@ -182,16 +184,22 @@ int main() { // patch for screens with overscan scr_printf("\n"); #ifdef R4D + printf("==============================================\n"); printf("ROM Version Checker for R4D\n"); + scr_printf("==============================================\n"); scr_printf("ROM Version Checker for R4D\n"); #else + printf("==============================================\n"); printf("ROM Version Checker\n"); + scr_printf("==============================================\n"); scr_printf("ROM Version Checker\n"); #endif printf("by slimpuggamer\n"); scr_printf("by slimpuggamer\n"); + printf("==============================================\n"); + scr_printf("==============================================\n"); scr_printf("\n"); printf("\n"); printf("ROMVER: %s\n", romver_buf); @@ -420,4 +428,3 @@ int main() { } -