20 lines
558 B
C++
20 lines
558 B
C++
#include "Client/ApplicationActivation.h"
|
|
#include "Client/ApplicationWindow.h"
|
|
|
|
namespace client {
|
|
// OFFSET: 0x00E5A190
|
|
// FUNCTION: fn_24369
|
|
void ApplicationActivation::Set(int value) {
|
|
this->active = value;
|
|
if (value != 0) {
|
|
SetPriorityClass(GetCurrentProcess(), this->priority);
|
|
if (this->service.Get(271) != 0) {
|
|
ClipApplicationCursor(this->window);
|
|
}
|
|
} else {
|
|
SetPriorityClass(GetCurrentProcess(), IDLE_PRIORITY_CLASS);
|
|
ClipCursor(nullptr);
|
|
this->automaticSkills.DisableAll();
|
|
}
|
|
}
|
|
}
|