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
12
24 public:
30 static absl::StatusOr<std::string> LoadTextFile(const std::string& relative_path);
31
37 static absl::StatusOr<std::filesystem::path> FindAssetFile(const std::string& relative_path);
38
44 static std::vector<std::filesystem::path> GetSearchPaths(const std::string& relative_path);
45
51 static bool AssetExists(const std::string& relative_path);
52};
53
54
55} // namespace yaze
56
57#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)
Main namespace for the application.