Skip to content

Commit

Permalink
pc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Niko committed Feb 21, 2025
1 parent fbb3a19 commit 47fba8f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 0 additions & 4 deletions decompile/General/LOAD/LOAD_21_ReadFile.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,5 @@ void* DECOMP_LOAD_ReadFile(struct BigHeader* bigfile, /*u_int loadType,*/ int su

#endif

#if defined(REBUILD_PC) || defined(USE_PCDRV)
DECOMP_LOAD_ReadFileASyncCallback(CdlComplete, NULL);
#endif

return ptrDst;
}
6 changes: 6 additions & 0 deletions decompile/General/LOAD/LOAD_36_NextQueuedFile.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,10 @@ void DECOMP_LOAD_NextQueuedFile()
// will overwrite where VRAM was in RAM
DECOMP_MEMPACK_ReallocMem(0);
}

#if defined(REBUILD_PC) || defined(USE_PCDRV)
// After curr->ptrDestination is written,
// run the callback and use the destination
DECOMP_LOAD_ReadFileASyncCallback(CdlComplete, NULL);
#endif
}

0 comments on commit 47fba8f

Please sign in to comment.