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

16 lines
500 B
C++
Raw Normal View History

#pragma once
namespace filesystem
{
std::string read_file(const std::string& path);
bool read_file(const std::string& path, std::string* data, std::string* real_path = nullptr);
bool find_file(const std::string& path, std::string* real_path);
bool exists(const std::string& path);
void register_path(const std::filesystem::path& path);
void unregister_path(const std::filesystem::path& path);
2022-04-08 10:18:00 -04:00
std::vector<std::string> get_search_paths();
std::vector<std::string> get_search_paths_rev();
}