updated documentation

This commit is contained in:
ekeeke31 2008-12-12 15:38:04 +00:00
parent 4613223510
commit 2472adacdd
11 changed files with 21 additions and 23 deletions

View File

@ -66,7 +66,7 @@ t_config config;
extern void config_save(); extern void config_save();
extern void config_load(); extern void config_load();
extern void set_config_defaults(void); extern void set_config_defaults(void);
extern bool fat_enabled;
#endif /* _CONFIG_H_ */ #endif /* _CONFIG_H_ */

View File

@ -88,7 +88,6 @@ void memfile_autosave()
ManageState(0,config.freeze_auto); ManageState(0,config.freeze_auto);
SILENT = 0; SILENT = 0;
return;
} }
@ -605,7 +604,7 @@ int ManageState (u8 direction, u8 device)
CARD_Unmount (CARDSLOT); CARD_Unmount (CARDSLOT);
/*** Load State ***/ /*** Load State ***/
state_load(&savebuffer[2112]); state_load(&savebuffer[2112]);
/*** Inform user ***/ /*** Inform user ***/
sprintf (action, "Loaded %d bytes successfully", size); sprintf (action, "Loaded %d bytes successfully", size);

View File

@ -344,7 +344,6 @@ u8 SILENT = 0;
void SetScreen () void SetScreen ()
{ {
VIDEO_SetNextFramebuffer (xfb[whichfb]); VIDEO_SetNextFramebuffer (xfb[whichfb]);
VIDEO_Flush (); VIDEO_Flush ();
VIDEO_WaitVSync (); VIDEO_WaitVSync ();

View File

@ -1,7 +1,7 @@
/**************************************************************************** /****************************************************************************
* legal.c * legal.c
* *
* generic legal informations screen * legal informations screen
* *
* code by Softdev (2006), Eke-Eke (2007,2008) * code by Softdev (2006), Eke-Eke (2007,2008)
* *

View File

@ -234,11 +234,11 @@ void miscmenu ()
if (config.bios_enabled & 1) sprintf (items[2], "Use BIOS: ON"); if (config.bios_enabled & 1) sprintf (items[2], "Use BIOS: ON");
else sprintf (items[2], "Use BIOS: OFF"); else sprintf (items[2], "Use BIOS: OFF");
sprintf (items[3], "SVP Cycles: %d", SVP_cycles); sprintf (items[3], "SVP Cycles: %d", SVP_cycles);
if (config.sram_auto == 0) sprintf (items[4], "Auto SRAM: SDCARD"); if (config.sram_auto == 0) sprintf (items[4], "Auto SRAM: FAT");
else if (config.sram_auto == 1) sprintf (items[4], "Auto SRAM: MCARD A"); else if (config.sram_auto == 1) sprintf (items[4], "Auto SRAM: MCARD A");
else if (config.sram_auto == 2) sprintf (items[4], "Auto SRAM: MCARD B"); else if (config.sram_auto == 2) sprintf (items[4], "Auto SRAM: MCARD B");
else sprintf (items[4], "Auto SRAM: OFF"); else sprintf (items[4], "Auto SRAM: OFF");
if (config.freeze_auto == 0) sprintf (items[5], "Auto FREEZE: SDCARD"); if (config.freeze_auto == 0) sprintf (items[5], "Auto FREEZE: FAT");
else if (config.freeze_auto == 1) sprintf (items[5], "Auto FREEZE: MCARD A"); else if (config.freeze_auto == 1) sprintf (items[5], "Auto FREEZE: MCARD A");
else if (config.freeze_auto == 2) sprintf (items[5], "Auto FREEZE: MCARD B"); else if (config.freeze_auto == 2) sprintf (items[5], "Auto FREEZE: MCARD B");
else sprintf (items[5], "Auto FREEZE: OFF"); else sprintf (items[5], "Auto FREEZE: OFF");
@ -816,7 +816,7 @@ int loadsavemenu (int which)
while (quit == 0) while (quit == 0)
{ {
if (device == 0) sprintf(items[0], "Device: SDCARD"); if (device == 0) sprintf(items[0], "Device: FAT");
else if (device == 1) sprintf(items[0], "Device: MCARD A"); else if (device == 1) sprintf(items[0], "Device: MCARD A");
else if (device == 2) sprintf(items[0], "Device: MCARD B"); else if (device == 2) sprintf(items[0], "Device: MCARD B");

View File

@ -22,9 +22,9 @@
***************************************************************************/ ***************************************************************************/
#include "shared.h" #include "shared.h"
#include "gcaram.h"
#include "font.h" #include "font.h"
#include "history.h" #include "history.h"
#include "gcaram.h"
#ifdef HW_DOL #ifdef HW_DOL
#include "dvd.h" #include "dvd.h"
@ -47,7 +47,7 @@ void Power_Off(void)
/*************************************************************************** /***************************************************************************
* Genesis Virtual Machine * Genesis Plus Virtual Machine
* *
***************************************************************************/ ***************************************************************************/
static void load_bios() static void load_bios()
@ -57,7 +57,7 @@ static void load_bios()
/* reset BIOS found flag */ /* reset BIOS found flag */
config.bios_enabled &= ~2; config.bios_enabled &= ~2;
/* open file */ /* open BIOS file */
sprintf (pathname, "%s/BIOS.bin",DEFAULT_PATH); sprintf (pathname, "%s/BIOS.bin",DEFAULT_PATH);
FILE *fp = fopen(pathname, "rb"); FILE *fp = fopen(pathname, "rb");
if (fp == NULL) return; if (fp == NULL) return;
@ -82,9 +82,12 @@ static void init_machine (void)
/* Allocate cart_rom here */ /* Allocate cart_rom here */
cart_rom = memalign(32, 10 * 1024 * 1024); cart_rom = memalign(32, 10 * 1024 * 1024);
/* BIOS support */
load_bios();
/* allocate global work bitmap */ /* allocate global work bitmap */
memset (&bitmap, 0, sizeof (bitmap)); memset (&bitmap, 0, sizeof (bitmap));
bitmap.width = 360 * 2; bitmap.width = 720;
bitmap.height = 576; bitmap.height = 576;
bitmap.depth = 16; bitmap.depth = 16;
bitmap.granularity = 2; bitmap.granularity = 2;
@ -93,15 +96,11 @@ static void init_machine (void)
bitmap.viewport.h = 224; bitmap.viewport.h = 224;
bitmap.viewport.x = 0; bitmap.viewport.x = 0;
bitmap.viewport.y = 0; bitmap.viewport.y = 0;
bitmap.remap = 1;
bitmap.data = texturemem; bitmap.data = texturemem;
/* default system */ /* default system */
input.system[0] = SYSTEM_GAMEPAD; input.system[0] = SYSTEM_GAMEPAD;
input.system[1] = SYSTEM_GAMEPAD; input.system[1] = SYSTEM_GAMEPAD;
/* BIOS support */
load_bios();
} }
/************************************************** /**************************************************
@ -175,7 +174,7 @@ int main (int argc, char *argv[])
set_history_defaults(); set_history_defaults();
history_load(); history_load();
/* Initialize Genesis Virtual Machine */ /* Initialize Virtual Machine */
init_machine (); init_machine ();
/* Load any injected rom */ /* Load any injected rom */

View File

@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* ogc_video.c * ogc_audio.c
* *
* Genesis Plus GX audio support * Genesis Plus GX audio support
* *

View File

@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* ogc_video.c * ogc_audio.c
* *
* Genesis Plus GX audio support * Genesis Plus GX audio support
* *

View File

@ -35,7 +35,7 @@ sms_ntsc_setup_t sms_setup;
sms_ntsc_t sms_ntsc; sms_ntsc_t sms_ntsc;
/*** PAL 50hz flag ***/ /*** PAL 50hz flag ***/
int gc_pal = 0; BOOL gc_pal = 0;
/*** VI ***/ /*** VI ***/
unsigned int *xfb[2]; /*** Double buffered ***/ unsigned int *xfb[2]; /*** Double buffered ***/
@ -44,9 +44,9 @@ GXRModeObj *vmode; /*** Menu video mode ***/
u8 *texturemem; /*** Texture Data ***/ u8 *texturemem; /*** Texture Data ***/
/*** GX ***/ /*** GX ***/
#define TEX_WIDTH 360 * 2 #define TEX_WIDTH 720
#define TEX_HEIGHT 576 #define TEX_HEIGHT 576
#define TEX_SIZE TEX_WIDTH * TEX_HEIGHT * 2 #define TEX_SIZE (TEX_WIDTH * TEX_HEIGHT * 2)
#define DEFAULT_FIFO_SIZE 256 * 1024 #define DEFAULT_FIFO_SIZE 256 * 1024
#define HASPECT 320 #define HASPECT 320
#define VASPECT 240 #define VASPECT 240

View File

@ -28,7 +28,7 @@ extern void ogc_video__init(void);
extern void ogc_video__update(void); extern void ogc_video__update(void);
extern void ogc_video__reset(void); extern void ogc_video__reset(void);
extern int gc_pal; extern BOOL gc_pal;
extern unsigned int *xfb[2]; extern unsigned int *xfb[2];
extern int whichfb; extern int whichfb;
extern GXRModeObj *tvmodes[6]; extern GXRModeObj *tvmodes[6];

View File

@ -41,5 +41,6 @@ extern int peripherals;
extern int frameticker; extern int frameticker;
extern int FramesPerSecond; extern int FramesPerSecond;
extern int Shutdown; extern int Shutdown;
extern bool fat_enabled;
#endif /* _OSD_H_ */ #endif /* _OSD_H_ */