start getting object loading working

This commit is contained in:
Ted John committed 2016-07-08 22:58:38 +01:00
1 parent e93b2141a1
commit 78e15b1d56
17 files changed
+277 -32

No files matched your search

+5 -1
View File
@@ -20,6 +20,7 @@
#include "EntranceObject.h"
#include "Object.h"
#include "ObjectFactory.h"
#include "StexObject.h"
extern "C"
{
@@ -29,7 +30,7 @@ extern "C"
namespace ObjectFactory
{
Object * CreateObjectFromLegacyFile(utf8 * path)
Object * CreateObjectFromLegacyFile(const utf8 * path)
{
Object * result = nullptr;
@@ -64,6 +65,9 @@ namespace ObjectFactory
case OBJECT_TYPE_PARK_ENTRANCE:
result = new EntranceObject(entry);
break;
case OBJECT_TYPE_SCENARIO_TEXT:
result = new StexObject(entry);
break;
}
return result;