| 215 | } |
| 216 | |
| 217 | void recomputil_u32_value_hashmap_insert(uint8_t* rdram, recomp_context* ctx) { |
| 218 | uint32_t mapkey = _arg<0, uint32_t>(rdram, ctx); |
| 219 | uint32_t key = _arg<1, uint32_t>(rdram, ctx); |
| 220 | uint32_t value = _arg<2, uint32_t>(rdram, ctx); |
| 221 | |
| 222 | U32ValueMap* map; |
| 223 | if (!u32_value_hashmaps.get(mapkey, &map)) { |
| 224 | HANDLE_INVALID_ERROR(); |
| 225 | } |
| 226 | |
| 227 | _return(ctx, map->insert(key, value)); |
| 228 | } |
| 229 | |
| 230 | void recomputil_u32_value_hashmap_get(uint8_t* rdram, recomp_context* ctx) { |
| 231 | uint32_t mapkey = _arg<0, uint32_t>(rdram, ctx); |