forked from Mirror/GodMode9
parent
dbe600c458
commit
0dd72ceb27
@ -1060,9 +1060,9 @@ u32 InsertCiaContent(const char* path_cia, const char* path_content, u32 offset,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ensure free space for destination file
|
// ensure free space for destination file
|
||||||
UINT offset_dest = fvx_tell(&dfile);
|
UINT offset_dest = fvx_size(&dfile);
|
||||||
if ((fvx_lseek(&dfile, offset_dest + fsize) != FR_OK) ||
|
if ((fvx_lseek(&dfile, offset_dest + size) != FR_OK) ||
|
||||||
(fvx_tell(&dfile) != offset_dest + fsize) ||
|
(fvx_tell(&dfile) != offset_dest + size) ||
|
||||||
(fvx_lseek(&dfile, offset_dest) != FR_OK)) {
|
(fvx_lseek(&dfile, offset_dest) != FR_OK)) {
|
||||||
fvx_close(&ofile);
|
fvx_close(&ofile);
|
||||||
fvx_close(&dfile);
|
fvx_close(&dfile);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user