aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Windows64
diff options
context:
space:
mode:
authorvoid_17 <61356189+void2012@users.noreply.github.com>2026-03-02 01:23:23 +0700
committerGitHub <noreply@github.com>2026-03-02 01:23:23 +0700
commit3bf5db95841e950c0d4424f542a692fcd8b29642 (patch)
treee076bc9df4f7e1862fcf9493b643c9e5e075c1d3 /Minecraft.Client/Windows64
parentb865228eed3880c47a36f3c6c581e64297c59e67 (diff)
parentec61d19d783da9dcc212aab5298ec98329280afd (diff)
Merge pull request #34 from galenguyer/fix-release-assets
Copy release assets instead of changing working directory at runtime
Diffstat (limited to 'Minecraft.Client/Windows64')
-rw-r--r--Minecraft.Client/Windows64/Windows64_Minecraft.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/Minecraft.Client/Windows64/Windows64_Minecraft.cpp b/Minecraft.Client/Windows64/Windows64_Minecraft.cpp
index 42fb2d44..931e7f17 100644
--- a/Minecraft.Client/Windows64/Windows64_Minecraft.cpp
+++ b/Minecraft.Client/Windows64/Windows64_Minecraft.cpp
@@ -716,26 +716,6 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
-
- WCHAR exePath[MAX_PATH] = { 0 };
- GetModuleFileNameW(NULL, exePath, MAX_PATH);
- WCHAR* lastSlash = wcsrchr(exePath, L'\\');
- if (lastSlash) {
- *lastSlash = L'\0';
-
- WCHAR devCheckPath[MAX_PATH] = { 0 };
- swprintf_s(devCheckPath, MAX_PATH, L"%s\\..\\..\\Minecraft.Client\\Minecraft.Client.vcxproj", exePath);
-
- if (GetFileAttributesW(devCheckPath) != INVALID_FILE_ATTRIBUTES) {
- WCHAR projectPath[MAX_PATH] = { 0 };
- swprintf_s(projectPath, MAX_PATH, L"%s\\..\\..\\Minecraft.Client", exePath);
- SetCurrentDirectoryW(projectPath);
- }
- else {
- SetCurrentDirectoryW(exePath);
- }
- }
-
// Declare DPI awareness so GetSystemMetrics returns physical pixels
SetProcessDPIAware();
g_iScreenWidth = GetSystemMetrics(SM_CXSCREEN);