[nostalgia] Make core::init take FileSystem and return Context, add core::setWindowTitle

This commit is contained in:
2021-07-18 15:28:09 -05:00
parent 2d3602fd05
commit 643239e104
10 changed files with 38 additions and 17 deletions
+10 -1
View File
@@ -24,12 +24,21 @@ class Drawer {
class Context {
public:
ox::FileSystem *rom = nullptr;
ox::Vector<Drawer*, 5> drawer;
ox::Vector<Drawer*, 5> drawers;
private:
void *m_windowerData = nullptr;
void *m_rendererData = nullptr;
public:
constexpr Context() noexcept = default;
constexpr Context(const Context &&other) noexcept {
rom = ox::move(other.rom);
drawers = ox::move(other.drawers);
m_windowerData = ox::move(other.m_windowerData);
m_rendererData = ox::move(other.m_rendererData);
}
constexpr void setWindowerData(void *windowerData) noexcept {
m_windowerData = windowerData;
}