X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=platform%2Fwin32%2FGenaDrive%2FLoop.cpp;h=8aa05612aa34594aeb33289c16592deb546bd75c;hb=4609d0cdb87fcdd5f419153d7a76e2b06242b294;hp=2b3704da660cc6ad9a7bc88ddb00ae8d0a799fa7;hpb=1b0ac8adc97d65c686a48c4375c07907de86be24;p=picodrive.git diff --git a/platform/win32/GenaDrive/Loop.cpp b/platform/win32/GenaDrive/Loop.cpp index 2b3704d..8aa0561 100644 --- a/platform/win32/GenaDrive/Loop.cpp +++ b/platform/win32/GenaDrive/Loop.cpp @@ -56,8 +56,9 @@ static void UpdateSound(int len) static void PostProcess() { - static int lock_to_1_1_prev = 0, is_40_prev = 0; - int is_40 = PicoGetStat(PS_40_CELL); + static int lock_to_1_1_prev = 0, is_40_prev = -1; + int is_40; + PicoGetInternal(PI_IS40_CELL, (pint_ret_t *)&is_40); if (lock_to_1_1) { if (is_40 != is_40_prev || !lock_to_1_1_prev) @@ -127,7 +128,7 @@ extern "C" int dprintf(char *format, ...) } #endif -extern "C" int dprintf2(char *format, ...) +extern "C" int lprintf(char *format, ...) { char str[512]; va_list val=NULL;