| 1 |
|
| 2 |
|
| 3 |
#ifndef ZTERP_META_H |
| 4 |
#define ZTERP_META_H |
| 5 |
|
| 6 |
#include <string> |
| 7 |
#include <utility> |
| 8 |
|
| 9 |
#include "iff.h" |
| 10 |
#include "io.h" |
| 11 |
#include "types.h" |
| 12 |
|
| 13 |
enum class MetaResult { |
| 14 |
Rerequest, |
| 15 |
Say, |
| 16 |
}; |
| 17 |
|
| 18 |
std::pair<MetaResult, std::string> handle_meta_command(const uint16_t *string, uint8_t len); |
| 19 |
|
| 20 |
#ifndef ZTERP_NO_CHEAT |
| 21 |
bool cheat_add(const std::string &how, bool print); |
| 22 |
bool cheat_find_freeze(uint32_t addr, uint16_t &val); |
| 23 |
#endif |
| 24 |
|
| 25 |
#ifndef ZTERP_NO_WATCHPOINTS |
| 26 |
void watch_check(uint16_t addr, unsigned long oldval, unsigned long newval); |
| 27 |
#endif |
| 28 |
|
| 29 |
IFF::TypeID meta_write_bfnt(IO &savefile); |
| 30 |
void meta_read_bfnt(IO &io, uint32_t size); |
| 31 |
|
| 32 |
void init_meta(bool first_run); |
| 33 |
|
| 34 |
#endif |