diff options
| author | Benjamin Brown <foolsh./***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
* \/ \/ \/ \/ \/
* $Id$
*
* Copyright (C) 2009 by Maurus Cuelenaere
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
****************************************************************************/
#ifndef __PLUGINLIB_EXIT_H__
#define __PLUGINLIB_EXIT_H__
#include "config.h"
#ifndef SIMULATOR
#include "../../codecs/lib/setjmp.h"
#else
#include <setjmp.h>
#endif
/* PLUGINLIB_EXIT_INIT needs to be placed as the first line in plugin_start */
#define PLUGINLIB_EXIT_INIT switch(setjmp(__exit_env)) \
{ \
case 1: \
return PLUGIN_OK; \
case 2: \
return PLUGIN_ERROR; \
case 0: | -rw-r--r-- | apps/plugins/infones/InfoNES_System.h | 75 | |
|---|
1 files changed, 75 insertions, 0 deletions
diff --git a/apps/plugins/infones/InfoNES_System.h b/apps/plugins/infones/InfoNES_System.h new file mode 100644 index 0000000..d84ef20 --- /dev/null +++ b/apps/plugins/infones/InfoNES_System.h @@ -0,0 +1,75 @@ +/*===================================================================*/ +/* */ +/* InfoNES_System.h : The function which depends on a system */ +/* */ +/* 2000/05/29 InfoNES Project ( based on pNesX ) */ +/* */ +/*===================================================================*/ + +#ifndef InfoNES_SYSTEM_H_INCLUDED +#define InfoNES_SYSTEM_H_INCLUDED + +/*-------------------------------------------------------------------*/ +/* Include files */ +/*-------------------------------------------------------------------*/ + +#include "InfoNES_Types.h" + +struct value_table_tag +{ + BYTE byValue; + BYTE byFlag; +}; + +/*-------------------------------------------------------------------*/ +/* Palette data */ +/*-------------------------------------------------------------------*/ +extern WORD NesPalette[]; + +/*-------------------------------------------------------------------*/ +/* Function prototypes */ +/*-------------------------------------------------------------------*/ + +/* Menu screen */ +int InfoNES_Menu(void); + +/* Read ROM image file */ +int InfoNES_ReadRom( const char *pszFileName ); + +/* Release a memory for ROM */ +void InfoNES_ReleaseRom(void); + +/* Transfer the contents of work frame on the screen */ +void InfoNES_LoadFrame(void); + +/* Get a joypad state */ +void InfoNES_PadState( DWORD *pdwPad1, DWORD *pdwPad2, DWORD *pdwSystem ); + +/* memcpy */ +void *InfoNES_MemoryCopy( void *dest, const void *src, int count ); + +/* memset */ +void *InfoNES_MemorySet( void *dest, int c, int count ); + +/* Print debug message */ +void InfoNES_DebugPrint( char *pszMsg ); + +/* Wait */ +void InfoNES_Wait(void); + +/* Sound Initialize */ +void InfoNES_SoundInit( void ); + +/* Sound Open */ +int InfoNES_SoundOpen( int samples_per_sync, int sample_rate ); + +/* Sound Close */ +void InfoNES_SoundClose( void ); + +/* Sound Output 5 Waves - 2 Pulse, 1 Triangle, 1 Noise, 1 DPCM */ +void InfoNES_SoundOutput(int samples, BYTE *wave1, BYTE *wave2, BYTE *wave3, BYTE *wave4, BYTE *wave5); + +/* Print system message */ +void InfoNES_MessageBox( char *pszMsg, ... ); + +#endif /* !InfoNES_SYSTEM_H_INCLUDED */ |