mirror of
https://github.com/mlaux/gb6.git
synced 2026-10-24 16:02:16 +00:00
100 lines
1.8 KiB
C
100 lines
1.8 KiB
C
/* Game Boy emulator for 68k Macs
|
|
emulator.h - declarations for emulator.c */
|
|
|
|
#ifndef EMULATOR_H
|
|
#define EMULATOR_H
|
|
|
|
#include <Quickdraw.h>
|
|
#include <Windows.h>
|
|
|
|
#include "types.h"
|
|
#include "dmg.h"
|
|
#include "lcd.h"
|
|
#include "rom.h"
|
|
#include "audio.h"
|
|
|
|
extern struct rom rom;
|
|
extern struct lcd lcd;
|
|
extern struct audio audio;
|
|
extern struct dmg dmg;
|
|
|
|
extern WindowPtr g_wp;
|
|
|
|
extern int screen_depth;
|
|
extern Boolean screen_is_color;
|
|
extern int video_mode;
|
|
|
|
extern u8 offscreen_buf[];
|
|
extern Rect offscreen_rect;
|
|
extern BitMap offscreen_bmp;
|
|
|
|
extern u8 offscreen_color_buf[];
|
|
extern PixMap offscreen_pixmap;
|
|
|
|
extern PixMap lowdepth_pixmap;
|
|
|
|
#define APP_VERSION "2.3.0 ${GIT_SHA}"
|
|
|
|
#define WINDOW_X 8
|
|
#define WINDOW_Y 40
|
|
#define WINDOW_WIDTH 320
|
|
#define WINDOW_HEIGHT 299
|
|
|
|
#define ALRT_NOT_ENOUGH_RAM 128
|
|
#define ALRT_4_LINE 129
|
|
|
|
#define MISSING_APP_NAME_ID (-16396)
|
|
|
|
#define MBAR_DEFAULT 128
|
|
|
|
#define MENU_APPLE 128
|
|
#define MENU_FILE 129
|
|
#define MENU_EDIT 130
|
|
#define MENU_PALETTES 131
|
|
#define MENU_DEBUG 132
|
|
|
|
#define DEBUG_DUMP_VRAM 1
|
|
|
|
#define APPLE_ABOUT 1
|
|
|
|
#define FILE_OPEN 1
|
|
#define FILE_SAVE_GAME 3
|
|
#define FILE_SCREENSHOT 4
|
|
#define FILE_SOFT_RESET 5
|
|
#define FILE_CLOSE 7
|
|
#define FILE_QUIT 8
|
|
|
|
#define EDIT_SOUND 1
|
|
#define EDIT_STAT_INTS 2
|
|
#define EDIT_LIMIT_FPS 3
|
|
#define EDIT_SKIP_OFF 6
|
|
#define EDIT_SKIP_1 7
|
|
#define EDIT_SKIP_2 8
|
|
#define EDIT_SKIP_3 9
|
|
#define EDIT_SKIP_4 10
|
|
#define EDIT_SCALE_1X 13
|
|
#define EDIT_SCALE_2X 14
|
|
#define EDIT_GBC_MODE 16
|
|
#define EDIT_IGNORE_DOUBLE_SPEED 17
|
|
#define EDIT_KEY_MAPPINGS 19
|
|
|
|
#define RES_MDEF_ID 128
|
|
|
|
// 0.5 sec
|
|
#define SOFT_RESET_TICKS 30
|
|
|
|
#define BASE_MEMORY_REQUIRED (2 * 1024 * 1024)
|
|
|
|
int LoadRom(Str63, short);
|
|
void ExplainNotARom(OSType);
|
|
|
|
void set_status_bar(const char *str);
|
|
|
|
void draw_progress_bar(u16 done, u16 total);
|
|
|
|
void ensure_folder(ConstStr255Param name);
|
|
|
|
void set_missing_app_name(ConstStr255Param name);
|
|
|
|
#endif
|