[nostalgia,keel] Move core::TypeStore to Keel

This commit is contained in:
2023-06-01 23:43:19 -05:00
parent 1d35f6ce70
commit 4364911229
8 changed files with 14 additions and 12 deletions

View File

@@ -23,7 +23,7 @@ static void generateTypes(ox::TypeStore *ts) noexcept {
Project::Project(keel::Context *ctx, ox::String path) noexcept:
m_path(std::move(path)),
m_typeStore(ctx->rom.get()),
m_typeStore(ctx->rom.get(), "/.nostalgia/type_descriptors"),
m_fs(ctx->rom.get()),
m_ctx(ctx) {
oxTracef("nostalgia::studio", "Project: {}", m_path);

View File

@@ -12,7 +12,7 @@
#include <ox/model/descwrite.hpp>
#include <ox/std/hashmap.hpp>
#include <nostalgia/core/typestore.hpp>
#include <keel/typestore.hpp>
#include <keel/media.hpp>
#include "nostalgiastudio_export.h"
@@ -41,7 +41,7 @@ constexpr ox::Result<ox::StringView> fileExt(ox::CRStringView path) noexcept {
class NOSTALGIASTUDIO_EXPORT Project {
private:
ox::String m_path;
mutable core::TypeStore m_typeStore;
mutable keel::TypeStore m_typeStore;
mutable ox::FileSystem *m_fs = nullptr;
keel::Context *m_ctx = nullptr;
ox::HashMap<ox::String, ox::Vector<ox::String>> m_fileExtFileMap;