| 1 |
|
| 2 |
|
| 3 |
#ifndef ZTERP_PATCHES_H |
| 4 |
#define ZTERP_PATCHES_H |
| 5 |
|
| 6 |
#include <exception> |
| 7 |
#include <stdexcept> |
| 8 |
#include <string> |
| 9 |
|
| 10 |
namespace PatchStatus { |
| 11 |
class SyntaxError : public std::runtime_error { |
| 12 |
public: |
| 13 |
explicit SyntaxError(const std::string &what) : std::runtime_error(what) { |
| 14 |
} |
| 15 |
}; |
| 16 |
class NotFound : public std::exception { |
| 17 |
}; |
| 18 |
} |
| 19 |
|
| 20 |
void apply_patches(); |
| 21 |
void apply_v6_patches(); |
| 22 |
void apply_user_patch(std::string patchstr); |
| 23 |
void patch_load_file(const std::string &file); |
| 24 |
|
| 25 |
#endif |