| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
#include "video_fixture.h" |
| 23 |
|
| 24 |
#include "cpu/registers.h" |
| 25 |
#include "glue.h" |
| 26 |
|
| 27 |
#include <stdbool.h> |
| 28 |
#include <stddef.h> |
| 29 |
#include <stdint.h> |
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
struct regs regs; |
| 34 |
|
| 35 |
uint8_t activity_led; |
| 36 |
uint8_t MHZ = 8; |
| 37 |
uint16_t opcode_addr; |
| 38 |
bool warp_mode; |
| 39 |
bool testbench; |
| 40 |
bool enable_midline; |
| 41 |
bool grab_mouse; |
| 42 |
bool is_gen2; |
| 43 |
bool debugger_enabled; |
| 44 |
bool imgui_debugger_enabled; |
| 45 |
bool disable_emu_cmd_keys; |
| 46 |
bool log_video; |
| 47 |
|
| 48 |
|
| 49 |
gif_recorder_state_t record_gif = RECORD_GIF_PAUSE; |
| 50 |
char *gif_path; |
| 51 |
char window_title[64] = "x16 test"; |
| 52 |
int showDebugOnRender; |
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
void machine_dump(const char *reason) { (void)reason; } |
| 57 |
void machine_nmi(void) { } |
| 58 |
void machine_paste(char *text, bool handle_free) { (void)text; (void)handle_free; } |
| 59 |
void machine_reset(void) { } |
| 60 |
void machine_toggle_warp(void) { } |
| 61 |
void main_shutdown(void) { } |
| 62 |
|
| 63 |
void handle_keyboard(bool down, SDL_Keycode sym, SDL_Scancode scancode) |
| 64 |
{ (void)down; (void)sym; (void)scancode; } |
| 65 |
|
| 66 |
void joystick_add(int index) { (void)index; } |
| 67 |
void joystick_remove(int index) { (void)index; } |
| 68 |
void joystick_button_down(int instance_id, uint8_t button) { (void)instance_id; (void)button; } |
| 69 |
void joystick_button_up(int instance_id, uint8_t button) { (void)instance_id; (void)button; } |
| 70 |
|
| 71 |
void mouse_button_down(int num) { (void)num; } |
| 72 |
void mouse_button_up(int num) { (void)num; } |
| 73 |
void mouse_move(int x, int y) { (void)x; (void)y; } |
| 74 |
void mouse_send_state(void) { } |
| 75 |
void mouse_set_wheel(int8_t y) { (void)y; } |
| 76 |
|
| 77 |
void sdcard_attach(void) { } |
| 78 |
void sdcard_detach(void) { } |
| 79 |
|
| 80 |
|
| 81 |
bool sdcard_attached; |
| 82 |
void sdcard_select(bool select) { (void)select; } |
| 83 |
uint8_t sdcard_handle(uint8_t inbyte) { (void)inbyte; return 0xFF; } |
| 84 |
|
| 85 |
SDL_Surface *CommanderX16Icon(void) { return NULL; } |
| 86 |
|
| 87 |
|
| 88 |
#ifdef _WIN32 |
| 89 |
void video_win32_set_rounded_corners(SDL_Window *window) { (void)window; } |
| 90 |
void video_win32_install_move_hook(SDL_Window *window) { (void)window; } |
| 91 |
void video_win32_remove_move_hook(void) { } |
| 92 |
#endif |
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
void DEBUGBreakToDebugger(void) { } |
| 97 |
void DEBUGFreeUI(void) { } |
| 98 |
void DEBUGInitUI(SDL_Renderer *r) { (void)r; } |
| 99 |
void DEBUGRenderDisplay(int width, int height) { (void)width; (void)height; } |
| 100 |
void DEBUGSetStopReason(const char *reason) { (void)reason; } |
| 101 |
|
| 102 |
|
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
|
| 109 |
void audio_render(void) { } |
| 110 |
|