mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-10-11 00:38:18 +03:00
Fix vm_exit when called before vm_execute_ain
The can happen when launched in the debugger and then exited before starting execution.
This commit is contained in:
@@ -539,16 +539,20 @@ static void link_libraries(void)
|
||||
}
|
||||
}
|
||||
|
||||
bool libraries_initialized = false;
|
||||
|
||||
void init_libraries(void)
|
||||
{
|
||||
library_run_all("_PreLink");
|
||||
link_libraries();
|
||||
library_run_all("_ModuleInit");
|
||||
libraries_initialized = true;
|
||||
}
|
||||
|
||||
void exit_libraries(void)
|
||||
{
|
||||
library_run_all("_ModuleFini");
|
||||
if (libraries_initialized)
|
||||
library_run_all("_ModuleFini");
|
||||
}
|
||||
|
||||
void static_library_replace(struct static_library *lib, const char *name, void *fun)
|
||||
|
||||
Reference in New Issue
Block a user