diff options
author | Treeki <treeki@gmail.com> | 2012-03-15 02:54:33 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-03-15 02:54:33 +0100 |
commit | e88fd1dcef52d4375fef655918886fc14bb1f40c (patch) | |
tree | f081b14a420331258665a58ad31be54b13b1c655 /src/tilesetfixer.cpp | |
parent | 18a6c3dbe01f484b346923ebc53f674c1e4a5101 (diff) | |
download | kamek-e88fd1dcef52d4375fef655918886fc14bb1f40c.tar.gz kamek-e88fd1dcef52d4375fef655918886fc14bb1f40c.zip |
optimisations to reduce code size
Diffstat (limited to 'src/tilesetfixer.cpp')
-rw-r--r-- | src/tilesetfixer.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/tilesetfixer.cpp b/src/tilesetfixer.cpp index 73615a1..71bea9d 100644 --- a/src/tilesetfixer.cpp +++ b/src/tilesetfixer.cpp @@ -28,11 +28,9 @@ void DoFixes(int slotNumber) { const char *tsName = GetTilesetName(BGDatClass, GetAreaNum(), slotNumber); if (tsName == 0 || tsName[0] == 0) { - OSReport("Skipping set %d\n", slotNumber); return; } - OSReport("Processing %d = %s\n", slotNumber, tsName); char untHDname[64], untname[64]; snprintf(untHDname, 64, "BG_unt/%s_hd.bin", tsName); @@ -42,17 +40,14 @@ void DoFixes(int slotNumber) { void *bg_unt_hd_data = DVD_GetFile(GetDVDClass2(), tsName, untHDname, &unt_hd_length); void *bg_unt = DVD_GetFile(GetDVDClass2(), tsName, untname); - OSReport("Unt: %p - Unt_HD: %p\n", bg_unt, bg_unt_hd_data); ObjLookupEntry *lookups = (ObjLookupEntry*)bg_unt_hd_data; int objCount = unt_hd_length / sizeof(ObjLookupEntry); - OSReport("%d objects\n", objCount); for (int i = 0; i < objCount; i++) { // process each object u8 *thisObj = (u8*)((u32)bg_unt + lookups[i].offset); - //OSReport("processing %d[%p][%04x]\n", i, thisObj, lookups[i].offset); SwapObjData(thisObj, slotNumber); } @@ -64,7 +59,6 @@ void SwapObjData(u8 *data, int slotNumber) { while (*data != 0xFF) { u8 cmd = *data; - //OSReport("Command: %02x\n", cmd); if (cmd == 0xFE || (cmd & 0x80) != 0) { data++; @@ -78,6 +72,5 @@ void SwapObjData(u8 *data, int slotNumber) { data += 3; } - //OSReport("Ended @ %p\n", data); } |