From bf4e0d89087f941d97294652bcfa5e64621df9dd Mon Sep 17 00:00:00 2001 From: "wagic.the.homebrew" Date: Sun, 10 Jul 2011 07:55:08 +0000 Subject: [PATCH] - minor tweaks: -- Res is the default folder in Res.txt, in case it exists, to avoid confusion when debugging -- added sign_prx in the makefile, harmless if you have the default build.mak, but signs the app for you if you have the correct files -- uninitialized variable warning fixed in Rules.cpp --- projects/mtg/Makefile | 2 +- projects/mtg/bin/Res.txt | 1 + projects/mtg/src/Rules.cpp | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/projects/mtg/Makefile b/projects/mtg/Makefile index 5d3c277da..b1e0bd7e1 100644 --- a/projects/mtg/Makefile +++ b/projects/mtg/Makefile @@ -26,7 +26,7 @@ DEFAULT_RULE = 3xx TARGET_ARCHITECTURE = psp PSP_FW_VERSION=371 BUILD_PRX = 1 -#SIGN_PRX = 1 +SIGN_PRX = 1 LIBS = -ljge300 -lhgetools -lfreetype -ljpeg -lgif -lpng -lz -lm -lmikmod -lpsppower -lpspmpeg -lpspaudiocodec -lpspaudiolib -lpspaudio -lpspmp3 -lpspgum -lpspgu -lpsprtc -lstdc++ -lpspfpu EXTRA_TARGETS = EBOOT.PBP diff --git a/projects/mtg/bin/Res.txt b/projects/mtg/bin/Res.txt index af6beddc8..74d0b00d2 100644 --- a/projects/mtg/bin/Res.txt +++ b/projects/mtg/bin/Res.txt @@ -1,3 +1,4 @@ +./Res/ ms0:/PSP/wagic_res/ ms0:/wagic_res/ ../../wagic_res/ diff --git a/projects/mtg/src/Rules.cpp b/projects/mtg/src/Rules.cpp index 0c831de29..8f8e47c81 100644 --- a/projects/mtg/src/Rules.cpp +++ b/projects/mtg/src/Rules.cpp @@ -133,7 +133,7 @@ void RulesState::parsePlayerState(int playerId, string s) size_t limiter = s.find("="); if (limiter == string::npos) limiter = s.find(":"); string areaS; - int area; + int area = -1; if (limiter != string::npos) { areaS = s.substr(0, limiter);