mirror of
https://github.com/Ed94/metadesk.git
synced 2026-08-06 07:38:45 +00:00
setup os_init() for manually starting up os_context
This commit is contained in:
+4
-6
@@ -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();
|
||||
}
|
||||
|
||||
////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user