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
10
namespace
yaze
{
11
22
class
AssetLoader
{
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_
yaze::AssetLoader
Cross-platform asset file loading utility.
Definition
asset_loader.h:22
yaze::AssetLoader::LoadTextFile
static absl::StatusOr< std::string > LoadTextFile(const std::string &relative_path)
Definition
asset_loader.cc:72
yaze::AssetLoader::FindAssetFile
static absl::StatusOr< std::filesystem::path > FindAssetFile(const std::string &relative_path)
Definition
asset_loader.cc:51
yaze::AssetLoader::GetSearchPaths
static std::vector< std::filesystem::path > GetSearchPaths(const std::string &relative_path)
Definition
asset_loader.cc:11
yaze::AssetLoader::AssetExists
static bool AssetExists(const std::string &relative_path)
Definition
asset_loader.cc:98
yaze
Definition
application.cc:18
src
app
platform
asset_loader.h
Generated by
1.10.0