Originally Posted By: MasterQ32
because i need a way to check if the engine was already opened
or how would you store this state?
Why do you have to do this? Open the engine, load the editor and make a button "open level". When opening the level, load it in the engine instance. Later, unload the level with level_load(NULL) and reload the next with level_load("myCoolLevel.wmb") or a custom function for WMP parsing.