]> 4ch.mooo.com Git - 16.git/blobdiff - src/sountest.c
__seguse.txt added to show _seg usage also OpenVGMFile needs to be ported to 16_snd...
[16.git] / src / sountest.c
index 5bcdccf6aee889c8761a642088732f6d2ddcab8e..c8353ef0c411751a3e8a8606a40921851ee96c1e 100755 (executable)
@@ -1,5 +1,5 @@
 /* Project 16 Source Code~\r
- * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123\r
+ * Copyright (C) 2012-2017 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover\r
  *\r
  * This file is part of Project 16.\r
  *\r
@@ -51,6 +51,7 @@ static unsigned int musical_scale[18] = {
 \r
 void main(int argc, char near *argv[])\r
 {\r
+       static global_game_variables_t gvar;\r
        word i;\r
 //     static FMInstrument testInst =\r
 //{\r
@@ -67,8 +68,7 @@ void main(int argc, char near *argv[])
        //FMSetVoice(0, &testInst);\r
        if(!init_adlib())\r
        {\r
-               printf("Cannot init library\n");\r
-               exit(-5);\r
+               Quit(gvar, "Cannot init library");\r
        }\r
 \r
        if (adlib_fm_voices > 9)\r