diff options
author | neonloop | 2021-08-30 15:25:52 +0000 |
---|---|---|
committer | neonloop | 2021-08-30 15:25:52 +0000 |
commit | 05c5d66301f14bd8ae50490ebdc7e32e371f851b (patch) | |
tree | 2a7a376bf0c7e32fcd0c16bb931d4ac2f046269b /core.h | |
parent | 8a8a5726cef8b8cb3c32e670fd200d49f3b04c28 (diff) | |
download | picoarch-05c5d66301f14bd8ae50490ebdc7e32e371f851b.tar.gz picoarch-05c5d66301f14bd8ae50490ebdc7e32e371f851b.tar.bz2 picoarch-05c5d66301f14bd8ae50490ebdc7e32e371f851b.zip |
Adds cheat support
Cheats use RetroArch .cht file format. Cheats are loaded from
[save_dir]/cheats/[name].cht, where name is the name of the ROM
without extension. Cheat menu only shows when cheat file is found.
Diffstat (limited to 'core.h')
-rw-r--r-- | core.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1,6 +1,7 @@ #ifndef _CORE_H__ #define _CORE_H__ +#include "cheat.h" #include "libretro.h" #include "main.h" @@ -32,6 +33,7 @@ struct core_cbs { extern struct core_cbs current_core; extern char core_path[MAX_PATH]; extern char content_path[MAX_PATH]; +extern struct cheats *cheats; extern double sample_rate; extern double frame_rate; @@ -60,6 +62,7 @@ bool disc_replace_index(unsigned index, const char *content_path); void core_extract_name(const char* core_file, char *buf, size_t len); int core_load(const char *corefile); int core_load_content(const char *path); +void core_apply_cheats(struct cheats *cheats); void core_unload_content(void); const char **core_extensions(void); void core_unload(void); |