mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 12:09:36 +00:00
Level editor and resource loader fixups and refactors
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include "MainWindow.h"
|
||||
#include "Objects.h"
|
||||
#include "RectUtils.h"
|
||||
#include "ResourceManager.h"
|
||||
#include "Room.h"
|
||||
#include "RoomGraphics.h"
|
||||
#include "Utilities.h"
|
||||
@@ -260,7 +261,7 @@ void CreatePointers (void)
|
||||
demoData = (demoPtr)NewPtr(kDemoLength);
|
||||
if (demoData == nil)
|
||||
RedAlert(kErrNoMemory);
|
||||
tempHandle = GetResource('demo', 128);
|
||||
tempHandle = PortabilityLayer::ResourceManager::GetInstance()->GetAppResource('demo', 128);
|
||||
if (tempHandle == nil)
|
||||
RedAlert(kErrNoMemory);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user