thpatch / thcrap

Touhou Community Reliant Automatic Patcher
https://www.thpatch.net
The Unlicense
558 stars 41 forks source link

thcrap_wrapper: Set current directory using... #115

Closed 32th-System closed 5 years ago

32th-System commented 5 years ago

path provided by GetModuleFileName if rcCurrentDirectory is not set. This will make it possible to run a command like thcrap\thcrap_loader.exe ... to start thcrap

IMPORTANT NOTE: THIS WILL FAIL TO BUILD BECAUSE I DID NOT EDIT BUILD FILES TO INCLUDE shlwapi.lib. I never worked with build systems before :tannedcirno: but was able to test by using the Visual Studio UI to include shlwapi.lib

(also it'd probably make sense to use NULL for the CurrentDirectory parameter in CreateProcessW now)