mirror of
https://github.com/elasota/Aerofoil.git
synced 2026-03-04 14:42:29 +00:00
26 lines
703 B
C
26 lines
703 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "HostFileSystem.h"
|
||
|
|
|
||
|
|
#include "GpCoreDefs.h"
|
||
|
|
|
||
|
|
#include <string>
|
||
|
|
|
||
|
|
class GpFileSystem_Win32 final : public PortabilityLayer::HostFileSystem
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
GpFileSystem_Win32();
|
||
|
|
|
||
|
|
bool FileExists(PortabilityLayer::EVirtualDirectory virtualDirectory, const char *path) override;
|
||
|
|
PortabilityLayer::IOStream *OpenFile(PortabilityLayer::EVirtualDirectory virtualDirectory, const char *path, bool writeAccess, bool create) override;
|
||
|
|
|
||
|
|
static GpFileSystem_Win32 *GetInstance();
|
||
|
|
|
||
|
|
private:
|
||
|
|
bool ResolvePath(PortabilityLayer::EVirtualDirectory virtualDirectory, const char *path, wchar_t *outPath);
|
||
|
|
|
||
|
|
std::wstring m_prefsDir;
|
||
|
|
|
||
|
|
static GpFileSystem_Win32 ms_instance;
|
||
|
|
};
|