File size: 629 Bytes
8739cbb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
luasymbols=registerSymbolLookupCallback(function(str)
  if str then
    local firstchar=str:sub(1,1)
    
    if (firstchar=='\'') or (firstchar=='\"') then
      return nil
    end
  
    local c='return '..str
    local lc=loadstring(c)
    if lc then
      local isvalid,result=pcall(lc)
      if isvalid then
        return result
      else
        return nil
      end
    end
  end
end, slNotSymbol) 

registerEXETrainerFeature('Lua Symbols', function()
  local r={}
  r[1]={}
  r[1].PathToFile=getCheatEngineDir()..[[autorun\luasymbols.lua]]
  r[1].RelativePath=[[autorun\]]
  
  return r
end)