--- hatari/src/includes/configuration.h 2019/04/09 08:49:32 1.1.1.14 +++ hatari/src/includes/configuration.h 2019/04/09 08:55:42 1.1.1.19 @@ -1,21 +1,27 @@ /* Hatari - configuration.h - This file is distributed under the GNU Public License, version 2 or at - your option any later version. Read the file gpl.txt for details. + This file is distributed under the GNU General Public License, version 2 + or at your option any later version. Read the file gpl.txt for details. */ #ifndef HATARI_CONFIGURATION_H #define HATARI_CONFIGURATION_H +/* if header's struct contents depend on configuration options, header must include config.h */ +#include "config.h" + /* Logging and tracing */ typedef struct { char sLogFileName[FILENAME_MAX]; char sTraceFileName[FILENAME_MAX]; + int nExceptionDebugMask; int nTextLogLevel; int nAlertDlgLogLevel; bool bConfirmQuit; + bool bNatFeats; + bool bConsoleWindow; /* for now, used just for Windows */ } CNF_LOG; @@ -25,6 +31,8 @@ typedef struct int nNumberBase; int nDisasmLines; int nMemdumpLines; + int nDisasmOptions; + bool bDisasmUAE; } CNF_DEBUGGER; @@ -32,6 +40,7 @@ typedef struct typedef struct { char szTosImageFileName[FILENAME_MAX]; + bool bPatchTos; char szCartridgeImageFileName[FILENAME_MAX]; } CNF_ROM; @@ -41,6 +50,7 @@ typedef struct { bool bEnableMicrophone; bool bEnableSound; + bool bEnableSoundSync; int nPlaybackFreq; int SdlAudioBufferSize; char szYMCaptureFileName[FILENAME_MAX]; @@ -93,6 +103,10 @@ typedef enum { SHORTCUT_LOADMEM, SHORTCUT_SAVEMEM, SHORTCUT_INSERTDISKA, + SHORTCUT_JOY_0, + SHORTCUT_JOY_1, + SHORTCUT_PAD_A, + SHORTCUT_PAD_B, SHORTCUT_KEYS, /* number of shortcuts */ SHORTCUT_NONE } SHORTCUTKEYIDX; @@ -107,6 +121,7 @@ typedef struct typedef struct { int nMemorySize; + int nTTRamSize; bool bAutoSave; char szMemoryCaptureFileName[FILENAME_MAX]; char szAutoSaveFileName[FILENAME_MAX]; @@ -120,6 +135,7 @@ typedef enum JOYSTICK_REALSTICK, JOYSTICK_KEYBOARD } JOYSTICKMODE; +#define JOYSTICK_MODES 3 typedef struct { @@ -130,7 +146,16 @@ typedef struct int nKeyCodeUp, nKeyCodeDown, nKeyCodeLeft, nKeyCodeRight, nKeyCodeFire; } JOYSTICK; -#define JOYSTICK_COUNT 6 +enum +{ + JOYID_JOYSTICK0, + JOYID_JOYSTICK1, + JOYID_STEPADA, + JOYID_STEPADB, + JOYID_PARPORT1, + JOYID_PARPORT2, + JOYSTICK_COUNT +}; typedef struct { @@ -152,7 +177,11 @@ typedef enum typedef struct { bool bAutoInsertDiskB; - bool bSlowFloppy; /* true to slow down FDC emulation */ + bool FastFloppy; /* true to speed up FDC emulation */ + bool EnableDriveA; + bool EnableDriveB; + int DriveA_NumberOfHeads; + int DriveB_NumberOfHeads; WRITEPROTECTION nWriteProtection; char szDiskZipPath[MAX_FLOPPYDRIVES][FILENAME_MAX]; char szDiskFileName[MAX_FLOPPYDRIVES][FILENAME_MAX]; @@ -160,32 +189,43 @@ typedef struct } CNF_DISKIMAGE; -/* Hard drives configuration */ -#define MAX_HARDDRIVES 23 +/* Hard drives configuration: C: - Z: */ +#define MAX_HARDDRIVES 24 +#define DRIVE_C 0 +#define DRIVE_SKIP -1 typedef enum { - DRIVE_C, - DRIVE_D, - DRIVE_E, - DRIVE_F -} DRIVELETTER; + GEMDOS_NOP, + GEMDOS_UPPER, + GEMDOS_LOWER +} GEMDOS_CHR_CONV; typedef struct { - int nHardDiskDir; + int nGemdosDrive; bool bUseHardDiskDirectories; - bool bUseHardDiskImage; bool bUseIdeMasterHardDiskImage; bool bUseIdeSlaveHardDiskImage; WRITEPROTECTION nWriteProtection; + GEMDOS_CHR_CONV nGemdosCase; + bool bFilenameConversion; bool bBootFromHardDisk; char szHardDiskDirectories[MAX_HARDDRIVES][FILENAME_MAX]; - char szHardDiskImage[FILENAME_MAX]; char szIdeMasterHardDiskImage[FILENAME_MAX]; char szIdeSlaveHardDiskImage[FILENAME_MAX]; } CNF_HARDDISK; +/* SCSI/ACSI configuration */ +#define MAX_ACSI_DEVS 8 +#define MAX_SCSI_DEVS 8 + +typedef struct +{ + bool bUseDevice; + char sDeviceFile[FILENAME_MAX]; +} CNF_SCSIDEV; + /* Falcon register $FFFF8006 bits 6 & 7 (mirrored in $FFFF82C0 bits 0 & 1): * 00 Monochrome * 01 RGB - Colormonitor @@ -212,6 +252,7 @@ typedef struct int nFrameSkips; bool bFullScreen; bool bKeepResolution; + bool bKeepResolutionST; bool bAllowOverscan; bool bAspectCorrect; bool bUseExtVdiResolutions; @@ -220,11 +261,17 @@ typedef struct int nVdiColors; int nVdiWidth; int nVdiHeight; + bool bMouseWarp; bool bShowStatusbar; bool bShowDriveLed; bool bCrop; + bool bForceMax; int nMaxWidth; int nMaxHeight; +#if WITH_SDL2 + int nRenderScaleQuality; + bool bUseVsync; +#endif } CNF_SCREEN; @@ -232,7 +279,6 @@ typedef struct typedef struct { bool bEnablePrinting; - bool bPrintToFile; char szPrintToFileName[FILENAME_MAX]; } CNF_PRINTER; @@ -253,7 +299,7 @@ typedef enum MACHINE_STE, MACHINE_TT, MACHINE_FALCON, - MACHINE_MEGA_STE, + MACHINE_MEGA_STE } MACHINETYPE; typedef enum @@ -266,10 +312,10 @@ typedef enum #if ENABLE_WINUAE_CPU typedef enum { - FPU_NONE, - FPU_68881, - FPU_68882, - FPU_CPU + FPU_NONE = 0, + FPU_68881 = 68881, + FPU_68882 = 68882, + FPU_CPU = 68040 } FPUTYPE; #endif @@ -283,10 +329,11 @@ typedef struct DSPTYPE nDSPType; /* how to "emulate" DSP */ bool bRealTimeClock; bool bPatchTimerD; + bool bFastBoot; /* Enable to patch TOS for fast boot */ bool bFastForward; - + bool bAddressSpace24; /* Always set to true with old UAE cpu */ + #if ENABLE_WINUAE_CPU - bool bAddressSpace24; bool bCycleExactCpu; FPUTYPE n_FPUType; bool bCompatibleFPU; /* More compatible FPU */ @@ -316,6 +363,8 @@ typedef struct CNF_MEMORY Memory; CNF_DISKIMAGE DiskImage; CNF_HARDDISK HardDisk; + CNF_SCSIDEV Acsi[MAX_ACSI_DEVS]; + CNF_SCSIDEV Scsi[MAX_SCSI_DEVS]; CNF_ROM Rom; CNF_RS232 RS232; CNF_PRINTER Printer;