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