SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
Core/cheat_search.h
1 #pragma once
2 #ifndef GB_DISABLE_CHEAT_SEARCH
3 #include "defs.h"
4 #include <stdint.h>
5 #include <stdbool.h>
6 #include <stddef.h>
7
8 typedef struct {
9 uint16_t addr;
10 uint16_t bank;
11 uint16_t value;
12 } GB_cheat_search_result_t;
13
14 typedef enum {
15 GB_CHEAT_SEARCH_DATA_TYPE_8BIT = 0,
16 GB_CHEAT_SEARCH_DATA_TYPE_16BIT = 1,
17 GB_CHEAT_SEARCH_DATA_TYPE_BE_BIT = 2, // Not used alone
18 GB_CHEAT_SEARCH_DATA_TYPE_16BIT_BE = GB_CHEAT_SEARCH_DATA_TYPE_16BIT | GB_CHEAT_SEARCH_DATA_TYPE_BE_BIT,
19 } GB_cheat_search_data_type_t;
20
21 void GB_cheat_search_reset(GB_gameboy_t *gb);
22 bool GB_cheat_search_filter(GB_gameboy_t *gb, const char *expression, GB_cheat_search_data_type_t data_type);
23 size_t GB_cheat_search_result_count(GB_gameboy_t *gb);
24 void GB_cheat_search_get_results(GB_gameboy_t *gb, GB_cheat_search_result_t *results);
25 #endif
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.