mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-06-02 08:38:43 +02:00
Removing header defines
This commit is contained in:
parent
60033bc99e
commit
d5a8fb4232
|
@ -36,8 +36,7 @@
|
|||
*
|
||||
****************************************************************************************/
|
||||
|
||||
#ifndef _AREPLAY_H_
|
||||
#define _AREPLAY_H_
|
||||
#pragma once
|
||||
|
||||
#define AR_SWITCH_OFF (0)
|
||||
#define AR_SWITCH_ON (1)
|
||||
|
@ -49,4 +48,3 @@ extern void areplay_reset(int hard);
|
|||
extern void areplay_set_status(int status);
|
||||
extern int areplay_get_status(void);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -36,10 +36,8 @@
|
|||
*
|
||||
****************************************************************************************/
|
||||
|
||||
#ifndef _EEPROM_I2C_H_
|
||||
#define _EEPROM_I2C_H_
|
||||
#pragma once
|
||||
|
||||
/* Function prototypes */
|
||||
extern void eeprom_i2c_init(void);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -36,12 +36,10 @@
|
|||
*
|
||||
****************************************************************************************/
|
||||
|
||||
#ifndef _EEPROM_SPI_H_
|
||||
#define _EEPROM_SPI_H_
|
||||
#pragma once
|
||||
|
||||
/* Function prototypes */
|
||||
extern void eeprom_spi_init(void);
|
||||
extern void eeprom_spi_write(unsigned char data);
|
||||
extern unsigned int eeprom_spi_read(unsigned int address);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -39,8 +39,7 @@
|
|||
*
|
||||
****************************************************************************************/
|
||||
|
||||
#ifndef _GGENIE_H_
|
||||
#define _GGENIE_H_
|
||||
#pragma once
|
||||
|
||||
/* Function prototypes */
|
||||
extern void ggenie_init(void);
|
||||
|
@ -48,4 +47,3 @@ extern void ggenie_shutdown(void);
|
|||
extern void ggenie_reset(int hard);
|
||||
extern void ggenie_switch(int enable);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -36,8 +36,7 @@
|
|||
*
|
||||
****************************************************************************************/
|
||||
|
||||
#ifndef _MEGASD_H_
|
||||
#define _MEGASD_H_
|
||||
#pragma once
|
||||
|
||||
extern void megasd_reset(void);
|
||||
extern void megasd_rom_mapper_w(unsigned int address, unsigned int data);
|
||||
|
@ -46,4 +45,3 @@ extern void megasd_update_cdda(unsigned int samples);
|
|||
extern int megasd_context_save(uint8_t *state);
|
||||
extern int megasd_context_load(uint8_t *state);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -36,8 +36,7 @@
|
|||
*
|
||||
****************************************************************************************/
|
||||
|
||||
#ifndef _SMS_CART_H_
|
||||
#define _SMS_CART_H_
|
||||
#pragma once
|
||||
|
||||
/* Special hardware */
|
||||
#define HW_3D_GLASSES 0x01
|
||||
|
@ -52,6 +51,5 @@ extern int sms_cart_region_detect(void);
|
|||
extern int sms_cart_context_save(uint8_t *state);
|
||||
extern int sms_cart_context_load(uint8_t *state);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
|
|
@ -10,8 +10,7 @@
|
|||
Modified for Genesis Plus GX (Eke-Eke): added BIG ENDIAN support, fixed addr/code inversion
|
||||
*/
|
||||
|
||||
#ifndef _SSP16_H_
|
||||
#define _SSP16_H_
|
||||
#pragma once
|
||||
|
||||
/* emulation event logging (from Picodrive) */
|
||||
#ifdef LOG_SVP
|
||||
|
@ -76,4 +75,3 @@ typedef struct
|
|||
void ssp1601_reset(ssp1601_t *ssp);
|
||||
void ssp1601_run(int cycles);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -10,8 +10,7 @@
|
|||
Modified for Genesis Plus GX (Eke-Eke): added BIG ENDIAN support, fixed addr/code inversion
|
||||
*/
|
||||
|
||||
#ifndef _SVP_H_
|
||||
#define _SVP_H_
|
||||
#pragma once
|
||||
|
||||
#include "ssp16.h"
|
||||
|
||||
|
@ -26,4 +25,3 @@ extern svp_t *svp;
|
|||
extern void svp_init(void);
|
||||
extern void svp_reset(void);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -35,7 +35,8 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
****************************************************************************************/
|
||||
|
||||
|
||||
#pragma once
|
||||
|
||||
/* CD compatible ROM/RAM cartridge */
|
||||
typedef struct
|
||||
|
|
|
@ -35,8 +35,7 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
****************************************************************************************/
|
||||
#ifndef _HW_CDC_
|
||||
#define _HW_CDC_
|
||||
#pragma once
|
||||
|
||||
#define cdc scd.cdc_hw
|
||||
|
||||
|
@ -75,4 +74,3 @@ extern void cdc_reg_w(unsigned char data);
|
|||
extern unsigned char cdc_reg_r(void);
|
||||
extern unsigned short cdc_host_r(uint8_t cpu_access);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -35,8 +35,7 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
****************************************************************************************/
|
||||
#ifndef _HW_CDD_
|
||||
#define _HW_CDD_
|
||||
#pragma once
|
||||
|
||||
#include "../sound/blip_buf.h"
|
||||
|
||||
|
@ -139,4 +138,3 @@ extern void cdd_update_audio(unsigned int samples);
|
|||
extern void cdd_update(void);
|
||||
extern void cdd_process(void);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -35,8 +35,7 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
****************************************************************************************/
|
||||
#ifndef _CD_GFX_
|
||||
#define _CD_GFX_
|
||||
#pragma once
|
||||
|
||||
#define gfx scd.gfx_hw
|
||||
|
||||
|
@ -113,4 +112,3 @@ extern int gfx_context_load(uint8_t *state);
|
|||
extern void gfx_start(unsigned int base, int cycles);
|
||||
extern void gfx_update(int cycles);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -35,8 +35,7 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
****************************************************************************************/
|
||||
#ifndef _CD_PCM_
|
||||
#define _CD_PCM_
|
||||
#pragma once
|
||||
|
||||
#include "../sound/blip_buf.h"
|
||||
|
||||
|
@ -74,4 +73,3 @@ extern void pcm_write(unsigned int address, unsigned char data, unsigned int cyc
|
|||
extern unsigned char pcm_read(unsigned int address, unsigned int cycles);
|
||||
extern void pcm_ram_dma_w(unsigned int length);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -35,8 +35,7 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
****************************************************************************************/
|
||||
#ifndef _HW_SCD_
|
||||
#define _HW_SCD_
|
||||
#pragma once
|
||||
|
||||
#include "cdd.h"
|
||||
#include "cdc.h"
|
||||
|
@ -99,4 +98,3 @@ extern int scd_context_save(uint8_t *state);
|
|||
extern int scd_68k_irq_ack(int level);
|
||||
extern void prg_ram_dma_w(unsigned int length);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -40,9 +40,7 @@
|
|||
*
|
||||
****************************************************************************************/
|
||||
|
||||
#ifndef _CPUHOOK_H_
|
||||
#define _CPUHOOK_H_
|
||||
|
||||
#pragma once
|
||||
|
||||
typedef enum {
|
||||
HOOK_ANY = (0 << 0),
|
||||
|
@ -87,5 +85,3 @@ void (*cpu_hook)(hook_type_t type, int width, unsigned int address, unsigned int
|
|||
*/
|
||||
void set_cpu_hook(void(*hook)(hook_type_t type, int width, unsigned int address, unsigned int value));
|
||||
|
||||
|
||||
#endif /* _CPUHOOK_H_ */
|
|
@ -39,8 +39,7 @@
|
|||
*
|
||||
****************************************************************************************/
|
||||
|
||||
#ifndef _GENESIS_H_
|
||||
#define _GENESIS_H_
|
||||
#pragma once
|
||||
|
||||
#include "cart_hw/md_cart.h"
|
||||
#include "cart_hw/sms_cart.h"
|
||||
|
@ -77,5 +76,4 @@ extern void gen_zreset_w(unsigned int state, unsigned int cycles);
|
|||
extern void gen_zbank_w(unsigned int state);
|
||||
extern int z80_irq_callback(int param);
|
||||
|
||||
#endif /* _GEN_H_ */
|
||||
|
||||
|
|
|
@ -136,8 +136,7 @@
|
|||
Top border - Filled with the border color from VDP register #7.
|
||||
|
||||
*/
|
||||
#ifndef _HVC_H_
|
||||
#define _HVC_H_
|
||||
#pragma once
|
||||
|
||||
/***************************************************************/
|
||||
/* */
|
||||
|
@ -648,5 +647,4 @@ static const uint8_t cycle2hc40[3420] =
|
|||
0xa3, 0xa3, 0xa3, 0xa3, 0xa3, 0xa3, 0xa3, 0xa3, 0xa3, 0xa3, 0xa3, 0xa3, 0xa4, 0xa4, 0xa4, 0xa4,
|
||||
0xa4, 0xa4, 0xa4, 0xa4, 0xa4, 0xa4, 0xa4, 0xa4, 0xa4, 0xa4, 0xa4, 0xa4};
|
||||
|
||||
#endif /* _HVC_H_ */
|
||||
|
||||
|
|
|
@ -36,8 +36,7 @@
|
|||
*
|
||||
****************************************************************************************/
|
||||
|
||||
#ifndef _ACTIVATOR_H_
|
||||
#define _ACTIVATOR_H_
|
||||
#pragma once
|
||||
|
||||
/* Function prototypes */
|
||||
extern void activator_reset(int index);
|
||||
|
@ -46,4 +45,3 @@ extern unsigned char activator_2_read(void);
|
|||
extern void activator_1_write(unsigned char data, unsigned char mask);
|
||||
extern void activator_2_write(unsigned char data, unsigned char mask);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -37,8 +37,7 @@
|
|||
*
|
||||
****************************************************************************************/
|
||||
|
||||
#ifndef _GAMEPAD_H_
|
||||
#define _GAMEPAD_H_
|
||||
#pragma once
|
||||
|
||||
/* Function prototypes */
|
||||
extern void gamepad_reset(int port);
|
||||
|
@ -59,4 +58,3 @@ extern unsigned char mastertap_2_read(void);
|
|||
extern void mastertap_1_write(unsigned char data, unsigned char mask);
|
||||
extern void mastertap_2_write(unsigned char data, unsigned char mask);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -36,12 +36,10 @@
|
|||
*
|
||||
****************************************************************************************/
|
||||
|
||||
#ifndef _GRAPHIC_H_
|
||||
#define _GRAPHIC_H_
|
||||
#pragma once
|
||||
|
||||
/* Function prototypes */
|
||||
extern void graphic_board_reset(int port);
|
||||
extern unsigned char graphic_board_read(void);
|
||||
extern void graphic_board_write(unsigned char data, unsigned char mask);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -36,8 +36,7 @@
|
|||
*
|
||||
****************************************************************************************/
|
||||
|
||||
#ifndef _LIGHTGUN_H_
|
||||
#define _LIGHTGUN_H_
|
||||
#pragma once
|
||||
|
||||
/* Input devices port handlers */
|
||||
extern void lightgun_reset(int index);
|
||||
|
@ -48,4 +47,3 @@ extern unsigned char menacer_read(void);
|
|||
extern unsigned char justifier_read(void);
|
||||
extern void justifier_write(unsigned char data, unsigned char mask);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -36,12 +36,10 @@
|
|||
*
|
||||
****************************************************************************************/
|
||||
|
||||
#ifndef _MOUSE_H_
|
||||
#define _MOUSE_H_
|
||||
#pragma once
|
||||
|
||||
/* Function prototypes */
|
||||
extern void mouse_reset(int port);
|
||||
extern unsigned char mouse_read(void);
|
||||
extern void mouse_write(unsigned char data, unsigned char mask);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -36,8 +36,7 @@
|
|||
*
|
||||
****************************************************************************************/
|
||||
|
||||
#ifndef _PADDLE_H_
|
||||
#define _PADDLE_H_
|
||||
#pragma once
|
||||
|
||||
/* Function prototypes */
|
||||
extern void paddle_reset(int port);
|
||||
|
@ -46,4 +45,3 @@ extern unsigned char paddle_2_read(void);
|
|||
extern void paddle_1_write(unsigned char data, unsigned char mask);
|
||||
extern void paddle_2_write(unsigned char data, unsigned char mask);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -36,8 +36,7 @@
|
|||
*
|
||||
****************************************************************************************/
|
||||
|
||||
#ifndef _SPORTSPAD_H_
|
||||
#define _SPORTSPAD_H_
|
||||
#pragma once
|
||||
|
||||
/* Function prototypes */
|
||||
extern void sportspad_reset(int index);
|
||||
|
@ -46,4 +45,3 @@ extern unsigned char sportspad_2_read(void);
|
|||
extern void sportspad_1_write(unsigned char data, unsigned char mask);
|
||||
extern void sportspad_2_write(unsigned char data, unsigned char mask);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -36,8 +36,7 @@
|
|||
*
|
||||
****************************************************************************************/
|
||||
|
||||
#ifndef _TEAMPLAYER_H_
|
||||
#define _TEAMPLAYER_H_
|
||||
#pragma once
|
||||
|
||||
/* Function prototypes */
|
||||
extern void teamplayer_init(int port);
|
||||
|
@ -47,4 +46,3 @@ extern unsigned char teamplayer_2_read(void);
|
|||
extern void teamplayer_1_write(unsigned char data, unsigned char mask);
|
||||
extern void teamplayer_2_write(unsigned char data, unsigned char mask);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -36,12 +36,10 @@
|
|||
*
|
||||
****************************************************************************************/
|
||||
|
||||
#ifndef _TEREBI_H_
|
||||
#define _TEREBI_H_
|
||||
#pragma once
|
||||
|
||||
/* Function prototypes */
|
||||
extern void terebi_oekaki_reset(void);
|
||||
extern unsigned short terebi_oekaki_read(void);
|
||||
extern void terebi_oekaki_write(unsigned char data);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -36,8 +36,7 @@
|
|||
*
|
||||
****************************************************************************************/
|
||||
|
||||
#ifndef _XE_1APH_
|
||||
#define _XE_1APH_
|
||||
#pragma once
|
||||
|
||||
/* Function prototypes */
|
||||
extern void xe_1ap_reset(int index);
|
||||
|
@ -46,4 +45,3 @@ extern unsigned char xe_1ap_2_read(void);
|
|||
extern void xe_1ap_1_write(unsigned char data, unsigned char mask);
|
||||
extern void xe_1ap_2_write(unsigned char data, unsigned char mask);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -37,8 +37,7 @@
|
|||
*
|
||||
****************************************************************************************/
|
||||
|
||||
#ifndef _LOADROM_H_
|
||||
#define _LOADROM_H_
|
||||
#pragma once
|
||||
|
||||
#include "types.h"
|
||||
|
||||
|
@ -75,5 +74,4 @@ extern char *get_company(void);
|
|||
extern char *get_peripheral(int index);
|
||||
extern void getrominfo(char *romheader);
|
||||
|
||||
#endif /* _LOADROM_H_ */
|
||||
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
#ifndef M68K__HEADER
|
||||
#define M68K__HEADER
|
||||
|
||||
/* ======================================================================== */
|
||||
/* ========================= LICENSING & COPYRIGHT ======================== */
|
||||
/* ======================================================================== */
|
||||
|
@ -41,6 +38,8 @@
|
|||
/* ================================ INCLUDES ============================== */
|
||||
/* ======================================================================== */
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <setjmp.h>
|
||||
#include "../macros.h"
|
||||
|
||||
|
@ -406,4 +405,3 @@ extern void s68k_set_reg(m68k_register_t reg, unsigned int value);
|
|||
/* ============================== END OF FILE ============================= */
|
||||
/* ======================================================================== */
|
||||
|
||||
#endif /* M68K__HEADER */
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef M68KCONF__HEADER
|
||||
#define M68KCONF__HEADER
|
||||
#pragma once
|
||||
|
||||
/* ======================================================================== */
|
||||
/* ======================== MAIN 68K CONFIGURATION ======================== */
|
||||
|
@ -90,4 +89,3 @@
|
|||
/* ============================== END OF FILE ============================= */
|
||||
/* ======================================================================== */
|
||||
|
||||
#endif /* M68KCONF__HEADER */
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef M68KCPU__HEADER
|
||||
#define M68KCPU__HEADER
|
||||
#pragma once
|
||||
|
||||
/* ======================================================================== */
|
||||
/* GENERIC 68K CORE */
|
||||
|
@ -1436,4 +1435,3 @@ INLINE void m68ki_check_interrupts(void)
|
|||
/* ============================== END OF FILE ============================= */
|
||||
/* ======================================================================== */
|
||||
|
||||
#endif /* M68KCPU__HEADER */
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#pragma once
|
||||
|
||||
static const unsigned char m68ki_cycles[0x10000] =
|
||||
{
|
||||
8*7, 8*7, 8*7, 8*7, 8*7, 8*7, 8*7, 8*7, 0*7, 0*7, 0*7, 0*7, 0*7, 0*7, 0*7, 0*7,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#pragma once
|
||||
|
||||
static void (* const m68ki_instruction_jump_table[0x10000])(void) =
|
||||
{
|
||||
m68k_op_ori_8_d, m68k_op_ori_8_d, m68k_op_ori_8_d, m68k_op_ori_8_d, m68k_op_ori_8_d, m68k_op_ori_8_d, m68k_op_ori_8_d, m68k_op_ori_8_d,
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#pragma once
|
||||
|
||||
/* ======================================================================== */
|
||||
/* ============== CYCLE-ACCURATE DIV/MUL EXECUTION ======================== */
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef M68KCONF__HEADER
|
||||
#define M68KCONF__HEADER
|
||||
#pragma once
|
||||
|
||||
/* ======================================================================== */
|
||||
/* ======================== SUB 68K CONFIGURATION ========================= */
|
||||
|
@ -94,4 +93,3 @@
|
|||
/* ============================== END OF FILE ============================= */
|
||||
/* ======================================================================== */
|
||||
|
||||
#endif /* M68KCONF__HEADER */
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#pragma once
|
||||
|
||||
static const unsigned char m68ki_cycles[0x10000] =
|
||||
{
|
||||
8*4, 8*4, 8*4, 8*4, 8*4, 8*4, 8*4, 8*4, 0*4, 0*4, 0*4, 0*4, 0*4, 0*4, 0*4, 0*4,
|
||||
|
|
|
@ -37,8 +37,7 @@
|
|||
*
|
||||
****************************************************************************************/
|
||||
|
||||
#ifndef _MEM68K_H_
|
||||
#define _MEM68K_H_
|
||||
#pragma once
|
||||
|
||||
/* unused areas */
|
||||
extern unsigned int m68k_read_bus_8(unsigned int address);
|
||||
|
@ -74,4 +73,3 @@ extern void vdp_write_word(unsigned int address, unsigned int data);
|
|||
extern unsigned int pico_read_byte(unsigned int address);
|
||||
extern unsigned int pico_read_word(unsigned int address);
|
||||
|
||||
#endif /* _MEM68K_H_ */
|
||||
|
|
|
@ -37,8 +37,7 @@
|
|||
*
|
||||
****************************************************************************************/
|
||||
|
||||
#ifndef _MEMBNK_H_
|
||||
#define _MEMBNK_H_
|
||||
#pragma once
|
||||
|
||||
extern unsigned int zbank_unused_r(unsigned int address);
|
||||
extern void zbank_unused_w(unsigned int address, unsigned int data);
|
||||
|
@ -57,4 +56,3 @@ typedef struct
|
|||
|
||||
extern t_zbank_memory_map zbank_memory_map[256];
|
||||
|
||||
#endif /* _MEMBNK_H_ */
|
||||
|
|
|
@ -39,8 +39,7 @@
|
|||
*
|
||||
****************************************************************************************/
|
||||
|
||||
#ifndef _MEMZ80_H_
|
||||
#define _MEMZ80_H_
|
||||
#pragma once
|
||||
|
||||
extern unsigned char z80_memory_r(unsigned int address);
|
||||
extern void z80_memory_w(unsigned int address, unsigned char data);
|
||||
|
@ -57,4 +56,3 @@ extern void z80_m3_port_w(unsigned int port, unsigned char data);
|
|||
extern unsigned char z80_sg_port_r(unsigned int port);
|
||||
extern void z80_sg_port_w(unsigned int port, unsigned char data);
|
||||
|
||||
#endif /* _MEMZ80_H_ */
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/* Sega Genesis/Mega Drive NTSC video filter */
|
||||
|
||||
#pragma once
|
||||
|
||||
/* md_ntsc 0.1.2 */
|
||||
#ifndef MD_NTSC_H
|
||||
#define MD_NTSC_H
|
||||
|
||||
#include "md_ntsc_config.h"
|
||||
|
||||
|
@ -151,4 +151,3 @@ struct md_ntsc_t {
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/* Configure library by modifying this file */
|
||||
|
||||
#ifndef MD_NTSC_CONFIG_H
|
||||
#define MD_NTSC_CONFIG_H
|
||||
#pragma once
|
||||
|
||||
/* Format of source & output pixels (RGB555 or RGB565 only)*/
|
||||
#ifdef USE_15BPP_RENDERING
|
||||
|
@ -28,4 +27,3 @@ the pixel index if you use the high bits as flags, etc. */
|
|||
/* For each pixel, this is the basic operation:
|
||||
output_color = MD_NTSC_ADJ_IN( MD_NTSC_IN_T ) */
|
||||
|
||||
#endif
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
/* Common implementation of NTSC filters */
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <assert.h>
|
||||
#include <math.h>
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
/* Sega Master System/Game Gear/TI 99/4A NTSC video filter */
|
||||
|
||||
#pragma once
|
||||
|
||||
/* sms_ntsc 0.2.3 */
|
||||
#ifndef SMS_NTSC_H
|
||||
#define SMS_NTSC_H
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/* Configure library by modifying this file */
|
||||
|
||||
#ifndef SMS_NTSC_CONFIG_H
|
||||
#define SMS_NTSC_CONFIG_H
|
||||
#pragma once
|
||||
|
||||
/* Format of source & output pixels (RGB555 or RGB565 only) */
|
||||
#ifdef USE_15BPP_RENDERING
|
||||
|
@ -28,4 +27,3 @@ the pixel index if you use the high bits as flags, etc. */
|
|||
/* For each pixel, this is the basic operation:
|
||||
output_color = SMS_NTSC_ADJ_IN( SMS_NTSC_IN_T ) */
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
/* sms_ntsc 0.2.3. http://www.slack.net/~ant/ */
|
||||
|
||||
#pragma once
|
||||
|
||||
/* Common implementation of NTSC filters */
|
||||
|
||||
#include <assert.h>
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
/** Sample buffer that resamples from input clock rate to output sample rate \file */
|
||||
|
||||
/* blip_buf $vers */
|
||||
#ifndef BLIP_BUF_H
|
||||
#define BLIP_BUF_H
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -82,4 +81,3 @@ typedef blip_t blip_buffer_t;
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -16,8 +16,7 @@
|
|||
//
|
||||
//----------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef __EQ3BAND__
|
||||
#define __EQ3BAND__
|
||||
#pragma once
|
||||
|
||||
/* ------------
|
||||
//| Structures |
|
||||
|
@ -64,4 +63,3 @@ extern void init_3band_state(EQSTATE * es, int lowfreq, int highfreq,
|
|||
extern double do_3band(EQSTATE * es, int sample);
|
||||
|
||||
|
||||
#endif /* #ifndef __EQ3BAND__ */
|
||||
|
|
|
@ -40,8 +40,7 @@
|
|||
* version: 1.0
|
||||
*/
|
||||
|
||||
#ifndef OPLL_H
|
||||
#define OPLL_H
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
@ -212,4 +211,3 @@ typedef struct {
|
|||
void OPLL_Reset(opll_t *chip, uint32_t chip_type);
|
||||
void OPLL_Clock(opll_t *chip, int32_t *buffer);
|
||||
void OPLL_Write(opll_t *chip, uint32_t port, uint8_t data);
|
||||
#endif
|
||||
|
|
|
@ -9,8 +9,7 @@
|
|||
**
|
||||
*/
|
||||
|
||||
#ifndef _H_YM2413_
|
||||
#define _H_YM2413_
|
||||
#pragma once
|
||||
|
||||
extern void YM2413Init(void);
|
||||
extern void YM2413ResetChip(void);
|
||||
|
@ -20,4 +19,3 @@ extern unsigned int YM2413Read(void);
|
|||
extern unsigned char *YM2413GetContextPtr(void);
|
||||
extern unsigned int YM2413GetContextSize(void);
|
||||
|
||||
#endif /*_H_YM2413_*/
|
||||
|
|
|
@ -13,8 +13,7 @@
|
|||
**
|
||||
*/
|
||||
|
||||
#ifndef _H_YM2612_
|
||||
#define _H_YM2612_
|
||||
#pragma once
|
||||
|
||||
enum {
|
||||
YM2612_DISCRETE = 0,
|
||||
|
@ -31,4 +30,3 @@ extern unsigned int YM2612Read(void);
|
|||
extern int YM2612LoadContext(unsigned char *state);
|
||||
extern int YM2612SaveContext(unsigned char *state);
|
||||
|
||||
#endif /* _YM2612_ */
|
||||
|
|
|
@ -27,8 +27,7 @@
|
|||
* version: 1.0.9
|
||||
*/
|
||||
|
||||
#ifndef YM3438_H
|
||||
#define YM3438_H
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -209,4 +208,3 @@ Bit8u OPN2_Read(ym3438_t *chip, Bit32u port);
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -39,8 +39,7 @@
|
|||
*
|
||||
****************************************************************************************/
|
||||
|
||||
#ifndef _SYSTEM_H_
|
||||
#define _SYSTEM_H_
|
||||
#pragma once
|
||||
|
||||
#include "types.h"
|
||||
#include "sound/blip_buf.h"
|
||||
|
@ -118,4 +117,3 @@ extern void system_frame_gen(int do_skip);
|
|||
extern void system_frame_scd(int do_skip);
|
||||
extern void system_frame_sms(int do_skip);
|
||||
|
||||
#endif /* _SYSTEM_H_ */
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef Z80_H_
|
||||
#define Z80_H_
|
||||
#pragma once
|
||||
|
||||
#include "osd_cpu.h"
|
||||
|
||||
|
@ -72,5 +71,4 @@ extern void z80_set_context (void *src);
|
|||
extern void z80_set_irq_line(unsigned int state);
|
||||
extern void z80_set_nmi_line(unsigned int state);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user