setup os_init() for manually starting up os_context

This commit is contained in:
ed
2025-02-09 02:20:36 -05:00
parent 83ce4d1bb2
commit d867a8b0c0
9 changed files with 170 additions and 18 deletions
+4 -6
View File
@@ -10,17 +10,15 @@
void init(Context* ctx)
{
if (ctx->backing[0].proc != nullptr) {
tctx_init_and_equip_alloc(& ctx->thread_ctx, ctx->backing[0]);
}
else {
tctx_init_and_equip(& ctx->thread_ctx);
if ( ! ctx->dont_init_os) {
os_init(& ctx->os_ctx, & ctx->thread_ctx);
}
}
void deinit(Context* ctx)
{
tctx_release();
}
////////////////////////////////