X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Fsountest.c;h=c8353ef0c411751a3e8a8606a40921851ee96c1e;hb=bb9d5bf711b1b19b8f4b3d2592e3569858c70a43;hp=f2726fcfd7f725aafe4aa57605f1ddfa7f7b31d8;hpb=2accbf2668001e82a8fec1e75f37c195996186b0;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)