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:
@@ -9,46 +9,6 @@
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
struct PLOpenedResFile
|
||||
{
|
||||
bool m_isOpen;
|
||||
};
|
||||
|
||||
static const unsigned int kPLMaxOpenedResFiles = 64;
|
||||
static PLOpenedResFile gs_resFiles[kPLMaxOpenedResFiles];
|
||||
|
||||
short CurResFile()
|
||||
{
|
||||
return PortabilityLayer::ResourceManager::GetInstance()->GetCurrentResFile();
|
||||
}
|
||||
|
||||
void UseResFile(short fid)
|
||||
{
|
||||
PortabilityLayer::ResourceManager::GetInstance()->SetCurrentResFile(fid);
|
||||
}
|
||||
|
||||
Handle Get1Resource(UInt32 resID, int index)
|
||||
{
|
||||
PL_NotYetImplemented();
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Handle Get1IndResource(UInt32 resID, int index)
|
||||
{
|
||||
PL_NotYetImplemented();
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
int Count1Resources(UInt32 resType)
|
||||
{
|
||||
PL_NotYetImplemented();
|
||||
return 0;
|
||||
}
|
||||
|
||||
void SetResLoad(Boolean load)
|
||||
{
|
||||
PortabilityLayer::ResourceManager::GetInstance()->SetResLoad(load != 0);
|
||||
}
|
||||
|
||||
long GetMaxResourceSize(Handle res)
|
||||
{
|
||||
@@ -56,9 +16,3 @@ long GetMaxResourceSize(Handle res)
|
||||
const PortabilityLayer::ResourceArchiveRef *resRef = hBlock->m_rmSelfRef;
|
||||
return resRef->m_size;
|
||||
}
|
||||
|
||||
short HOpenResFile(PortabilityLayer::VirtualDirectory_t dirID, const PLPasStr &name, int permissions)
|
||||
{
|
||||
PL_NotYetImplemented();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user