fork/m-overlay

git clone https://git.julia.blue/fork/m-overlay

BkacjiosMerge pull request #75 from little512/master36e090b

settings-overhaul
648 B28 linesraw
1local memory = require("memory")
2
3local zce = {}
4
5function zce.isZce()
6    return memory.gameid == "PZLE01" or memory.gameid == "PZLJ01"
7end
8
9function zce.isOot()
10    return memory.oot.ucode == 74 -- "J" is the ucode version for oot
11end
12
13function zce.isMajora()
14    return memory.mm.ucode == 73 -- "I" is the ucode version for majora's mask
15end
16
17function zce.isZ1()
18    -- "Q" is the first letter of the QFC version, I have no idea what that is
19    -- but it loads in the same place every time from what I've found
20    return memory.z1.qfc == 81 
21end
22
23function zce.isZ2()
24    -- same concept as above
25    return memory.z2.qfc == 81
26end
27
28return zce