Removed SCRIPT_CMD_END

Terminate the script when SCRIPT_CMD_FAILURE is returned
This commit is contained in:
Atemo 2023-05-16 17:13:26 +02:00
parent 9c21d3af04
commit b5413b0997
2 changed files with 398 additions and 654 deletions

File diff suppressed because it is too large Load Diff

View File

@ -134,8 +134,7 @@
enum script_cmd_result { enum script_cmd_result {
SCRIPT_CMD_SUCCESS = 0, ///when a buildin cmd was correctly done SCRIPT_CMD_SUCCESS = 0, ///when a buildin cmd was correctly done
SCRIPT_CMD_FAILURE = 1, ///when an errors appear in cmd, show_debug will follow SCRIPT_CMD_FAILURE = 1, ///when an errors appear in cmd, show_debug will follow and the script terminate
SCRIPT_CMD_END = 2, ///when an errors appear in cmd, show_debug will follow and the script state END
}; };
#define SCRIPT_BLOCK_SIZE 512 #define SCRIPT_BLOCK_SIZE 512