Subversion Repositories Kolibri OS

Rev

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

Rev Author Line No. Line
7433 leency 1
/*
7541 leency 2
 * PIGEX - PIG Game extractor
3
 * We need this app because PIG can not be run from CD-drive
7433 leency 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;
7541 leency 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
		}
7433 leency 23
	}
7541 leency 24
 
7433 leency 25
	RunProgram("/tmp0/1/pig/pig", NULL);
26
}
27