System_ExecuteCommandLine();
// - Execute the Config Script
- Log_Log("Config", "Executing config script...");
+ Log_Log("Config", "Executing config script '%s'", gsConfigScript);
System_ExecuteScript();
// Set the debug to be echoed to the terminal
// Get length
VFS_Seek(fp, 0, SEEK_END);
fLen = VFS_Tell(fp);
+ Log_Debug("System", "VFS_Tell(%i) = %i", fp, fLen);
VFS_Seek(fp, 0, SEEK_SET);
// Read into memory buffer
fData = malloc(fLen+1);
// Convert arguments to integers
for( k = line->nParts-1; k--; )
{
- if( caConfigCommands[j].IntArgs & (1 << k) ) {
+ if( k < 32 && (caConfigCommands[j].IntArgs & (1 << k)) ) {
args[k] = atoi(line->Parts[k+1]);
}
else {