diff --git a/src/olympic/turbine/include/turbine/turbine.hpp b/src/olympic/turbine/include/turbine/turbine.hpp index e27341dd..aa6cfc62 100644 --- a/src/olympic/turbine/include/turbine/turbine.hpp +++ b/src/olympic/turbine/include/turbine/turbine.hpp @@ -18,6 +18,8 @@ using TimeMs = uint64_t; ox::Result init(ox::UPtr &&fs, ox::StringViewCR appName) noexcept; +ox::Result init(ox::StringViewCR fsPath, ox::StringViewCR appName) noexcept; + ox::Error run(Context &ctx) noexcept; // Returns the number of milliseconds that have passed since the start of the diff --git a/src/olympic/turbine/src/CMakeLists.txt b/src/olympic/turbine/src/CMakeLists.txt index 1e647f7d..c8b08b84 100644 --- a/src/olympic/turbine/src/CMakeLists.txt +++ b/src/olympic/turbine/src/CMakeLists.txt @@ -18,6 +18,11 @@ target_include_directories( ../include ) +target_sources( + Turbine PUBLIC + turbine.cpp +) + target_link_libraries( Turbine PUBLIC Keel diff --git a/src/olympic/turbine/src/turbine.cpp b/src/olympic/turbine/src/turbine.cpp new file mode 100644 index 00000000..3c56b7ca --- /dev/null +++ b/src/olympic/turbine/src/turbine.cpp @@ -0,0 +1,13 @@ + +#include + +#include + +namespace turbine { + +ox::Result init(ox::StringViewCR fsPath, ox::StringViewCR appName) noexcept { + oxRequireM(fs, keel::loadRomFs(fsPath)); + return init(std::move(fs), appName); +} + +} \ No newline at end of file