From a76638cc862b4be4537bed79c9b2f4000f3626c2 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 17 Jan 2024 22:08:22 -0600 Subject: [PATCH] [olympic/studio] Make Project::romFS return a reference --- src/olympic/studio/modlib/include/studio/project.hpp | 2 +- src/olympic/studio/modlib/src/project.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/olympic/studio/modlib/include/studio/project.hpp b/src/olympic/studio/modlib/include/studio/project.hpp index cd64574a..2b2d9f34 100644 --- a/src/olympic/studio/modlib/include/studio/project.hpp +++ b/src/olympic/studio/modlib/include/studio/project.hpp @@ -64,7 +64,7 @@ class Project { ox::String const&projectPath() const noexcept; [[nodiscard]] - ox::FileSystem *romFs() noexcept; + ox::FileSystem &romFs() noexcept; ox::Error mkdir(ox::CRStringView path) const noexcept; diff --git a/src/olympic/studio/modlib/src/project.cpp b/src/olympic/studio/modlib/src/project.cpp index 3381694f..02b19acc 100644 --- a/src/olympic/studio/modlib/src/project.cpp +++ b/src/olympic/studio/modlib/src/project.cpp @@ -51,8 +51,8 @@ ox::String const&Project::projectPath() const noexcept { return m_path; } -ox::FileSystem *Project::romFs() noexcept { - return &m_fs; +ox::FileSystem &Project::romFs() noexcept { + return m_fs; } ox::Error Project::mkdir(ox::CRStringView path) const noexcept {