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/fileload.cpp | |
parent | 18a6c3dbe01f484b346923ebc53f674c1e4a5101 (diff) | |
download | kamek-e88fd1dcef52d4375fef655918886fc14bb1f40c.tar.gz kamek-e88fd1dcef52d4375fef655918886fc14bb1f40c.zip |
optimisations to reduce code size
Diffstat (limited to '')
-rw-r--r-- | src/fileload.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/fileload.cpp b/src/fileload.cpp index e672863..da9fd81 100644 --- a/src/fileload.cpp +++ b/src/fileload.cpp @@ -4,13 +4,11 @@ extern "C" void UncompressBackward(void *bottom); void *LoadFile(FileHandle *handle, const char *name) { - OSReport("[LoadFile %s]\n", name); int entryNum = DVDConvertPathToEntrynum(name); DVDHandle dvdhandle; if (!DVDFastOpen(entryNum, &dvdhandle)) { - OSReport("Cannot open file %s [%d]\n", name, entryNum); return 0; } @@ -21,19 +19,16 @@ void *LoadFile(FileHandle *handle, const char *name) { DVDClose(&dvdhandle); - OSReport("[Success %p]\n", handle->filePtr); return handle->filePtr; } /*void *LoadCompressedFile(FileHandle *handle, const char *name) { - OSReport("[LoadCompressedFile %s]\n", name); int entryNum = DVDConvertPathToEntrynum(name); DVDHandle dvdhandle; if (!DVDFastOpen(entryNum, &dvdhandle)) { - OSReport("Cannot open file %s [%d]\n", name, entryNum); return 0; } @@ -44,7 +39,6 @@ void *LoadFile(FileHandle *handle, const char *name) { infoBlock[1] = (infoBlock[1] >> 24) | ((infoBlock[1] >> 8) & 0xFF00) | ((infoBlock[1] & 0xFF00) << 8) | ((infoBlock[1] & 0xFF) << 24); u32 uncompSize = dvdhandle.length + infoBlock[1]; - OSReport("[Comp:%d UnComp:%d]\n", dvdhandle.length, uncompSize); handle->length = uncompSize; handle->filePtr = EGG__Heap__alloc((uncompSize+0x1F) & ~0x1F, 0x20, GetArchiveHeap()); @@ -54,7 +48,6 @@ void *LoadFile(FileHandle *handle, const char *name) { UncompressBackward((void*)((u32)handle->filePtr + dvdhandle.length)); - OSReport("[Success %p]\n", handle->filePtr); return handle->filePtr; }*/ @@ -63,7 +56,6 @@ bool FreeFile(FileHandle *handle) { if (!handle) return false; if (handle->filePtr) { - OSReport("[FreeFile %p]\n", handle->filePtr); EGG__Heap__free(handle->filePtr, GetArchiveHeap()); } |