diff options
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()); } |