Maintenance: [forced, user-approved] Family G15: remove ScriptOptions (reference view over g_session.m_hotkeyScript) and the unused G
Batch #10221 by ragnarok-clanker: forced by an admin (3 lower score(s), 7 changed function(s)); checked with 230 compiled unit(s), including every includer of Source/Client/Session.h, Source/Contents/Configuration/GameSettingsMgr.h, Source/Contents/Configuration/GraphicsConfiguration.h. Deletes: Source/Contents/Configuration/GraphicsConfiguration.h
This commit is contained in:
parent
be04fec77e
commit
e757db50e0
7 changed files with 70 additions and 165 deletions
|
|
@ -1,7 +1,6 @@
|
|||
#include "UI/Window/UIWindowFactory.h"
|
||||
|
||||
#include "Client/Session.h"
|
||||
#include "Contents/Configuration/ScriptOptions.h"
|
||||
#include "Render/Renderer.h"
|
||||
#include "Script/LuaScript.h"
|
||||
#include "UI/EntryQueue/UIEntryQueueWnd.h"
|
||||
|
|
@ -67,8 +66,8 @@ UIWindow* UIWindowMgr::CreateLayoutWindow(int id) {
|
|||
savedX = saved->second->x;
|
||||
savedY = saved->second->y;
|
||||
} else {
|
||||
savedX = reinterpret_cast<ScriptOptions&>(g_session).Integer(xKey.c_str(), x);
|
||||
savedY = reinterpret_cast<ScriptOptions&>(g_session).Integer(yKey.c_str(), y);
|
||||
savedX = g_session.GetOptionInteger(xKey.c_str(), x);
|
||||
savedY = g_session.GetOptionInteger(yKey.c_str(), y);
|
||||
}
|
||||
|
||||
window->SetId(id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue