27 lines
671 B
C++
27 lines
671 B
C++
#include "Client/Application/ApplicationWindow.h"
|
|
#include "Client/Mode/ModeMgr.h"
|
|
#include "Contents/Configuration/ServiceConfiguration.h"
|
|
|
|
#include <cstring>
|
|
#include <shellapi.h>
|
|
|
|
// OFFSET: 0x00AD67E0
|
|
// FUNCTION: fn_17845
|
|
void CModeMgr::Quit() {
|
|
if (this->gameMode) {
|
|
this->gameMode->running = 0;
|
|
}
|
|
|
|
if (g_serviceType == 11) {
|
|
ShellExecuteA(hWnd, "open", "http://www.ragnarok.co.in/index.php", nullptr, nullptr, SW_SHOWNORMAL);
|
|
}
|
|
this->running = 0;
|
|
}
|
|
|
|
// OFFSET: 0x00AD7620
|
|
// FUNCTION: fn_17851
|
|
void CModeMgr::Switch(int mode, const char* name) {
|
|
this->gameMode->running = 0;
|
|
std::strcpy(this->nextModeName, name);
|
|
this->nextState = mode;
|
|
}
|