Subversion Repositories Kolibri OS

Rev

Rev 7433 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

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