mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-27 01:26:30 +00:00
Merged hotfix to compatibility.
This commit is contained in:
commit
688ea1285c
5 changed files with 26 additions and 18 deletions
|
@ -109,10 +109,6 @@ void UDriver::purgeMemory()
|
|||
// ***************************************************************************
|
||||
|
||||
|
||||
// ***************************************************************************
|
||||
bool CDriverUser::_StaticInit= false;
|
||||
|
||||
|
||||
// ***************************************************************************
|
||||
CDriverUser::CDriverUser (uintptr_t windowIcon, TDriver driver, emptyProc exitFunc)
|
||||
{
|
||||
|
@ -122,16 +118,7 @@ CDriverUser::CDriverUser (uintptr_t windowIcon, TDriver driver, emptyProc exitFu
|
|||
nlassert((uint)IDriver::iconCount == (uint)UDriver::iconCount);
|
||||
|
||||
|
||||
// Static Initialisation.
|
||||
if(!_StaticInit)
|
||||
{
|
||||
_StaticInit= true;
|
||||
// Register basic serial.
|
||||
NL3D::registerSerial3d();
|
||||
|
||||
// Register basic csene.
|
||||
CScene::registerBasics();
|
||||
}
|
||||
NL3D::init3d();
|
||||
|
||||
_Driver = NULL;
|
||||
|
||||
|
|
|
@ -19,18 +19,36 @@
|
|||
|
||||
#include "nel/3d/init_3d.h"
|
||||
#include <cfloat>
|
||||
#include "nel/3d/scene.h"
|
||||
#include "nel/3d/register_3d.h"
|
||||
|
||||
namespace
|
||||
{
|
||||
static bool _Initialized = false;
|
||||
}
|
||||
|
||||
namespace NL3D
|
||||
{
|
||||
|
||||
void init3d ()
|
||||
{
|
||||
|
||||
if( _Initialized )
|
||||
return;
|
||||
|
||||
// Init for windows
|
||||
#ifdef NL_OS_WINDOWS
|
||||
// Enable FPU exceptions
|
||||
|
||||
// Enable divid by zero and overflow exception
|
||||
_control87 (_EM_INVALID|_EM_DENORMAL/*|_EM_ZERODIVIDE|_EM_OVERFLOW*/|_EM_UNDERFLOW|_EM_INEXACT, _MCW_EM);
|
||||
//_control87 (_EM_INVALID|_EM_DENORMAL/*|_EM_ZERODIVIDE|_EM_OVERFLOW*/|_EM_UNDERFLOW|_EM_INEXACT, _MCW_EM);
|
||||
|
||||
NL3D::registerSerial3d();
|
||||
CScene::registerBasics();
|
||||
|
||||
_Initialized = true;
|
||||
|
||||
|
||||
#endif // NL_OS_WINDOWS
|
||||
}
|
||||
|
||||
|
|
|
@ -138,7 +138,7 @@ void initRyzomVisualPropertyIndices( CMirroredDataSet& dataset );
|
|||
#define TYPE_BOT_TRADE_SELECTOR2 uint64
|
||||
|
||||
#define TYPE_EVENT_FACTION_ID uint32
|
||||
#define TYPE_PVP_MODE uint32
|
||||
#define TYPE_PVP_MODE uint16
|
||||
#define TYPE_PVP_CLAN uint32
|
||||
|
||||
#define TYPE_FUEL bool
|
||||
|
|
|
@ -292,14 +292,14 @@
|
|||
</STRUCT>
|
||||
<STRUCT>
|
||||
<ATOM Name="name" Value="PvpMode"/>
|
||||
<ATOM Name="type" Value="uint8"/>
|
||||
<ATOM Name="type" Value="uint16"/>
|
||||
<ATOM Name="persistant" Value="true"/>
|
||||
<ATOM Name="mirror" Value="true"/>
|
||||
<ATOM Name="weight" Value="1"/>
|
||||
</STRUCT>
|
||||
<STRUCT>
|
||||
<ATOM Name="name" Value="PvpClan"/>
|
||||
<ATOM Name="type" Value="uint8"/>
|
||||
<ATOM Name="type" Value="uint32"/>
|
||||
<ATOM Name="persistant" Value="true"/>
|
||||
<ATOM Name="mirror" Value="true"/>
|
||||
<ATOM Name="weight" Value="1"/>
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
// NeL includes
|
||||
#include "nel/misc/debug.h"
|
||||
#include "nel/3d/init_3d.h"
|
||||
|
||||
// Qt includes
|
||||
#include <QtCore/QObject>
|
||||
|
@ -32,6 +33,8 @@ bool ObjectViewerPlugin::initialize(ExtensionSystem::IPluginManager *pluginManag
|
|||
{
|
||||
Q_UNUSED(errorString);
|
||||
_plugMan = pluginManager;
|
||||
|
||||
NL3D::init3d();
|
||||
Modules::init();
|
||||
addAutoReleasedObject(new CObjectViewerContext());
|
||||
addAutoReleasedObject(new GraphicsSettingsPage());
|
||||
|
|
Loading…
Reference in a new issue