Fix Linux build and locale
This commit is contained in:
parent
ac2150b0fa
commit
c4b89613ab
|
@ -293,8 +293,6 @@ int main(int argc, char** argv) {
|
|||
cfi.FontWeight = FW_NORMAL;
|
||||
wcscpy_s(cfi.FaceName, L"NSimSun");
|
||||
SetCurrentConsoleFontEx(GetStdHandle(STD_OUTPUT_HANDLE), FALSE, &cfi);
|
||||
#else
|
||||
std::setlocale(LC_ALL, "en_US.UTF-8");
|
||||
#endif
|
||||
|
||||
//printf("Current dir: %ls\n", std::filesystem::current_path().c_str());
|
||||
|
|
|
@ -1049,6 +1049,9 @@ void recomp::get_window_size(int& width, int& height) {
|
|||
}
|
||||
|
||||
void init_hook(RT64::RenderInterface* interface, RT64::RenderDevice* device) {
|
||||
#if defined(__linux__)
|
||||
std::locale::global(std::locale::classic());
|
||||
#endif
|
||||
ui_context = std::make_unique<UIContext>();
|
||||
|
||||
ui_context->rml.add_menu(recomp::Menu::Config, recomp::create_config_menu());
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
# undef Status
|
||||
# undef LockMask
|
||||
# undef Always
|
||||
# undef Success
|
||||
#endif
|
||||
|
||||
struct UltraThreadContext {
|
||||
|
|
Loading…
Reference in New Issue