Show
Ignore:
Timestamp:
05/05/08 23:03:37 (7 months ago)
Author:
mwhitworth
Message:

Add to startup code.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/branches/hybrid/user/system/startup.c

    r407 r428  
    11#include <stdio.h> 
     2 
     3int ModuleLoad(char* name) 
     4{ 
     5        char* args[]={name}; 
     6        int fds[]={0, 1, 2}; 
     7 
     8        return SysCreateProcess("moduleadd", fds, args); 
     9} 
    210 
    311int main(int argc, char* argv[]) 
    412{ 
    513        /* Load modules */ 
     14        SysChangeDir("/System/Modules"); 
     15        ModuleLoad("Input/ps2mouse"); 
    616 
    7         /* Load Xynth. */ 
    8  
    9         int fds[]={0,1,2}; 
    10         char* args[]={""}; 
     17        SysChangeDir("/"); 
    1118 
    1219        SysCreateProcess("/Applications/Burn", fds, args);