xcroll.exe &
inputest.exe &
vrstest.exe &
+ tesuto.exe &
+ 0.exe &
maptest.exe
#zcroll.exe &
TESTEXEC2 = &
fonttest.exe &
fontgfx.exe &
test0.exe &
- tesuto.exe &
- 0.exe &
$(EXTERNTESTEXEC)
TESTEXEC3= &
pcxtest2.exe
unsigned int bufsz;\r
int fd;\r
//nibble i;\r
- char *bakapee1,*bakapee2;\r
+ char bakapee1[64],bakapee2[64];\r
\r
boolean anim=1,noanim=0,zerostoppause=1;\r
\r
- bakapee1=malloc(64);\r
- bakapee2=malloc(64);\r
-\r
if (argc < 2) {\r
//fprintf(stderr,"drawvrl <VRL file> <palette file>\n palette file optional\n");\r
- bakapee1 = FILENAME_1;//"data/aconita.vrl";\r
- bakapee2 = FILENAME_2;//"data/aconita.pal";\r
+ strcpy(bakapee1, FILENAME_1);//"data/aconita.vrl";\r
+ strcpy(bakapee2, FILENAME_2);//"data/aconita.pal";\r
\r
}else{\r
- if(argv[1]) bakapee1 = argv[1];\r
- if(argv[2]) bakapee2 = argv[2];\r
+ if(argv[1]){ strcpy(bakapee1, argv[1]);//bakapee1[] = *argv[1];\r
+ if(argv[2]) strcpy(bakapee2, argv[2]); }//bakapee2[] = argv[2]; }\r
}\r
\r
fd = open(bakapee1,O_RDONLY|O_BINARY);\r
}\r
#endif\r
\r
+\r
+\r
void\r
main(int argc, char *argv[])\r
{\r
//#ifdef __WATCOMC__\r
// __segment sega;\r
//#endif\r
- //static byte bakapee[64];\r
- char *bakapee1, *bakapee2;\r
+ char bakapee1[64],bakapee2[64];\r
word baka;\r
\r
#ifdef __BORLANDC__\r
argc=argc;\r
#endif\r
- //file name //\r
- bakapee1 = malloc(24);\r
- bakapee2 = malloc(24);\r
- //file name //\r
\r
#ifdef __16_PM__\r
#ifdef __DEBUG_PM__\r
#ifdef PRINTBBDUMP\r
//0000PRINTBB; KEYP\r
#endif\r
- if(argv[1]){ bakapee1 = argv[1];\r
- if(argv[2]) bakapee2 = argv[2]; }\r
+ if(argv[1]){ strcpy(bakapee1, argv[1]);//bakapee1[] = *argv[1];\r
+ if(argv[2]) strcpy(bakapee2, argv[2]); }//bakapee2[] = argv[2]; }\r
else{\r
//{ printf("filename!: "); scanf("%[^\n]", &bakapee); }\r
- bakapee1 = "data/koishi~.pcx";\r
- bakapee2 = "data/test.map";\r
+ strcpy(bakapee1, "data/koishi~.pcx"); //bakapee1 = "data/koishi~.pcx";\r
+ strcpy(bakapee2, "data/test.map"); //bakapee2 = "data/test.map";\r
}\r
#ifndef NOVID\r
Startup16(&gvar);\r
void main(int argc, char *argv[])\r
{\r
static global_game_variables_t gvar;\r
- char *bakapee1,*bakapee1p;\r
+ char bakapee1[64],bakapee1p[64];\r
struct glob_game_vars *ggvv;\r
// sword bakapee;\r
// if(argv[1]) bakapee = atoi(argv[1]);\r
\r
Startup16(&gvar);\r
\r
- bakapee1=malloc(64);\r
- bakapee1p=malloc(64);\r
ggvv=&gvar;\r
\r
if (argc < 2) {\r
//fprintf(stderr,"drawvrl <VRL file> <palette file>\n palette file optional\n");\r
- bakapee1 = FILENAME_1;\r
- bakapee1p = FILENAME_1P;\r
+ strcpy(bakapee1, FILENAME_1);\r
+ strcpy(bakapee1p, FILENAME_1P);\r
\r
}else{\r
- if(argv[1]) bakapee1 = argv[1];\r
- if(argv[2]) bakapee1p = argv[2];\r
+ if(argv[1]){ strcpy(bakapee1, argv[1]);\r
+ if(argv[2]) strcpy(bakapee1p, argv[2]); }\r
}\r
\r
// OK, this one takes hellova time and needs to be done in farmalloc or MM_...\r
{\r
if(gvar.in.inst->Keyboard[sc_J])\r
{\r
- bakapee1=FILENAME_1;\r
- bakapee1p=FILENAME_1P;\r
+ strcpy(bakapee1, FILENAME_1);\r
+ strcpy(bakapee1p, FILENAME_1P);\r
gvar.player[0].enti.overdraww=0;\r
}\r
if(gvar.in.inst->Keyboard[sc_K])\r
{\r
- bakapee1=FILENAME_2;\r
- bakapee1p=FILENAME_2P;\r
+ strcpy(bakapee1, FILENAME_2);\r
+ strcpy(bakapee1p, FILENAME_2P);\r
gvar.player[0].enti.overdraww=2;\r
}\r
//read_vrs(&gvar, bakapee1, gvar.player[0].enti.spri->spritesheet);\r