From 8e42f68caebdc772aca3b5addee27efebacc38a6 Mon Sep 17 00:00:00 2001 From: giantpune Date: Fri, 31 Jul 2009 05:22:33 +0000 Subject: [PATCH] changed the entrypoint in the makefile, yet again. In testing, this fixed the bug which caused some to get code dump when launching a game. Also messed with the run command within the makefile. press alt+r to compile the source code and then send the resulting dol to the wii. *note* you must have the environmental variable set up for wiiload. you don't need to have the .exe file, just the WIILOAD variable --- Makefile | 6 +++++- gui.pnproj | 2 +- source/wad/patchmii_core.c | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index cf60b7a9..0eed612a 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ INCLUDES := source CFLAGS = -g -O2 -save-temps -Wall $(MACHDEP) $(INCLUDE) CXXFLAGS = -Xassembler -aln=$@.lst $(CFLAGS) -LDFLAGS = -g $(MACHDEP) -Wl,-Map,$(notdir $@).map,--section-start,.init=0x80b00000 +LDFLAGS = -g $(MACHDEP) -Wl,-Map,$(notdir $@).map,--section-start,.init=0x8090a000 #--------------------------------------------------------------------------------- # any extra libraries we wish to link with the project @@ -110,6 +110,10 @@ clean: #--------------------------------------------------------------------------------- run: + make + @echo Done building ... + @echo Now Run That Shit ... + wiiload $(OUTPUT).dol #--------------------------------------------------------------------------------- diff --git a/gui.pnproj b/gui.pnproj index 53c6f213..8178b615 100644 --- a/gui.pnproj +++ b/gui.pnproj @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/source/wad/patchmii_core.c b/source/wad/patchmii_core.c index 81ac9137..168d873d 100644 --- a/source/wad/patchmii_core.c +++ b/source/wad/patchmii_core.c @@ -39,8 +39,8 @@ int tmd_dirty = 0, tik_dirty = 0, temp_ios_slot = 0; // yeah, yeah, I know. signed_blob *s_tmd = NULL, *s_tik = NULL, *s_certs = NULL; -static u8 tmdbuf[MAX_SIGNED_TMD_SIZE] ATTRIBUTE_ALIGN(0x20); -static u8 tikbuf[STD_SIGNED_TIK_SIZE] ATTRIBUTE_ALIGN(0x20); +//static u8 tmdbuf[MAX_SIGNED_TMD_SIZE] ATTRIBUTE_ALIGN(0x20); +//static u8 tikbuf[STD_SIGNED_TIK_SIZE] ATTRIBUTE_ALIGN(0x20); void zero_sig(signed_blob *sig) {