Skip to content

Commit

Permalink
Fixed bug with unsaved ui style
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Jul 14, 2018
1 parent d354433 commit 99c3826
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/xrGame/GamePersistent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ void CGamePersistent::OnAppEnd()
clean_game_globals();

GMLib.Unload();
CleanupUIStyleToken();
}

void CGamePersistent::Start(LPCSTR op) { inherited::Start(op); }
Expand Down
6 changes: 5 additions & 1 deletion src/xrGame/xrGame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "xrEngine/profiler.h"

extern void FillUIStyleToken();
extern void CleanupUIStyleToken();

extern "C" {
DLL_API IFactoryObject* __cdecl xrFactory_Create(CLASS_ID clsid)
Expand Down Expand Up @@ -51,7 +52,10 @@ BOOL APIENTRY DllMain(HANDLE hModule, u32 ul_reason_for_call, LPVOID lpReserved)
break;
}

case DLL_PROCESS_DETACH: { break;
case DLL_PROCESS_DETACH:
{
CleanupUIStyleToken();
break;
}
}
return (TRUE);
Expand Down

0 comments on commit 99c3826

Please sign in to comment.