Overhaul plat_get_string()
Now takes constants with human-readable names instead of Win32 string table IDs, language.h is no longer needed ui_msgbox*() no longer accepts string IDs as arguments directly, plat_get_string() must be explicitly called to retrieve the string
This commit is contained in:
@@ -122,11 +122,6 @@ plat_mouse_capture(int on)
|
||||
int
|
||||
ui_msgbox_header(int flags, void *header, void *message)
|
||||
{
|
||||
if (header <= (void *) 7168)
|
||||
header = plat_get_string((uintptr_t) header);
|
||||
if (message <= (void *) 7168)
|
||||
message = plat_get_string((uintptr_t) message);
|
||||
|
||||
auto hdr = (flags & MBX_ANSI) ? QString((char *) header) : QString::fromWCharArray(reinterpret_cast<const wchar_t *>(header));
|
||||
auto msg = (flags & MBX_ANSI) ? QString((char *) message) : QString::fromWCharArray(reinterpret_cast<const wchar_t *>(message));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user