mirror of
https://github.com/elasota/Aerofoil.git
synced 2026-03-01 21:34:15 +00:00
29 lines
580 B
C
29 lines
580 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "VirtualDirectory.h"
|
||
|
|
|
||
|
|
class PLPasStr;
|
||
|
|
|
||
|
|
namespace PortabilityLayer
|
||
|
|
{
|
||
|
|
struct MMHandleBlock;
|
||
|
|
class ResTypeID;
|
||
|
|
|
||
|
|
class ResourceManager
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
virtual void Init() = 0;
|
||
|
|
virtual void Shutdown() = 0;
|
||
|
|
|
||
|
|
virtual void SetResLoad(bool load) = 0;
|
||
|
|
|
||
|
|
virtual short OpenResFork(EVirtualDirectory virtualDir, const PLPasStr &filename) = 0;
|
||
|
|
virtual MMHandleBlock *GetResource(const ResTypeID &resType, int id) = 0;
|
||
|
|
|
||
|
|
virtual short GetCurrentResFile() const = 0;
|
||
|
|
virtual void SetCurrentResFile(short ref) = 0;
|
||
|
|
|
||
|
|
static ResourceManager *GetInstance();
|
||
|
|
};
|
||
|
|
}
|