aboutsummaryrefslogtreecommitdiff
path: root/sdl/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'sdl/main.c')
-rw-r--r--sdl/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sdl/main.c b/sdl/main.c
index 4000e26..af877d8 100644
--- a/sdl/main.c
+++ b/sdl/main.c
@@ -152,8 +152,14 @@ int main(int argc, char **argv) {
SDL_Quit();
return 1;
}
+
g.fp = fmdsp_pacc_alloc();
if (!g.fp) {
+ SDL_Log("Cannot allocate fmdsp\n");
+ SDL_Quit();
+ return 1;
+ }
+ if (!fmdsp_pacc_init(g.fp, pc, &pacc)) {
SDL_Log("Cannot initialize fmdsp\n");
SDL_Quit();
return 1;