11 #pragma comment(lib, "winmm.lib")
13 void OS_MsgBox(
const char *msg,
const char *title) {
14 MessageBoxA(
nullptr, msg, title, 0);
35 return Point(pt.x, pt.y);
40 freopen(
"conin$",
"r", stdin);
41 freopen(
"conout$",
"w", stdout);
42 freopen(
"conout$",
"w", stderr);
51 std::vector<std::string>
result;
55 WIN32_FIND_DATAA ffd = { 0 };
56 HANDLE hFind = FindFirstFileA(
path.c_str(), &ffd);
57 if (INVALID_HANDLE_VALUE == hFind) {
62 if ((ffd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) == 0) {
63 result.push_back(ffd.cFileName);
65 }
while (FindNextFileA(hFind, &ffd) != 0);