mirror of
https://github.com/rvtr/TDT.git
synced 2025-06-18 18:55:44 -04:00
Fix app size calculation
This commit is contained in:
parent
7ca8bd1a7c
commit
b56deb2a59
@ -508,7 +508,7 @@ bool install(char* fpath, bool systemTitle)
|
||||
u32 clusterSize = getDsiClusterSize();
|
||||
unsigned long long fileSize = getRomSize(fpath), fileSizeOnDisk = fileSize;
|
||||
if ((fileSizeOnDisk % clusterSize) != 0)
|
||||
fileSizeOnDisk = clusterSize - (fileSizeOnDisk % clusterSize);
|
||||
fileSizeOnDisk += clusterSize - (fileSizeOnDisk % clusterSize);
|
||||
//file + saves + TMD (rounded up to cluster size)
|
||||
unsigned long long installSize = fileSizeOnDisk + _getSaveDataSize(h) + clusterSize;
|
||||
if (tmdFound) installSize += clusterSize; //ticket, rounded up to cluster size
|
||||
|
Loading…
Reference in New Issue
Block a user