1#include "system_class.h"
4int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR pScmdline,
int iCmdshow)
9 wchar_t path[MAX_PATH];
10 HMODULE hmodule = GetModuleHandle(NULL);
13 GetModuleFileName(hmodule, path, (
sizeof(path) /
sizeof(
wchar_t)));
16 std::filesystem::path exePath(path);
17 std::filesystem::path WFolder = exePath.parent_path();
23 result = System->initialize();
26 Logger::Get().
Log(
"System initialized", __FILE__, __LINE__, Logger::LogLevel::Initialize);
27 System->send_path(path,WFolder);
void Log(const std::string &message, const std::string &fileName, int lineNumber, LogLevel level=LogLevel::Info)