Disable a bunch of function replacements.

These are just for speed, let's turn them off.  Using a flag because:
 * I think there's still some issue with savestates, not sure.
 * We might swap this flag to a separate option.
This commit is contained in:
Unknown W. Brackets
2014-08-03 13:12:45 -07:00
parent f198a7f587
commit d060a06fa6
4 changed files with 41 additions and 36 deletions
+6 -4
View File
@@ -39,11 +39,13 @@
typedef int (* ReplaceFunc)();
enum {
REPFLAG_ALLOWINLINE = 1,
// Note that this will re-execute in a funciton that loops at start.
REPFLAG_HOOKENTER = 2,
REPFLAG_ALLOWINLINE = 0x01,
// Used to keep things around but disable them.
REPFLAG_DISABLED = 0x02,
// Note that this will re-execute in a function that loops at start.
REPFLAG_HOOKENTER = 0x04,
// Only hooks jr ra, so only use on funcs that have that.
REPFLAG_HOOKEXIT = 4,
REPFLAG_HOOKEXIT = 0x08,
};
// Kind of similar to HLE functions but with different data.