2019-09-24 21:59:36 +00:00
|
|
|
/*
|
|
|
|
Created on: Sep 23, 2019
|
|
|
|
|
|
|
|
Copyright 2019 flyinghead
|
|
|
|
|
|
|
|
This file is part of reicast.
|
|
|
|
|
|
|
|
reicast 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.
|
|
|
|
|
|
|
|
reicast 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 reicast. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
struct Cheat
|
|
|
|
{
|
|
|
|
const char *game_id;
|
2019-09-27 12:41:59 +00:00
|
|
|
const char *area_or_version;
|
2019-09-24 21:59:36 +00:00
|
|
|
u32 addresses[16];
|
|
|
|
u32 values[16];
|
|
|
|
};
|
|
|
|
|
|
|
|
class CheatManager
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CheatManager() : _widescreen_cheat(nullptr) {}
|
|
|
|
bool Reset(); // Returns true if using 16:9 anamorphic screen ratio
|
|
|
|
void Apply();
|
|
|
|
private:
|
|
|
|
static const Cheat _widescreen_cheats[];
|
2020-05-15 18:33:00 +00:00
|
|
|
static const Cheat _naomi_widescreen_cheats[];
|
2019-09-24 21:59:36 +00:00
|
|
|
const Cheat *_widescreen_cheat;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern CheatManager cheatManager;
|