/data/Tupfile.lua |
---|
53,7 → 53,6 |
{"File Managers/KFM.INI", "common/File Managers/kfm.ini"}, |
{"GAMES/CHECKERS", build_type .. "/games/checkers"}, |
{"GAMES/MEGAMAZE", build_type .. "/games/megamaze"}, |
{"GAMES/XONIX", build_type .. "/games/xonix"}, |
{"LIB/PIXLIB.OBJ", "common/lib/pixlib.obj"}, |
{"LIB/ICONV.OBJ", "common/lib/iconv.obj"}, |
{"LIB/NETCODE.OBJ", "common/lib/netcode.obj"}, |
445,6 → 444,7 |
{"MEDIA/AC97SND", PROGS .. "/media/ac97snd/ac97snd.bin"}, |
{"GAMES/KOSILKA", PROGS .. "/games/kosilka/kosilka"}, |
{"GAMES/RFORCES", PROGS .. "/games/rforces/trunk/rforces"}, |
{"GAMES/XONIX", PROGS .. "/games/xonix/trunk/xonix"}, |
}) |
tup.append_table(extra_files, { |
{"kolibrios/games/fara/fara", PROGS .. "/games/fara/trunk/fara"}, |
/data/eng/games/xonix |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes: |
Deleted: svn:mime-type |
-application/octet-stream |
\ No newline at end of property |
/data/et/games/xonix |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes: |
Deleted: svn:mime-type |
-application/octet-stream |
\ No newline at end of property |
/data/it/games/xonix |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes: |
Deleted: svn:mime-type |
-application/octet-stream |
\ No newline at end of property |
/data/rus/games/xonix |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes: |
Deleted: svn:mime-type |
-application/octet-stream |
\ No newline at end of property |
/data/sp/games/xonix |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes: |
Deleted: svn:mime-type |
-application/octet-stream |
\ No newline at end of property |
/programs/games/xonix/trunk/Tupfile.lua |
---|
1,5 → 1,9 |
if tup.getconfig("NO_MSVC") ~= "" then return end |
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../.." or tup.getconfig("HELPERDIR") |
tup.include(HELPERDIR .. "/use_msvc.lua") |
if tup.getconfig("LANG") == "ru" |
then CFLAGS = CFLAGS .. " /DLANG=RUS" |
else CFLAGS = CFLAGS .. " /DLANG=ENG" |
end |
compile_msvc{"*.cpp"} |
link_msvc("xonix") |
/programs/games/xonix/trunk/kosSyst.cpp |
---|
2,11 → 2,40 |
#define atexitBufferSize 32 |
// Autobuild uses FASM method for exe->kos, |
// MENUET01 header should be present in EXE. |
#ifdef AUTOBUILD |
char kosExePath[1024]; |
char exeStack[16384]; |
// must be alphabetically first in the image |
#pragma data_seg(".1seg") |
extern "C" struct |
{ |
char header[8]; |
int headerver; |
void* entry; |
void* i_end; |
void* memsize; |
void* stack; |
void* params; |
void* icon; |
} header = { |
{'M', 'E', 'N', 'U', 'E', 'T', '0', '1'}, |
1, |
&crtStartUp, |
0, // filled by doexe2.asm |
0, // filled by doexe2.asm |
exeStack + sizeof(exeStack), |
NULL, |
kosExePath |
}; |
#pragma data_seg() |
#else |
char *kosExePath = NULL; |
#endif |
char pureCallMessage[] = "PURE function call!"; |
char *kosExePath = NULL; |
// |
void (__cdecl *atExitList[atexitBufferSize])(); |
int atExitFnNum = 0; |
809,6 → 838,10 |
// |
void crtStartUp() |
{ |
#ifdef AUTOBUILD |
// linker will try to remove unused variables; force header to be included |
header.header; |
#endif |
// âûçûâàåì èíèöèàëèçàòîðû ïî ñïèñêó, NULL'û èãíîðèðóåì |
for ( _PVFV *pbegin = __xc_a; pbegin < __xc_z; pbegin++ ) |
{ |
818,8 → 851,10 |
} |
// èíèöèàëèçèðóåì ãåíåðàòîð ñëó÷àéíûõ ÷èñåë |
rtlSrand( kos_GetSystemClock() ); |
#ifndef AUTOBUILD |
// ïóòü ê ôàéëó ïðîöåññà |
kosExePath = *((char **)0x20); |
#endif |
// âûçîâ ãëàâíîé ôóíêöèè ïðèëîæåíèÿ |
kos_Main(); |
// âûõîä |
/programs/games/xonix/trunk/kosSyst.h |
---|
95,8 → 95,12 |
Dword args[11]; |
}; |
#ifdef AUTOBUILD |
extern char kosExePath[]; |
#else |
// |
extern char *kosExePath; |
#endif |
// |
void crtStartUp(); |
/programs/games/xonix/trunk/lang.h |
---|
1,3 → 1,5 |
#define RUS 1 |
#define ENG 2 |
#define LANG RUS |
#ifndef LANG |
#define LANG RUS |
#endif |