feat: durango ui parity & setting name

This commit is contained in:
2026-08-22 18:37:33 -04:00
parent a26fa24890
commit 6878c47f24
8 changed files with 73 additions and 39 deletions
+14 -1
View File
@@ -126,7 +126,7 @@ void CConsoleMinecraftApp::FatalLoadError()
);
if (result == IDOK) {
ExitGame();
PostQuitMessage(1); //str1k3r - since this is a fatal load error, exit with a nonzero exitcode
}
}
@@ -233,3 +233,16 @@ std::wstring CConsoleMinecraftApp::UTF8ToWide(const char* utf8)
wstr.resize(size - 1);
return wstr;
}
void CConsoleMinecraftApp::CopyWideArgToAnsi(LPCWSTR source, char* dest, size_t destSize)
{
if (destSize == 0)
return;
dest[0] = 0;
if (source == nullptr)
return;
WideCharToMultiByte(CP_ACP, 0, source, -1, dest, static_cast<int>(destSize), nullptr, nullptr);
dest[destSize - 1] = 0;
}