[nostalgia] Add UUID to file path mapping
This commit is contained in:
@@ -15,14 +15,14 @@
|
||||
namespace nostalgia::core {
|
||||
|
||||
ox::Result<ox::UPtr<Context>> init(ox::UPtr<ox::FileSystem> fs, ox::CRStringView appName) noexcept {
|
||||
auto ctx = foundation::init<Context>(std::move(fs), appName);
|
||||
oxRequireM(ctx, foundation::init<Context>(std::move(fs), appName));
|
||||
const auto id = ox::make<GlfwImplData>();
|
||||
ctx->setWindowerData(id);
|
||||
using namespace std::chrono;
|
||||
id->startTime = duration_cast<milliseconds>(system_clock::now().time_since_epoch()).count();
|
||||
glfwInit();
|
||||
oxReturnError(initGfx(ctx.get()));
|
||||
return ctx;
|
||||
return std::move(ctx);
|
||||
}
|
||||
|
||||
ox::Error run(Context *ctx) noexcept {
|
||||
|
||||
Reference in New Issue
Block a user