1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 03:23:15 +01:00

add reading of entrance objects

This commit is contained in:
Ted John
2016-06-25 12:30:20 +01:00
parent c9a1357994
commit 2449b7dbf0
9 changed files with 150 additions and 17 deletions

View File

@@ -23,6 +23,8 @@
#include "../core/Memory.hpp"
#include "../core/Path.hpp"
#include "../core/String.hpp"
#include "Object.h"
#include "ObjectFactory.h"
#include "ObjectRepository.h"
extern "C"
@@ -135,13 +137,11 @@ private:
void ScanObject(utf8 * path)
{
rct_object_entry entry;
if (!object_load_entry(path, &entry))
Object * object = ObjectFactory::CreateObjectFromLegacyFile(path);
if (object != nullptr)
{
return;
// TODO
}
__nop();
}
bool Load()