2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 21:07:42 +00:00

Windows refactors

This commit is contained in:
Jack Andersen
2015-08-30 17:36:24 -10:00
parent 199b8e7c32
commit e4f53eaa7c
30 changed files with 479 additions and 251 deletions

View File

@@ -1,7 +1,9 @@
#if _WIN32
#define WIN_PAUSE 1
#include <objbase.h>
#endif
#include <clocale>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@@ -89,6 +91,12 @@ int wmain(int argc, const wchar_t** argv)
int main(int argc, const char** argv)
#endif
{
#if _WIN32
CoInitializeEx(nullptr, COINIT_MULTITHREADED);
#else
std::setlocale(LC_ALL, "en-US.UTF-8");
#endif
/* Xterm check */
const char* term = getenv("TERM");
if (term && !strncmp(term, "xterm", 5))