- Module_LoadFile(line->Parts[1], "");
- }
- // Load a UDI Module
- else if(strcmp(line->Parts[0], "udimod") == 0)
- {
- if( line->nParts != 2 ) {
- Log_Warning("CFG", "Configuration command 'udimod' requires 1 argument, %i given",
- line->nParts-1);
- continue;
- }
- Log_Log("CFG", "Load UDI Module '%s'", line->Parts[1]);
- Module_LoadFile(line->Parts[1], "");
- }
- // Load a EDI Module
- else if(strcmp(line->Parts[0], "edimod") == 0)
- {
- if( line->nParts != 2 ) {
- Log_Warning("CFG", "Configuration command 'edimod' requires 1 argument, %i given",
- line->nParts-1);
- continue;
- }
- Log_Log("CFG", "Load EDI Module '%s'", line->Parts[1]);
- Module_LoadFile(line->Parts[1], "");
- }
- // Create a Symbolic Link
- else if(strcmp(line->Parts[0], "symlink") == 0)
- {
- if( line->nParts != 3 ) {
- Log_Warning("CFG", "Configuration command 'symlink' requires 2 arguments, %i given",
- line->nParts-1);
- continue;
- }
- Log_Log("CFG", "Symlink '%s' pointing to '%s'",
- line->Parts[1], line->Parts[2]);
- VFS_Symlink(line->Parts[1], line->Parts[2]);
- }
- // Create a Directory
- else if(strcmp(line->Parts[0], "mkdir") == 0)
- {
- if( line->nParts != 2 ) {
- Log_Warning("CFG", "Configuration command 'mkdir' requires 1 argument, %i given",
- line->nParts-1);
- continue;
- }
- Log_Log("CFG", "New Directory '%s'", line->Parts[1]);
- VFS_MkDir(line->Parts[1]);
- }
- // Spawn a process
- else if(strcmp(line->Parts[0], "spawn") == 0)
- {
- if( line->nParts != 2 ) {
- Log_Warning("CFG", "Configuration command 'spawn' requires 1 argument, %i given",
- line->nParts-1);
- continue;
- }
- Log_Log("CFG", "Starting '%s' as a new task", line->Parts[1]);
- Proc_Spawn(line->Parts[1]);