mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-23 07:16:15 +00:00
Changed: #927 Move OS specific code from client or server to NeL when it's possible
This commit is contained in:
parent
6e8fef97e5
commit
8abcc22d5a
4 changed files with 4 additions and 23 deletions
|
@ -684,9 +684,7 @@ public:
|
|||
return;
|
||||
|
||||
// *** must update time zone, in case of user changed it during play
|
||||
#ifdef NL_OS_WINDOWS
|
||||
_tzset();
|
||||
#endif
|
||||
tzset();
|
||||
|
||||
// *** Get the difference of time => timezone
|
||||
time_t tGmt=0, tLocal=0;
|
||||
|
|
|
@ -734,7 +734,7 @@ void initLoginScreen()
|
|||
|
||||
ClientApp = ClientCfg.ConfigFile.getVar("Application").asString(0);
|
||||
|
||||
CSystemUtils::setRootKey("SOFTWARE\\Nevrax\\Ryzom");
|
||||
CSystemUtils::setRootKey("Software\\Nevrax\\Ryzom");
|
||||
|
||||
string l = CSystemUtils::getRegKey("Login");
|
||||
|
||||
|
|
|
@ -3076,12 +3076,8 @@ void CEditor::reset()
|
|||
if (ClientCfg.R2EDExtendedDebug)
|
||||
{
|
||||
Driver->setWindowTitle(CI18N::get("TheSagaOfRyzom"));
|
||||
Driver->showWindow();
|
||||
// TODO: check
|
||||
// Get the window
|
||||
// Show the window
|
||||
// ShowWindow (hWnd, SW_SHOW);
|
||||
// SetForegroundWindow(hWnd);
|
||||
Driver->showWindow();
|
||||
}
|
||||
|
||||
getUI().displaySystemInfo(CI18N::get("uiR2EDEditorReseted"), "BC");
|
||||
|
@ -4491,24 +4487,12 @@ void CEditor::updatePreCamera()
|
|||
{
|
||||
//H_AUTO(R2_CEditor_updatePreCamera)
|
||||
|
||||
/*
|
||||
#ifdef NL_DEBUG
|
||||
#ifdef NL_OS_WINDOWS
|
||||
_CrtCheckMemory();
|
||||
#endif
|
||||
#endif
|
||||
*/
|
||||
|
||||
|
||||
|
||||
if (_Mode == EditionMode)
|
||||
{
|
||||
|
||||
static uint32 loop = 0;
|
||||
++loop;
|
||||
if (loop % 200 == 0) // minimal wait between to save = 20 seconds
|
||||
{
|
||||
|
||||
if ( (CTime::getLocalTime() -_LastAutoSaveTime)/1000 > ClientCfg.R2EDAutoSaveWait) // 5 minutes if not change in Confile
|
||||
{
|
||||
autoSave();
|
||||
|
@ -4525,7 +4509,6 @@ void CEditor::updatePreCamera()
|
|||
_DMC->getActionHistoric().flushPendingAction();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// *********************************************************************************************************
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#include "afxres.h"
|
||||
#include <windows.h>
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
|
Loading…
Reference in a new issue