Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 7540 → Rev 7541

/programs/cmm/examples/pig.c
File deleted
/programs/cmm/examples/Tupfile.lua
9,5 → 9,5
tup.rule("rgb.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "rgb.com")
tup.rule("console.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "console.com")
tup.rule("info.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "info.com")
tup.rule("pig.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "pig.com")
tup.rule("pigex.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "pigex.com")
tup.rule("netcheck.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "netcheck.com")
/programs/cmm/examples/pigex.c
0,0 → 1,27
/*
* PIGEX - PIG Game extractor
* We need this app because PIG can not be run from CD-drive
*/
 
#define MEMSIZE 4096*5
 
#include "../lib/kolibri.h"
#include "../lib/fs.h"
#include "../lib/patterns/restart_process.h"
 
void main()
{
int i;
 
if (! file_exists("/tmp0/1/pig/pig")) {
RunProgram("/sys/UNZ", "-o \"/tmp0/1\" -h \"/kolibrios/games/pig/pig.zip\"");
for (i = 0; i < 200; i++)
{
if (CheckProcessExists("UNZ")==false) break;
pause(3);
}
}
 
RunProgram("/tmp0/1/pig/pig", NULL);
}