aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Common/UI/IUIScene_ContainerMenu.cpp
diff options
context:
space:
mode:
authorNΞVΛR <danielo-24@hotmail.com>2026-03-01 18:19:38 +0100
committerNΞVΛR <danielo-24@hotmail.com>2026-03-01 18:19:38 +0100
commitfa254306949eec458cdff71c3867ded0e7494d2f (patch)
treedc4e4d1ae9f6a0c990a34da0d36795a3cc11c2ce /Minecraft.Client/Common/UI/IUIScene_ContainerMenu.cpp
parentb5111232aa13952f58ed1b3b3525ea825662b95c (diff)
Fix for exe not running, not founding the project directory
In _tWinMain (Windows64_Minecraft.cpp) add logic to detect if the executable path contains "\\x64\\". If found, truncate the path at that position, append "\\Minecraft.Client" and call SetCurrentDirectoryA to set the process working directory. This ensures relative resource paths resolve correctly when running from an x64 build output directory; the change is guarded by a substring check and uses MAX_PATH-safe APIs.
Diffstat (limited to 'Minecraft.Client/Common/UI/IUIScene_ContainerMenu.cpp')
0 files changed, 0 insertions, 0 deletions