mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-01-05 11:11:47 -06:00
xam: only print XamShowMessageBoxUI info on Win32
This commit is contained in:
@@ -206,7 +206,10 @@ uint32_t XamShowMessageBoxUI(uint32_t dwUserIndex, be<uint16_t>* wszTitle, be<ui
|
||||
|
||||
#if _DEBUG
|
||||
assert("XamShowMessageBoxUI encountered!" && false);
|
||||
#else
|
||||
#elif _WIN32
|
||||
// This code is Win32-only as it'll most likely crash, misbehave or
|
||||
// cause corruption due to using a different type of memory than what
|
||||
// wchar_t is on Linux. Windows uses 2 bytes while Linux uses 4 bytes.
|
||||
std::vector<std::wstring> texts{};
|
||||
|
||||
texts.emplace_back(reinterpret_cast<wchar_t*>(wszTitle));
|
||||
|
||||
Reference in New Issue
Block a user