2025-03-12 18:54:23 +01:00
|
|
|
#include <iostream>
|
2025-03-17 18:50:31 +01:00
|
|
|
#include <memory>
|
2025-03-12 18:54:23 +01:00
|
|
|
|
2025-03-13 12:00:14 +01:00
|
|
|
#include "AppGLFW.hpp"
|
2025-03-17 18:50:31 +01:00
|
|
|
#include "utilities/ILog.hpp"
|
|
|
|
|
#include "utilities/SpdLogger.hpp"
|
2025-05-23 15:15:01 +02:00
|
|
|
#include "uiresources.h"
|
2025-03-13 12:00:14 +01:00
|
|
|
|
2025-03-12 18:54:23 +01:00
|
|
|
int main(int argc, char** argv)
|
|
|
|
|
{
|
2025-03-17 18:50:31 +01:00
|
|
|
using namespace pixelarium::utils::log;
|
|
|
|
|
using namespace std;
|
|
|
|
|
cout << "ok\n";
|
2025-05-28 21:39:18 +02:00
|
|
|
unique_ptr<ILog> logger;
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
|
logger = make_unique<SpdLogger>(string(getenv("APPDATA")) + "/pixelarium/logfile.log", "default");
|
|
|
|
|
#else
|
|
|
|
|
logger = make_unique<SpdLogger>(std::string(getenv("HOME")) + "/.cache/sutura/log.log", "default");
|
|
|
|
|
#endif
|
2025-03-17 18:50:31 +01:00
|
|
|
|
|
|
|
|
auto app = pixelarium::ui::AppGLFW(logger);
|
|
|
|
|
|
2025-05-23 15:15:01 +02:00
|
|
|
logger->Info(std::format("Starting Application {}", PIXELARIUM_TITLE));
|
2025-03-17 18:50:31 +01:00
|
|
|
logger->Error("Starting Application");
|
2025-03-13 12:00:14 +01:00
|
|
|
return app.Run();
|
2025-05-28 21:39:18 +02:00
|
|
|
}
|