forked from Ports/perfect_dark
portx64: romdata: check for PLATFORM_64BIT inside romdataGetEstimatedFileSize()
This commit is contained in:
1 parent
e8006f3446
commit
40273bdba1
2 files changed
+3
-5
No files matched your search
+3
-1
@@ -548,6 +548,7 @@ u32 romdataSegGetSize(const char *segName)
|
||||
|
||||
u32 romdataGetEstimatedFileSize(u32 size, FileType filetype)
|
||||
{
|
||||
#ifdef PLATFORM_64BIT
|
||||
switch (filetype) {
|
||||
case FT_BG: return (u32)(size * 1.1);
|
||||
case FT_TILES: return (u32)(size * 1.1);
|
||||
@@ -557,7 +558,8 @@ u32 romdataGetEstimatedFileSize(u32 size, FileType filetype)
|
||||
case FT_MODEL: return (u32)(size * 1.7);
|
||||
default:
|
||||
sysLogPrintf(LOG_WARNING, "wrong file type in romdataGetEstimatedFileSize: %d", filetype);
|
||||
return size;
|
||||
}
|
||||
#endif
|
||||
return size;
|
||||
}
|
||||
|
||||
@@ -4283,11 +4283,7 @@ u32 fileGetInflatedSize(s32 filenum, FileType filetype)
|
||||
}
|
||||
|
||||
if (rzipIs1173(ptr)) {
|
||||
#ifdef PLATFORM_N64
|
||||
return (ptr[2] << 16) | (ptr[3] << 8) | ptr[4];
|
||||
#else
|
||||
return romdataGetEstimatedFileSize((ptr[2] << 16) | (ptr[3] << 8) | ptr[4], filetype);
|
||||
#endif
|
||||
}
|
||||
|
||||
#if VERSION < VERSION_NTSC_1_0
|
||||
|
||||
Reference in new issue
Block a user