Revert "Merge pull request #25 from NEVARLeVrai/main"
This reverts commit33e1b5ceb9, reversing changes made to44b68333a3. This is a hacky way of doing it instead of just copying the assets that are needed
This commit is contained in:
@@ -716,26 +716,6 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
|
|||||||
UNREFERENCED_PARAMETER(hPrevInstance);
|
UNREFERENCED_PARAMETER(hPrevInstance);
|
||||||
UNREFERENCED_PARAMETER(lpCmdLine);
|
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
|
// Declare DPI awareness so GetSystemMetrics returns physical pixels
|
||||||
SetProcessDPIAware();
|
SetProcessDPIAware();
|
||||||
g_iScreenWidth = GetSystemMetrics(SM_CXSCREEN);
|
g_iScreenWidth = GetSystemMetrics(SM_CXSCREEN);
|
||||||
|
|||||||
Reference in New Issue
Block a user