2026-02-02 12:24:50 -08:00
|
|
|
#include "core/application.hpp"
|
|
|
|
|
#include "core/logger.hpp"
|
|
|
|
|
#include <exception>
|
|
|
|
|
|
2026-02-07 11:43:37 -08:00
|
|
|
int main([[maybe_unused]] int argc, [[maybe_unused]] char* argv[]) {
|
2026-02-02 12:24:50 -08:00
|
|
|
try {
|
|
|
|
|
wowee::core::Logger::getInstance().setLogLevel(wowee::core::LogLevel::DEBUG);
|
2026-02-02 23:22:58 -08:00
|
|
|
LOG_INFO("=== Wowee Native Client ===");
|
2026-02-02 12:24:50 -08:00
|
|
|
LOG_INFO("Starting application...");
|
|
|
|
|
|
|
|
|
|
wowee::core::Application app;
|
|
|
|
|
|
|
|
|
|
if (!app.initialize()) {
|
|
|
|
|
LOG_FATAL("Failed to initialize application");
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
app.run();
|
|
|
|
|
app.shutdown();
|
|
|
|
|
|
|
|
|
|
LOG_INFO("Application exited successfully");
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
catch (const std::exception& e) {
|
|
|
|
|
LOG_FATAL("Unhandled exception: ", e.what());
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
catch (...) {
|
|
|
|
|
LOG_FATAL("Unknown exception occurred");
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
}
|