// // TealMaster Launch Codes // // TealMaster supports a number of launch codes which allow hacks to be // manipulated by an external program: // #define LAUNCH_CMD_disable_all 33333 #define LAUNCH_CMD_reenable_all 33334 #define LAUNCH_CMD_get_profile 33335 #define LAUNCH_CMD_set_profile 33336 #define LAUNCH_CMD_get_hack_state 33337 #define LAUNCH_CMD_set_hack_state 33338 #define LAUNCH_CMD_get_hack_priority 33339 #define LAUNCH_CMD_set_hack_priority 33340 // // All custom launch codes use the simple command_data structure below // for sending a value and receiving a return value // typedef struct { long output_value; long input_value; } CustomLaunchParams; // // LAUNCH_CMD_disable_all // // input: none // output: none // // Temporarily disables all hacks, unhooking them from system traps. // If you use this function, you MUST call LAUNCH_CMD_renable_all // before allowing a user to launch applications, because re-entering // TealMaster with hacks disabled can cause bad things to happening. // // This is an outdated call. It's usually better to call // LAUNCH_CMD_set_profile with (-1) to disable all hacks instead // // // // LAUNCH_CMD_renable_all // // input: none // output: none // // Restores all hacks disabled by a call to LAUNCH_CMD_enable_all // // // // LAUNCH_CMD_get_profile // // input: none // output: the current profile // // Returns the current profile number from 0 to 4, or -1 if // the "off" profile is selected // // // // LAUNCH_CMD_set_profile // // input: new profile // output: none // // Sets the current profile to the input value 0 to 4, or -1 to // select the "off" profile // // // // LAUNCH_CMD_get_hack_state // // input: hack creator ID // output: none // // Get the current state (1=on, 0=off) of the hack specified by // 4-character creator ID // // // // LAUNCH_CMD_set_hack_state // // input1: hack creator ID // input2: state to set (passed in output field) // // Sets the activation state of a specified hack. // // This function does not work correctly in TealMaster versions prior // to 1.44B. // // // LAUNCH_CMD_get_hack_priority // // input: hack creator ID // output: none // // Get the current priority of the hack specified by // 4-character creator ID // // // // LAUNCH_CMD_set_hack_priority // // input1: hack creator ID // input2: priority to set (passed in output field) // // Sets the priority of a specified hack. // // This function does not work correctly in TealMaster versions prior // to 1.44B. // //