Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 9 additions & 2 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <sio.h>
#include <ctype.h>
#include <iop_regs.h>
#include <SIOCookie.h>

// error code list
// 0x54 - ENOENT
Expand Down Expand Up @@ -46,7 +47,6 @@ char* ConsoleROMVER = romver_buf;
char buffer[256];
size_t total_read = 0;


void reload_modules_withiopreset() {
SifIopReset("", 0);
SifIopSync();
Expand Down Expand Up @@ -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();

Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -420,4 +428,3 @@ int main() {
}