From 89dea5438266ef3389e5e86310d778c64bb6b59c Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Wed, 27 Dec 2017 09:38:55 +0900 Subject: updated sdl --- sdl/main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sdl/main.c') diff --git a/sdl/main.c b/sdl/main.c index f4bd752..1fcdd9a 100644 --- a/sdl/main.c +++ b/sdl/main.c @@ -153,8 +153,13 @@ int main(int argc, char **argv) { return 1; } - g.fp = fmdsp_pacc_init(pc, &pacc); + 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; -- cgit v1.2.3