Maintenance: [forced, user-approved] Collapse the Browser port's adapter structs into the original code (follow-up to 30cdd441). Evid
Batch #10110 by ragnarok-clanker: forced by an admin (0 lower score(s), 40 changed function(s)); checked with 495 compiled unit(s), including every includer of Source/Client/Application/ApplicationActivation.h, Source/Client/Application/Launcher.h, Source/Client/Browser/BrowserClientSite.h, Source/Client/Browser/BrowserPopupDispatch.h, Source/Client/Browser/WebBrowser.h, Source/Client/Browser/WebEventReceiver.h, Source/Client/Mode/CLoginMode.h, Source/Client/Mode/CMode.h, Source/Client/Mode/ModeTooltip.h, Source/UI/Window/UIWindowMgr.h, Source/Client/Browser/BrowserAddressBar.h, Source/Client/Browser/BrowserAddressEdit.h, Source/Client/Browser/BrowserClose.h, Source/Client/Browser/BrowserCreation.h, Source/Client/Browser/BrowserCursor.h, Source/Client/Browser/BrowserFactory.h, Source/Client/Browser/BrowserFrame.h, Source/Client/Browser/BrowserHostWindow.h, Source/Client/Browser/BrowserInputHandoff.h, Source/Client/Browser/BrowserInterface.h, Source/Client/Browser/BrowserMessages.h, Source/Client/Browser/BrowserRegistry.h, Source/Client/Browser/BrowserSiteAttachment.h, Source/Client/Browser/BrowserWindowSizing.h, Source/UI/Window/WindowFrameUpdate.h. Deletes: Source/Client/Browser/BrowserAddressBar.h, Source/Client/Browser/BrowserAddressEdit.h, Source/Client/Browser/BrowserClose.h, Source/Client/Browser/BrowserCreation.h, Source/Client/Browser/BrowserCursor.h, Source/Client/Browser/BrowserFactory.h, Source/Client/Browser/BrowserFrame.h, Source/Client/Browser/BrowserHostWindow.h, Source/Client/Browser/BrowserInputHandoff.h, Source/Client/Browser/BrowserInterface.h, Source/Client/Browser/BrowserMessages.h, Source/Client/Browser/BrowserRegistry.h, Source/Client/Browser/BrowserSiteAttachment.h, Source/Client/Browser/BrowserWindowSizing.h, Source/UI/Window/WindowFrameUpdate.h
This commit is contained in:
parent
51586b1a2b
commit
d842cee831
47 changed files with 324 additions and 610 deletions
|
|
@ -1,19 +1,23 @@
|
|||
#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 ApplicationActivation::Set(int value) {
|
||||
this->active = value;
|
||||
void SetApplicationActive(int value) {
|
||||
g_isAppActive = value;
|
||||
if (value != 0) {
|
||||
SetPriorityClass(GetCurrentProcess(), this->priority);
|
||||
if (this->service.Get(ServiceOption::ConfineCursor) != 0) {
|
||||
ClipApplicationCursor(this->window);
|
||||
SetPriorityClass(GetCurrentProcess(), dwPriorityClass);
|
||||
if (g_serviceOptions.Get(ServiceOption::ConfineCursor) != 0) {
|
||||
ClipApplicationCursor(hWnd);
|
||||
}
|
||||
} else {
|
||||
SetPriorityClass(GetCurrentProcess(), IDLE_PRIORITY_CLASS);
|
||||
ClipCursor(nullptr);
|
||||
this->automaticSkills.DisableAll();
|
||||
reinterpret_cast<AutomaticSkills*>(g_session.unknown_7FB4)->DisableAll();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue