h1-mod/src/client/component/filesystem.hpp
Federico Cecchetto b0827b80dc SP mods
2022-04-08 16:18:00 +02:00

23 lines
439 B
C++

#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_;
};
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);
}