1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 06:23:04 +01:00

Don't load graphics for headless

This commit is contained in:
Ted John
2017-06-07 23:17:19 +01:00
parent 0dbe8f32e5
commit 4f1cfb4631
12 changed files with 43 additions and 13 deletions

View File

@@ -17,6 +17,7 @@
#include "../core/Console.hpp"
#include "../core/IStream.hpp"
#include "../core/Memory.hpp"
#include "../OpenRCT2.h"
#include "ImageTable.h"
#include "Object.h"
@@ -29,6 +30,11 @@ ImageTable::~ImageTable()
void ImageTable::Read(IReadObjectContext * context, IStream * stream)
{
if (gOpenRCT2NoGraphics)
{
return;
}
try
{
uint32 numImages = stream->ReadValue<uint32>();