56 lines
1.2 KiB
C
56 lines
1.2 KiB
C
|
|
#ifndef __MINIMIG_CONFIG_H__
|
|
#define __MINIMIG_CONFIG_H__
|
|
|
|
#include "file_io.h"
|
|
|
|
typedef struct
|
|
{
|
|
unsigned char lores;
|
|
unsigned char hires;
|
|
} filterTYPE;
|
|
|
|
typedef struct
|
|
{
|
|
unsigned char speed;
|
|
unsigned char drives;
|
|
} floppyTYPE;
|
|
|
|
typedef struct
|
|
{
|
|
unsigned char enabled; // 0: Disabled, 1: Hard file, 2: MMC (entire card), 3-6: Partition 1-4 of MMC card
|
|
unsigned char present;
|
|
char long_name[1024];
|
|
} hardfileTYPE;
|
|
|
|
typedef struct
|
|
{
|
|
char id[8];
|
|
unsigned long version;
|
|
char kickstart[1024];
|
|
filterTYPE filter;
|
|
unsigned char memory;
|
|
unsigned char chipset;
|
|
floppyTYPE floppy;
|
|
unsigned char disable_ar3;
|
|
unsigned char enable_ide;
|
|
unsigned char scanlines;
|
|
unsigned char audio;
|
|
hardfileTYPE hardfile[2];
|
|
unsigned char cpu;
|
|
unsigned char autofire;
|
|
} configTYPE;
|
|
|
|
extern configTYPE config;
|
|
extern char DebugMode;
|
|
|
|
char UploadKickstart(char *name);
|
|
char UploadActionReplay();
|
|
unsigned char LoadConfiguration(int num); // Can supply NULL to use filename previously set by slot number
|
|
unsigned char SaveConfiguration(int num); // Can supply NULL to use filename previously set by slot number
|
|
unsigned char ConfigurationExists(int num);
|
|
void ApplyConfiguration(char reloadkickstart);
|
|
void MinimigReset();
|
|
|
|
#endif
|