mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-06 23:57:22 +02:00
Add basic framework to do some script tests
This commit is contained in:
parent
6ba74284b9
commit
cbf7f975d3
@ -310,7 +310,26 @@ static int game_mode_run_feature_tests(void)
|
||||
}
|
||||
|
||||
/* Do custom scripts run? */
|
||||
/* TODO */
|
||||
int scriptstatus = 0;
|
||||
{
|
||||
/* Grab the scripts */
|
||||
char scripts[CONFIG_LIST_MAX][CONFIG_VALUE_MAX];
|
||||
memset(scripts, 0, sizeof(scripts));
|
||||
config_get_gamemode_start_scripts(config, scripts);
|
||||
|
||||
if (scripts[0][0] != '\0') {
|
||||
/* Print out the scripts to run */
|
||||
LOG_MSG("Custom scripts:\n");
|
||||
|
||||
int i = 0;
|
||||
while (*scripts[i] != '\0' && i < CONFIG_LIST_MAX)
|
||||
LOG_MSG("%s\n", scripts[i]);
|
||||
}
|
||||
|
||||
/* TODO: Somehow verify these get run
|
||||
* Possibly by watching if the the binary part gets run?
|
||||
*/
|
||||
}
|
||||
|
||||
/* Does the screensaver get inhibited? */
|
||||
/* TODO */
|
||||
|
Loading…
x
Reference in New Issue
Block a user