#include "flashrom.h"
#include "savestate.h"
#include "devices.h"
+#include "specialmonitors.h"
#define CUBO_DEBUG 1
break;
case 0x2b: // FWD Step
ld_address++;
+#ifdef AVIOUTPUT
getsetpositionvideograb(ld_address);
+#endif
ld_mode = LD_MODE_STILL;
ld_direction = 0;
ack();
if (ld_address) {
ld_address--;
}
+#ifdef AVIOUTPUT
getsetpositionvideograb(ld_address);
+#endif
ld_mode = LD_MODE_STILL;
ld_direction = 0;
ack();
}
ld_mode_value = 0;
ld_mode = LD_MODE_PLAY;
+#ifdef AVIOUTPUT
pausevideograb(0);
+#endif
ack();
if (log_ld) {
write_log(_T("LD: REPEAT CNT=%d, %d TO %d\n"), ld_repcnt, ld_startaddress, ld_endaddress);
}
} else if (ld_mode_value == LD_MODE_SEARCH) {
- uae_s32 endpos = (uae_s32)getdurationvideograb();
ld_address = ld_value;
ack();
// delay seek status response by 2 frames (Platoon requires this)
ld_wait_seek = arcadia_hsync_cnt + 2 * maxvpos;
#ifdef AVIOUTPUT
+ uae_s32 endpos = (uae_s32)getdurationvideograb();
if (ld_address > endpos) {
ld_address = endpos;
getsetpositionvideograb(ld_address);
ld_value = 0;
ack();
if (log_ld)
- write_log(_T("LD: CLEAR ENTRY\n"), ld_value);
+ write_log(_T("LD: CLEAR ENTRY\n"));
break;
case 0x4a: // R-PLAY 'J'
ld_mode = LD_MODE_PLAY;
int offset = cubo_pic_bit_cnt / 8;
if (offset < sizeof(cubo_pic_key)) {
cubo_pic_key[offset] = cubo_pic_byte;
- write_log(_T("Cubo PIC received %02x (%d/%d)\n"), cubo_pic_byte, offset, sizeof(cubo_pic_key));
+ write_log(_T("Cubo PIC received %02x (%d/%zu)\n"), cubo_pic_byte, offset, sizeof(cubo_pic_key));
}
if (offset == sizeof(cubo_pic_key) - 1) {
- write_log(_T("Cubo PIC key in: "), cubo_key);
+ write_log(_T("Cubo PIC key in: "));
for (int i = 0; i < 8; i++) {
write_log(_T("%02x "), cubo_pic_key[i + 2]);
}
bool specialmonitor_linebased(void);
void genlock_infotext(uae_u8*, struct vidbuffer*);
-const TCHAR *specialmonitorfriendlynames[];
-const TCHAR *specialmonitormanufacturernames[];
-const TCHAR *specialmonitorconfignames[];
+extern const TCHAR *specialmonitorfriendlynames[];
+extern const TCHAR *specialmonitormanufacturernames[];
+extern const TCHAR *specialmonitorconfignames[];
#endif /* UAE_SPECIALMONITORS_H */
#include "videograb.h"
#endif
#include "arcadia.h"
+#include "uae/attributes.h"
// We have this in sysconfig.h
//#define VIDEOGRAB 1
size_t size;
};
-static void __cdecl readcallback(png_structp png_ptr, png_bytep out, png_size_t count)
+static void uae_cdecl readcallback(png_structp png_ptr, png_bytep out, png_size_t count)
{
png_voidp io_ptr = png_get_io_ptr(png_ptr);