23#include "utility/system_io/system_io.hpp"
27 std::string NormalizePath(
const std::string &path)
29 return std::filesystem::path(path).lexically_normal().generic_string();
38std::shared_ptr<utility::File>
41 const auto it = _assets.find(NormalizePath(path));
42 if (it == _assets.end()) {
std::map< std::string, std::shared_ptr< utility::File > > _assets
Map of loaded assets.
bool exists(const std::string &path) const
Checks if an asset exists in the manager.
std::shared_ptr< utility::File > open(const std::string &path) const
Opens an asset from the manager.