[nostalgia/core] Add AssetManager

This commit is contained in:
2021-10-30 17:03:24 -05:00
parent a3dd2b59cc
commit e29f65f351
5 changed files with 217 additions and 15 deletions
+3 -2
View File
@@ -37,9 +37,10 @@ static void handleGlfwKeyEvent(GLFWwindow *window, int key, int, int action, int
}
}
ox::Result<ox::UniquePtr<Context>> init(ox::FileSystem *fs) noexcept {
ox::Result<ox::UniquePtr<Context>> init(ox::UniquePtr<ox::FileSystem> fs, const char *appName) noexcept {
auto ctx = ox::make_unique<Context>();
ctx->rom = fs;
ctx->rom = std::move(fs);
ctx->appName = appName;
const auto id = new GlfwImplData;
ctx->setWindowerData(id);
using namespace std::chrono;