1#ifndef __ALTTP_PUBLIC_H__ 2#define __ALTTP_PUBLIC_H__ 3 4#ifdef __cplusplus 5extern "C" { 6#endif 7 8#include <stdint.h> 9 10struct ap_snes9x { 11 uint8_t * (*base)(uint32_t addr); 12 int (*save)(const char * filename); 13 int (*load)(const char * filename); 14 const char ** info_string_ptr; 15}; 16 17// in ap_snes.c 18void ap_init(struct ap_snes9x * emu); 19// in alttp.c 20void ap_tick(uint32_t frame, uint16_t * joypad); 21 22#ifdef __cplusplus 23} 24#endif 25 26#endif