mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Initial commit: wowee native WoW 3.3.5a client
This commit is contained in:
commit
ce6cb8f38e
147 changed files with 32347 additions and 0 deletions
32
src/main.cpp
Normal file
32
src/main.cpp
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#include "core/application.hpp"
|
||||
#include "core/logger.hpp"
|
||||
#include <exception>
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
try {
|
||||
wowee::core::Logger::getInstance().setLogLevel(wowee::core::LogLevel::DEBUG);
|
||||
LOG_INFO("=== Wowser Native Client ===");
|
||||
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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue