]> 4ch.mooo.com Git - 16.git/commitdiff
basic 16.exe core implemented~
authorsparky4 <sparky4@cock.li>
Wed, 1 Jul 2015 17:47:50 +0000 (12:47 -0500)
committersparky4 <sparky4@cock.li>
Wed, 1 Jul 2015 17:47:50 +0000 (12:47 -0500)
modified:   16.exe
modified:   data/g.pal
modified:   src/16.c
modified:   src/16.h

16.exe
data/g.pal
src/16.c
src/16.h

diff --git a/16.exe b/16.exe
index cdf2d4fca573185cc5fbb6d671da663e7cc98b4e..d407dac141d591d9fa2508db9ccc8bcbbb848d09 100644 (file)
Binary files a/16.exe and b/16.exe differ
index cf668e3509805fa4ec96876045fe2f979a02ab37..0ecbac33f44529d9701eae8c9b262c7da0f50416 100644 (file)
Binary files a/data/g.pal and b/data/g.pal differ
index 5f3487fe5e684563cc27ce8f3e158316d9712626..6ead54ba69e1c33432b1d0dec2edd2cd891db969 100644 (file)
--- a/src/16.c
+++ b/src/16.c
  *
  */
 
+#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);
 }
index 8cab0638c5ad27ad6a1ec04596f102595e8c6144..7f2e0976b63b41db54b315d1903661ae91badf43 100644 (file)
--- a/src/16.h
+++ b/src/16.h
@@ -23,5 +23,9 @@
 #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_*/