[nostalgia] Make core::init take FileSystem and return Context, add core::setWindowTitle
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user