19 lines
426 B
C++
19 lines
426 B
C++
#pragma once
|
|
|
|
#include <filesystem>
|
|
#include <string>
|
|
|
|
namespace extra2d {
|
|
|
|
class AssetFileSystem {
|
|
public:
|
|
std::string assetPath(const std::string &path) const;
|
|
bool isRomfsPath(const std::string &path) const;
|
|
bool exists(const std::string &path) const;
|
|
std::string readString(const std::string &path) const;
|
|
std::filesystem::file_time_type lastWriteTime(const std::string &path) const;
|
|
};
|
|
|
|
} // namespace extra2d
|
|
|