modified: 16.exe
modified: data/g.pal
modified: src/16.c
modified: src/16.h
*
*/
+#include "src/16.h"
+
void
main(int argc, char *argv[])\r
{
-
+ const char *cpus;
+ byte *dpal, *gpal;
+ /* save the palette */
+ dpal = modexNewPal();
+ modexPalSave(dpal);
+ modexFadeOff(4, dpal);
+ printf("pal load\n");
+ gpal = modexNewPal();
+ modexPalSave(gpal);
+ modexSavePalFile("data/g.pal", gpal);
+ modexPalBlack(); //so player will not see loadings~
+ printf("wwww loop wwww\n");
+ switch(detectcpu())
+ {
+ case 0: cpus = "8086/8088 or 186/88"; break;
+ case 1: cpus = "286"; break;
+ case 2: cpus = "386 or newer"; break;
+ default: cpus = "internal error"; break;
+ }
+ printf("detected CPU type: %s\n", cpus);
+ modexFadeOn(4, dpal);
}
#ifndef __16_H_
#define __16_H_
+#include "src/lib/lib_head.h"
+#include "src/lib/modex16.h"
+#include "src/lib/wcpu/wcpu.h"
+#include "src/lib/planar.h"
#endif /*__16_H_*/