mirror of
https://github.com/wavemotion-dave/A7800DS.git
synced 2025-04-02 10:42:14 -04:00
54 lines
1.8 KiB
C
54 lines
1.8 KiB
C
// =====================================================================================
|
|
// Copyright (c) 2022-2024 Dave Bernazzani (wavemotion-dave)
|
|
//
|
|
// Copying and distribution of this emulator, it's source code and associated
|
|
// readme files, with or without modification, are permitted in any medium without
|
|
// royalty provided this copyright notice is used and wavemotion-dave (Phoenix-Edition),
|
|
// Alekmaul (original port) and Greg Stanton (ProSystem Emulator) are thanked profusely.
|
|
//
|
|
// A7800DS emulator is offered as-is, without any warranty.
|
|
//
|
|
// The original GPL license:
|
|
//
|
|
// 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 program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with this program; if not, write to the Free Software
|
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
// =====================================================================================
|
|
#ifndef __CONFIG_H
|
|
#define __CONFIG_H
|
|
|
|
#include <nds.h>
|
|
#include "Database.h"
|
|
#include "Cartridge.h"
|
|
|
|
// ---------------------------
|
|
// Config handling...
|
|
// ---------------------------
|
|
#define CONFIG_VER 0x0009
|
|
|
|
#define MAX_CONFIGS 680
|
|
|
|
struct AllConfig_t
|
|
{
|
|
u16 config_ver;
|
|
Database_Entry cart[MAX_CONFIGS];
|
|
u32 crc32;
|
|
};
|
|
|
|
extern struct AllConfig_t allConfigs;
|
|
|
|
void LoadConfig(void);
|
|
void ShowConfig(void);
|
|
void SaveConfig(bool bShow);
|
|
|
|
#endif
|