Pathfinder: Kingmaker
0 of 0

File information

Last updated

Original upload

Created by

Soldier9

Uploaded by

soldier9

Virus scan

Safe to use

Tags for this mod

About this mod

Fixes "Error: Access to the path ..." error when loading a savegame

Permissions and credits
Changelogs
Description
This mod fixes a bug that can happen if a large savegame has already been loaded (whether you are still in that game, or have exited to the main menu) and you try to load another savegame.
The same bug also causes it to be necessary to press "Exit Game" and confirm exiting twice when a large game has already been loaded.

Details
The bug happens when the game tries to "unload" the current game, which involves deleting and recreating a cache-folder (the one mentioned in the error message). Because of the way this is done, it can attempt to recreate the folder before it has been fully deleted which will cause the error.
This mod fixes it by patching the method handling this deletion and recreation, so that the folder is renamed before deletion to prevent the deletion taking a little bit of time affecting the recreation of it.

Thanks to
hsinyuhcan for helping me get started with Harmony Transpile patching.