Changed: #927 Move OS specific code from client or server to NeL when it's possible

This commit is contained in:
kervala 2010-06-05 19:59:22 +02:00
parent e4818ad259
commit fa5e8c99b6
4 changed files with 4 additions and 23 deletions

View file

@ -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;

View file

@ -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");

View file

@ -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();
}
}
}
// *********************************************************************************************************

View file

@ -7,7 +7,7 @@
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"
#include <windows.h>
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS