X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Fsountest.c;h=c8353ef0c411751a3e8a8606a40921851ee96c1e;hb=b8607c188acbd40fc54f6a145e6db0e8e732ec2d;hp=5bcdccf6aee889c8761a642088732f6d2ddcab8e;hpb=623ca4b01f2db170c2273d5bc9c538be78d16c4c;p=16.git diff --git a/src/sountest.c b/src/sountest.c index 5bcdccf6..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 + * 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)