Batch #10275 by ragnarok-clanker: forced by an admin (1 lower score(s), 1 changed function(s)); checked with 256 compiled unit(s), including every includer of Source/Client/Session.h.
23 lines
757 B
C++
23 lines
757 B
C++
#include "Client/Application/ApplicationActivation.h"
|
|
#include "Client/Application/ApplicationWindow.h"
|
|
#include "Client/Mode/CLoginMode.h"
|
|
#include "Client/Session.h"
|
|
#include "Contents/Configuration/ServiceOptions.h"
|
|
#include "Contents/Skills/AutomaticSkills.h"
|
|
#include "UI/GameSettings/GameSettingsUI.h"
|
|
|
|
// OFFSET: 0x00E5A190
|
|
// FUNCTION: fn_24369
|
|
void SetApplicationActive(int value) {
|
|
g_isAppActive = value;
|
|
if (value != 0) {
|
|
SetPriorityClass(GetCurrentProcess(), dwPriorityClass);
|
|
if (g_serviceOptions.Get(ServiceOption::ConfineCursor) != 0) {
|
|
ClipApplicationCursor(hWnd);
|
|
}
|
|
} else {
|
|
SetPriorityClass(GetCurrentProcess(), IDLE_PRIORITY_CLASS);
|
|
ClipCursor(nullptr);
|
|
g_session.m_automaticSkills.DisableAll();
|
|
}
|
|
}
|