]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_timer.c
__seguse.txt added to show _seg usage also OpenVGMFile needs to be ported to 16_snd...
[16.git] / src / lib / 16_timer.c
index e05232a0411fc322c3d4539030a48abb94cbac2b..a9dba5d5d26eeeb58792e1bf0bfdc8ecffe0d7ea 100755 (executable)
@@ -1,5 +1,5 @@
 /* Project 16 Source Code~\r
- * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover\r
+ * Copyright (C) 2012-2017 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover\r
  *\r
  * This file is part of Project 16.\r
  *\r
@@ -27,13 +27,13 @@ static word far* clockw= (word far*) 0x046C; /* 18.2hz clock */
 clock_t start_timer(global_game_variables_t *gv)\r
 {\r
        gv->kurokku.t = clock();\r
-       gv->kurokku.tiku = 0;\r
+       gv->kurokku.tiku = 0; gv->video.sfip = 0;\r
        gv->kurokku.clock_start = *clockw;\r
        gv->kurokku.clock = clockw;\r
-       //gv->kurokku.frames_per_second = 60;\r
+       gv->kurokku.wcpu = WCPU_detectcpu();\r
 \r
-    //turn this off if XT\r
-       switch(WCPU_detectcpu())\r
+       //turn this off if XT\r
+       switch(gv->kurokku.wcpu)\r
        {\r
                case 0:\r
                        gv->kurokku.fpscap=0;\r
@@ -67,6 +67,7 @@ double time_in_seconds(global_game_variables_t *gv)
 \r
 // big global status text buffer\r
 char global_temp_status_text[512];\r
+char global_temp_status_text2[512];\r
 \r
 /*double time_in_seconds(time_t in_t)\r
 {\r