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