mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
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
|
||||
UINT offset_dest = fvx_tell(&dfile);
|
||||
if ((fvx_lseek(&dfile, offset_dest + fsize) != FR_OK) ||
|
||||
(fvx_tell(&dfile) != offset_dest + fsize) ||
|
||||
UINT offset_dest = fvx_size(&dfile);
|
||||
if ((fvx_lseek(&dfile, offset_dest + size) != FR_OK) ||
|
||||
(fvx_tell(&dfile) != offset_dest + size) ||
|
||||
(fvx_lseek(&dfile, offset_dest) != FR_OK)) {
|
||||
fvx_close(&ofile);
|
||||
fvx_close(&dfile);
|
||||
|
Loading…
x
Reference in New Issue
Block a user