UnofficialCrusaderPatch / UnofficialCrusaderPatch3

Development for the dll Injection approach
GNU General Public License v3.0
11 stars 2 forks source link

[MODULES/FILES] change the FindFirstFileA and FindNextFileA logic #61

Closed gynt closed 11 months ago

gynt commented 11 months ago

Currently has a bug because FindFirstFileA returns -1 if game maps are disabled and the game looks no further for user maps even if they are desired to be in the game.

The reason for this bug is that FindFirstFileA hook should register what is currently being iterated over, but do the actual overwriting in the FindNextFileA hook, which the game code happily processes.

gynt commented 11 months ago

Resolved by 2eaba66