X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Fsountest.c;h=c8353ef0c411751a3e8a8606a40921851ee96c1e;hb=b8607c188acbd40fc54f6a145e6db0e8e732ec2d;hp=f2726fcfd7f725aafe4aa57605f1ddfa7f7b31d8;hpb=631d2bde47de81ead5300f7aca378447387f254c;p=16.git diff --git a/src/sountest.c b/src/sountest.c index f2726fcf..c8353ef0 100755 --- a/src/sountest.c +++ b/src/sountest.c @@ -1,5 +1,5 @@ /* Project 16 Source Code~ - * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover + * Copyright (C) 2012-2017 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover * * This file is part of Project 16. * @@ -51,6 +51,7 @@ static unsigned int musical_scale[18] = { void main(int argc, char near *argv[]) { + static global_game_variables_t gvar; word i; // static FMInstrument testInst = //{ @@ -67,8 +68,7 @@ void main(int argc, char near *argv[]) //FMSetVoice(0, &testInst); if(!init_adlib()) { - printf("Cannot init library\n"); - exit(-5); + Quit(gvar, "Cannot init library"); } if (adlib_fm_voices > 9)