File: cheats.h

package info (click to toggle)
nestopia 1.52.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 12,140 kB
  • sloc: cpp: 127,444; xml: 27,234; ansic: 3,635; makefile: 949; sh: 19
file content (36 lines) | stat: -rw-r--r-- 811 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef _CHEATS_H_
#define _CHEATS_H_

#include <string>
#include <vector>

#include "core/api/NstApiEmulator.hpp"
#include "core/api/NstApiCheats.hpp"
#include "core/api/NstApiDipSwitches.hpp"
#include "core/NstStream.hpp"
#include "core/NstXml.hpp"

using namespace Nes::Api;

typedef Nes::Core::Xml Xml;

typedef struct NstCheat {
    bool enabled;
    std::wstring gg;
    std::wstring par;
    unsigned short address;
    unsigned char value;
    unsigned char compare;
    std::wstring description;
} NstCheat;

void nst_cheats_init(const char *cheatpath);
void nst_cheats_save(const char *cheatpath);
void nst_cheats_refresh();
void nst_cheats_code_gg_add(const std::wstring data);
void nst_cheats_code_par_add(const std::wstring data);

// DIP Switches
void nst_dip_handle(const char *dippath);

#endif