Subversion Repositories Kolibri OS

Rev

Rev 7433 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. /*
  2.  * PIGEX - PIG Game extractor
  3.  * We need this app because PIG can not be run from CD-drive
  4. */
  5.  
  6. #define MEMSIZE 4096*5
  7.  
  8. #include "../lib/kolibri.h"
  9. #include "../lib/fs.h"
  10. #include "../lib/patterns/restart_process.h"
  11.  
  12. void main()
  13. {
  14.         int i;
  15.  
  16.         if (! file_exists("/tmp0/1/pig/pig")) {
  17.                 RunProgram("/sys/UNZ", "-o \"/tmp0/1\" -h \"/kolibrios/games/pig/pig.zip\"");
  18.                 for (i = 0; i < 200; i++)
  19.                 {
  20.                         if (CheckProcessExists("UNZ")==false) break;
  21.                         pause(3);
  22.                 }              
  23.         }
  24.  
  25.         RunProgram("/tmp0/1/pig/pig", NULL);
  26. }
  27.  
  28.