h1-mod/src/client/component/filesystem.hpp

23 lines
439 B
C++
Raw Normal View History

#pragma once
namespace filesystem
{
class file
{
public:
file(std::string name);
bool exists() const;
const std::string& get_buffer() const;
const std::string& get_name() const;
private:
bool valid_ = false;
std::string name_;
std::string buffer_;
};
2022-04-08 10:18:00 -04:00
std::unordered_set<std::string>& get_search_paths();
std::string read_file(const std::string& path);
bool read_file(const std::string& path, std::string* data);
}