X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=gp2x%2F940ctl.c;h=7d7a400d174484b7e6d6c6f9cb01aa25d7de7f21;hb=82abf46f3db8ade517881c03327bdbc0de848eb2;hp=1c6e4caaafefaaf2cb4ccfdd1bd939a42200340a;hpb=f11bad75edc8966e9f84b040163cc86e830c46c6;p=libpicofe.git diff --git a/gp2x/940ctl.c b/gp2x/940ctl.c index 1c6e4ca..7d7a400 100644 --- a/gp2x/940ctl.c +++ b/gp2x/940ctl.c @@ -13,7 +13,6 @@ #include "code940/940shared.h" #include "gp2x.h" #include "emu.h" -#include "menu.h" #include "../common/mp3.h" #include "../common/arm_utils.h" #include "../common/menu.h" @@ -150,7 +149,7 @@ static void wait_busy_940(int job) gp2x_memregs[0x3b46>>1], gp2x_memregl[0x4500>>2], gp2x_memregl[0x4510>>2]); printf("last lr: %08x, lastjob: %i\n", shared_ctl->last_lr, shared_ctl->lastjob); - strcpy(menuErrorMsg, "940 crashed, too much overclock?"); + me_update_msg("940 crashed, too much overclock?"); engineState = PGS_Menu; crashed_940 = 1; } @@ -313,7 +312,7 @@ void YM2612Init_940(int baseclock, int rate) fp = fopen(binpath, "rb"); if(!fp) { - memset(gp2x_screen, 0, 320*240*2); + memset(g_screen_ptr, 0, 320*240*2); text_out16(10, 100, "failed to open required file:"); text_out16(10, 110, CODE940_FILE); gp2x_video_flip2();