Save and restore i_enginestudio

This commit is contained in:
8dcc 2023-07-25 14:24:50 +02:00
parent b6cdb9a55d
commit 2caa3ae57e
1 changed files with 2 additions and 0 deletions

View File

@ -67,9 +67,11 @@ bool globals_init(void) {
void globals_store(void) {
memcpy(&o_engine, i_engine, sizeof(cl_enginefunc_t));
memcpy(&o_client, i_client, sizeof(cl_clientfunc_t));
memcpy(&o_enginestudio, i_enginestudio, sizeof(engine_studio_api_t));
}
void globals_restore(void) {
memcpy(i_engine, &o_engine, sizeof(cl_enginefunc_t));
memcpy(i_client, &o_client, sizeof(cl_clientfunc_t));
memcpy(i_enginestudio, &o_enginestudio, sizeof(engine_studio_api_t));
}