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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user