Here's what I use to open ModManager as my main "Loader":
Code:
#include <natives.h>
#include <types.h>
#include <consts.h>
void load_a_script(char* script_name)
{
if (DOES_SCRIPT_EXIST(script_name))
{
if (GET_NUMBER_OF_INSTANCES_OF_STREAMED_SCRIPT(script_name) < 1)
{
REQUEST_SCRIPT(script_name);
while (!HAS_SCRIPT_LOADED(script_name))
{
WAIT(0);
}
START_NEW_SCRIPT(script_name, 1024);
MARK_SCRIPT_AS_NO_LONGER_NEEDED(script_name);
}
}
else
{
PRINT_STRING_WITH_LITERAL_STRING_NOW("STRING", "~r~Script not found!", 5000, 1);
}
}
void main(void)
{
while(true)
{
WAIT(0);
if (IS_BUTTON_PRESSED(0, 0x12) && IS_BUTTON_JUST_PRESSED(0, 0x13)) //For L3 + R3 or LS + RS
{
load_a_script("modmanager");
}
}
}
I think Jumper showed me that ^ So if you decide to use it, you have him to thank.