[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
+4 -4
View File
@@ -142,13 +142,13 @@ char charMap[128] = {
};
void addCustomDrawer(Context *ctx, Drawer *cd) noexcept {
ctx->drawer.emplace_back(cd);
ctx->drawers.emplace_back(cd);
}
void removeCustomDrawer(Context *ctx, Drawer *cd) noexcept {
for (auto i = 0u; i < ctx->drawer.size(); ++i) {
if (ctx->drawer[i] == cd) {
oxIgnoreError(ctx->drawer.erase(i));
for (auto i = 0u; i < ctx->drawers.size(); ++i) {
if (ctx->drawers[i] == cd) {
oxIgnoreError(ctx->drawers.erase(i));
break;
}
}