fix pigex

git-svn-id: svn://kolibrios.org@7588 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2019-03-09 22:39:50 +00:00
parent 99e8249f49
commit 4e47ada922

View File

@ -12,9 +12,10 @@
void main() void main()
{ {
int i; int i;
CreateDir("/tmp0/1/pig");
if (! file_exists("/tmp0/1/pig/pig")) { if (! file_exists("/tmp0/1/pig/pig")) {
RunProgram("/sys/UNZ", "-o \"/tmp0/1\" -h \"/kolibrios/games/pig/pig.zip\""); RunProgram("/sys/UNZ", "-o \"/tmp0/1/pig\" -h \"/kolibrios/games/pig/pig.zip\"");
for (i = 0; i < 200; i++) for (i = 0; i < 200; i++)
{ {
if (CheckProcessExists("UNZ")==false) break; if (CheckProcessExists("UNZ")==false) break;