commit x64 compilation from lulu cause the other branch dont seems to compile properly at home

This commit is contained in:
2026-07-17 16:08:20 +02:00
parent c0f3eeb00d
commit 0efa4ee6f7
625 changed files with 117283 additions and 4426 deletions

View File

@ -0,0 +1,42 @@
/* -----------------------------------------------------------------------------
GSFramework
Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
----------------------------------------------------------------------------- */
#include "scene3d/mobject.h"
#include "log/log.h"
using namespace GS::S3D;
using namespace GS::NML;
//------------------------------------------------------------------------------
bool MObject::FromMetaTag(Tag &tag)
{
if (tag.name != "MObject")
__ERR__(__LOG_E__ << "Could not parse managed object, incorrect root tag (" << tag.name << ").\n", false);
NMLTagForeach(pt, tag)
{
if (pt->name == "MItem")
MItem::FromMetaTag(*pt);
else if (pt->name == "Object")
Object::FromMetaTag(*pt);
else
__LOG_W__ << "Unknown tag '" << pt->name << "' in <MObject>.\n";
}
return true;
}
Tag *MObject::AsMetaTag()
{
Tag *root = new Tag("MObject");
if (!root)
__ERR__(__LOG_E__ << "Could not create root tag to serialize.\n", NULL);
root->AddChild(MItem::AsMetaTag());
root->AddChild(Object::AsMetaTag());
return root;
}
//------------------------------------------------------------------------------