(Map<Integer, Op> useropmap)
| 13 | boolean mihoyo_map = true; // TODO: hardcoded for now! |
| 14 | |
| 15 | public OpcodeMap(Map<Integer, Op> useropmap) { |
| 16 | int max = -1; |
| 17 | for(int opcode : useropmap.keySet()) { |
| 18 | max = Math.max(opcode, max); |
| 19 | } |
| 20 | map = new Op[max + 1]; |
| 21 | for(Entry<Integer, Op> entry : useropmap.entrySet()) { |
| 22 | map[entry.getKey()] = entry.getValue(); |
| 23 | } |
| 24 | setup_lookup(false); |
| 25 | } |
| 26 | |
| 27 | public OpcodeMap(Version.OpcodeMapType type) { |
| 28 | switch(type) { |
nothing calls this directly
no test coverage detected