☘️ Tools for windows game mod (localization) without cover origin file.
See also psv-rePatch.
winloader.c, win loader for loading dll into exe
winversion.h, single header file for windows version.dll proxy to patch.dll
winoverride.h, single header file for redircting files to "override" folder
rename winloader32.exe or winloader64.exe to xxx_yyy.exe, and it will automaticly load xxx.dll
rename libwinversion32.dll or libwinversion64.dll to version.dll, and it will automaticly load patch.dll.
load libwinoverride32.dll or libwinoverride64.dll into target exe either by winloader or winoverride, and it will automaticly redirect ${pwd}/xxx/yyy to ${pwd}/override/xxx/yyy if it exists.
make -f winloader.mk CC=i686-w64-mingw32-gcc WINDRES=i686-w64-mingw32-windres BUILD_TYPE=32
make -f winloader.mk CC=x86_64-w64-mingw32-gcc WINDRES=x86_64-w64-mingw32-windres BUILD_TYPE=64
make -f libwinversion.mk CC=i686-w64-mingw32-gcc BUILD_TYPE=32
make -f libwinversion.mk CC=x86_64-w64-mingw32-gcc BUILD_TYPE=64
make -f libwinoverride.mk CC=i686-w64-mingw32-gcc BUILD_TYPE=32
make -f libwinoverride.mk CC=x86_64-w64-mingw32-gcc BUILD_TYPE=64msbuild winloader.vcxproj -p:configuration=release -p:Platform=x86
msbuild winloader.vcxproj -p:configuration=release -p:Platform=x64
msbuild libwinversion.vcxproj -p:configuration=release -p:Platform=x86
msbuild libwinversion.vcxproj -p:configuration=release -p:Platform=x64
msbuild libwinoverride.vcxproj -p:configuration=release -p:Platform=x86
msbuild libwinoverride.vcxproj -p:configuration=release -p:Platform=x64- unity resources.assets can not be redirect if larger than original file
caused by
NtQueryFullAttributesFile