[nostalgia/core] Add AssetManager
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user