yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
asset_loader.h
Go to the documentation of this file.
1#ifndef YAZE_APP_PLATFORM_ASSET_LOADER_H_
2#define YAZE_APP_PLATFORM_ASSET_LOADER_H_
3
4#include <filesystem>
5#include <string>
6#include <vector>
7
8#include "absl/status/statusor.h"
9
10namespace yaze {
11
23 public:
30 static absl::StatusOr<std::string> LoadTextFile(
31 const std::string& relative_path);
32
38 static absl::StatusOr<std::filesystem::path> FindAssetFile(
39 const std::string& relative_path);
40
46 static std::vector<std::filesystem::path> GetSearchPaths(
47 const std::string& relative_path);
48
54 static bool AssetExists(const std::string& relative_path);
55};
56
57} // namespace yaze
58
59#endif // YAZE_APP_PLATFORM_ASSET_LOADER_H_
Cross-platform asset file loading utility.
static absl::StatusOr< std::string > LoadTextFile(const std::string &relative_path)
static absl::StatusOr< std::filesystem::path > FindAssetFile(const std::string &relative_path)
static std::vector< std::filesystem::path > GetSearchPaths(const std::string &relative_path)
static bool AssetExists(const std::string &relative_path)