Skip to content
Snippets Groups Projects
Commit 60b938ec authored by deuce's avatar deuce
Browse files

Use xptone_open()/xptone_close() when using xptone()

parent efd61411
No related branches found
No related tags found
No related merge requests found
......@@ -233,6 +233,8 @@ int main(int argc, char **argv)
}
continue;
}
if(use_xptone)
xptone_open();
if(argv[i][0]=='+') {
if((stream=fopen(argv[i]+1,"rb"))==NULL) {
/* Check directory of executable if file/path not found */
......@@ -258,6 +260,8 @@ int main(int argc, char **argv)
continue;
}
play(argv[i],argv[i+1]);
if(use_xptone)
xptone_close();
i++;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment