pig game: cd workaround
git-svn-id: svn://kolibrios.org@7541 a494cfbc-eb01-0410-851d-a64ba20cac60
@ -598,10 +598,12 @@ tup.append_table(img_files, {
|
|||||||
{"NETWORK/WEBVIEW", PROGS .. "/cmm/browser/WebView.com"},
|
{"NETWORK/WEBVIEW", PROGS .. "/cmm/browser/WebView.com"},
|
||||||
})
|
})
|
||||||
tup.append_table(extra_files, {
|
tup.append_table(extra_files, {
|
||||||
{"kolibrios/drivers/DRVINST.KEX", PROGS .. "/cmm/drvinst/drvinst.com"},
|
{"kolibrios/drivers/drvinst.kex", PROGS .. "/cmm/drvinst/drvinst.com"},
|
||||||
|
{"kolibrios/games/pig/pigex", PROGS .. "/cmm/examples/pig.com"},
|
||||||
{"kolibrios/games/the_bus/the_bus", PROGS .. "/cmm/the_bus/the_bus.com"},
|
{"kolibrios/games/the_bus/the_bus", PROGS .. "/cmm/the_bus/the_bus.com"},
|
||||||
{"kolibrios/utils/DICTY.KEX", PROGS .. "/cmm/dicty/dicty.com"},
|
{"kolibrios/utils/dicty.kex", PROGS .. "/cmm/dicty/dicty.com"},
|
||||||
{"kolibrios/utils/appearance", PROGS .. "/cmm/appearance/appearance.com"},
|
{"kolibrios/utils/appearance", PROGS .. "/cmm/appearance/appearance.com"},
|
||||||
|
{"kolibrios/utils/netcheck", PROGS .. "/cmm/examples/netcheck.com"},
|
||||||
})
|
})
|
||||||
end -- tup.getconfig('NO_CMM') ~= 'full'
|
end -- tup.getconfig('NO_CMM') ~= 'full'
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 148 KiB |
Before Width: | Height: | Size: 110 KiB |
Before Width: | Height: | Size: 6.0 KiB |
BIN
data/common/games/pig/pig.zip
Normal file
Before Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 66 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 42 KiB |
@ -32,7 +32,7 @@ Sea War=games/SW,66
|
|||||||
Almaz=/k/games/almaz,81
|
Almaz=/k/games/almaz,81
|
||||||
Tanks=games/tanks,67
|
Tanks=games/tanks,67
|
||||||
RocketForces=games/rforces,110
|
RocketForces=games/rforces,110
|
||||||
; Pig=/k/games/pig/pig ;doesn't work from CD
|
Pig=/k/games/pig/pigex
|
||||||
; Ataka=games/ataka ;rus only
|
; Ataka=games/ataka ;rus only
|
||||||
Donkey=/k/games/donkey
|
Donkey=/k/games/donkey
|
||||||
Loderunner=/k/games/LRL/LRL,41
|
Loderunner=/k/games/LRL/LRL,41
|
||||||
|
@ -32,7 +32,7 @@ Sea War=games/SW,66
|
|||||||
Almaz=/k/games/almaz,81
|
Almaz=/k/games/almaz,81
|
||||||
Tanks=games/tanks,67
|
Tanks=games/tanks,67
|
||||||
RocketForces=games/rforces,110
|
RocketForces=games/rforces,110
|
||||||
; Pig=/k/games/pig/pig ;doesn't work from CD
|
Pig=/k/games/pig/pigex
|
||||||
Ataka=games/ataka ;rus only
|
Ataka=games/ataka ;rus only
|
||||||
Donkey=/k/games/donkey
|
Donkey=/k/games/donkey
|
||||||
Loderunner=/k/games/LRL/LRL,41
|
Loderunner=/k/games/LRL/LRL,41
|
||||||
|
@ -9,5 +9,5 @@ tup.rule("menu.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CM
|
|||||||
tup.rule("rgb.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "rgb.com")
|
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("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("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")
|
tup.rule("netcheck.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "netcheck.com")
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
/*
|
|
||||||
* Template C-- program.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define MEMSIZE 4096*5
|
|
||||||
|
|
||||||
#include "../lib/kolibri.h"
|
|
||||||
#include "../lib/fs.h"
|
|
||||||
#include "../lib/patterns/restart_process.h"
|
|
||||||
|
|
||||||
proc_info Form;
|
|
||||||
|
|
||||||
void main()
|
|
||||||
{
|
|
||||||
int i;
|
|
||||||
CreateDir("/tmp0/1/pig");
|
|
||||||
RunProgram("/sys/UNZ", "-o /tmp0/1/pig -h /kolibrios/games/pig.zip");
|
|
||||||
for (i = 0; i < 200; i++)
|
|
||||||
{
|
|
||||||
if (CheckProcessExists("UNZ")==false) break;
|
|
||||||
pause(3);
|
|
||||||
}
|
|
||||||
RunProgram("/tmp0/1/pig/pig", NULL);
|
|
||||||
}
|
|
||||||
|
|
27
programs/cmm/examples/pigex.c
Normal file
@ -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);
|
||||||
|
}
|
||||||
|
|