iw4x-client/iw4/Components/FileSystem.hpp

28 lines
495 B
C++
Raw Normal View History

2015-12-23 21:26:46 -05:00
namespace Components
{
class FileSystem : public Component
{
public:
class File
{
public:
//File() {};
File(std::string file) : FilePath(file) { this->Read(); };
bool Exists() { return this->Buffer.size() > 0; };
std::string GetName() { return this->FilePath; };
std::string& GetBuffer() { return this->Buffer; };
private:
std::string FilePath;
std::string Buffer;
void Read();
};
FileSystem();
const char* GetName() { return "FileSystem"; };
};
}