Browse Source

more variables are being displayed

SBird1337 7 years ago
parent
commit
b875720ec0
2 changed files with 14 additions and 0 deletions
  1. 6
    0
      patches/hooks.asm
  2. 8
    0
      src/savefile/flag_manipulation.c

+ 6
- 0
patches/hooks.asm View File

104
 .org 0x0806E584
104
 .org 0x0806E584
105
     ldr r3, =var_set_hack|1
105
     ldr r3, =var_set_hack|1
106
     bx r3
106
     bx r3
107
+    .pool
107
 
108
 
108
 .org 0x0806E680
109
 .org 0x0806E680
109
     ldr r1, =flag_set_hack|1
110
     ldr r1, =flag_set_hack|1
117
     bx r0
118
     bx r0
118
 	.pool
119
 	.pool
119
 
120
 
121
+.org 0x0806A390
122
+    ldr r3, =var_set_script_hack|1
123
+    bx r3
124
+    .pool
125
+
120
 //end of var routine
126
 //end of var routine
121
 
127
 
122
 //trainer Flag stuff
128
 //trainer Flag stuff

+ 8
- 0
src/savefile/flag_manipulation.c View File

108
         return true;
108
         return true;
109
     }
109
     }
110
     return false;
110
     return false;
111
+}
112
+
113
+bool var_set_script_hack(struct ScriptEnvironment *env)
114
+{
115
+    u16 var = script_read_halfword(env);
116
+    u16 val = script_read_halfword(env);
117
+    var_set_hack(var,val);
118
+    return 0;
111
 }
119
 }