| 121 | } |
| 122 | |
| 123 | bool draw_box(int x, int y, int w, int h, int t, int r, int g, int b) |
| 124 | { |
| 125 | NULL_MEMORY instructions; |
| 126 | instructions.write = FALSE; |
| 127 | instructions.read = FALSE; |
| 128 | instructions.req_base = FALSE; |
| 129 | instructions.draw_box = TRUE; |
| 130 | |
| 131 | instructions.x = x; |
| 132 | instructions.y = y; |
| 133 | instructions.w = w; |
| 134 | instructions.h = h; |
| 135 | instructions.t = t; |
| 136 | |
| 137 | instructions.r = r; |
| 138 | instructions.g = g; |
| 139 | instructions.b = b; |
| 140 | |
| 141 | call_hook(&instructions); |
| 142 | |
| 143 | return true; |
| 144 | } |
| 145 | |
| 146 | template<typename S> |
| 147 | bool write(UINT_PTR write_address, const S& value) |