X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2Fcd%2FArea.c;h=164d272f245c0b7b7954e2064601bcec88239f6c;hb=6a13ef3f56a80ac698d463f5d00235ea2a090f52;hp=c4bb2ed69d1494c21a38f545c463c40edf91c687;hpb=374498bcabc88b6f46d77b38b23328c982e84d60;p=picodrive.git diff --git a/Pico/cd/Area.c b/Pico/cd/Area.c index c4bb2ed..164d272 100644 --- a/Pico/cd/Area.c +++ b/Pico/cd/Area.c @@ -174,7 +174,7 @@ static int g_read_offs = 0; // when is eof really set? #define CHECKED_READ(len,data) \ if (areaRead(data, 1, len, file) != len) { \ - if (len == 1 && areaEof(file)) return 0; \ + if (len == 1 && areaEof(file)) goto readend; \ R_ERROR_RETURN("areaRead: premature EOF\n"); \ return 1; \ } \ @@ -269,6 +269,7 @@ PICO_INTERNAL int PicoCdLoadState(void *file) breakswitch:; } +readend: if (PicoAHW & PAHW_MCD) { /* after load events */ @@ -324,6 +325,7 @@ int PicoCdLoadStateGfx(void *file) } } +readend: return 0; }