mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 04:53:27 +02:00
Refactoring and flexibility changes
* Split game module into game and game_interface * Move core_lib to corelib * Move miniwindow to corelib * Introduce init.lua script for initializing the client, giving much more flexibility * OTClient is no longer Application derived and is much simpler
This commit is contained in:
@@ -41,8 +41,8 @@ void crashHandler(int signum, siginfo_t* info, void* secret)
|
||||
g_logger.error("Application crashed");
|
||||
|
||||
std::stringstream ss;
|
||||
ss << stdext::format("app name: %s\n", g_app->getName());
|
||||
ss << stdext::format("app version: %s\n", g_app->getVersion());
|
||||
ss << stdext::format("app name: %s\n", g_app.getName());
|
||||
ss << stdext::format("app version: %s\n", g_app.getVersion());
|
||||
ss << stdext::format("build compiler: %s\n", BUILD_COMPILER);
|
||||
ss << stdext::format("build date: %s\n", BUILD_DATE);
|
||||
ss << stdext::format("build type: %s\n", BUILD_TYPE);
|
||||
|
@@ -111,8 +111,8 @@ LONG CALLBACK ExceptionHandler(LPEXCEPTION_POINTERS e)
|
||||
SymInitialize(GetCurrentProcess(), 0, TRUE);
|
||||
std::stringstream ss;
|
||||
ss << "== application crashed\n";
|
||||
ss << stdext::format("app name: %s\n", g_app->getName().c_str());
|
||||
ss << stdext::format("app version: %s\n", g_app->getVersion().c_str());
|
||||
ss << stdext::format("app name: %s\n", g_app.getName().c_str());
|
||||
ss << stdext::format("app version: %s\n", g_app.getVersion().c_str());
|
||||
ss << stdext::format("build compiler: %s\n", BUILD_COMPILER);
|
||||
ss << stdext::format("build date: %s\n", BUILD_DATE);
|
||||
ss << stdext::format("build type: %s\n", BUILD_TYPE);
|
||||
|
@@ -230,7 +230,7 @@ void WIN32Window::terminate()
|
||||
}
|
||||
|
||||
if(m_instance) {
|
||||
if(!UnregisterClassA(g_app->getName().c_str(), m_instance))
|
||||
if(!UnregisterClassA(g_app.getName().c_str(), m_instance))
|
||||
g_logger.error("UnregisterClassA failed");
|
||||
m_instance = NULL;
|
||||
}
|
||||
@@ -256,7 +256,7 @@ void WIN32Window::internalCreateWindow()
|
||||
wc.hCursor = m_defaultCursor;
|
||||
wc.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);
|
||||
wc.lpszMenuName = NULL;
|
||||
wc.lpszClassName = g_app->getName().c_str();
|
||||
wc.lpszClassName = g_app.getName().c_str();
|
||||
|
||||
if(!RegisterClassA(&wc))
|
||||
g_logger.fatal("Failed to register the window class.");
|
||||
@@ -272,7 +272,7 @@ void WIN32Window::internalCreateWindow()
|
||||
|
||||
updateUnmaximizedCoords();
|
||||
m_window = CreateWindowExA(dwExStyle,
|
||||
g_app->getName().c_str(),
|
||||
g_app.getName().c_str(),
|
||||
NULL,
|
||||
dwStyle,
|
||||
windowRect.left,
|
||||
|
Reference in New Issue
Block a user