(Lua, ASMx86) Replication of Devil May Cry 4's debug functions for it's re-released version.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 4 година
пре 4 година
пре 4 година
пре 4 година
12345678910111213141516171819202122232425262728293031
  1. local auto = {}
  2. --Inputs: (Address list of Cheat Engine, Entry description)
  3. function auto.set(entries, str_entry_description)
  4. local entry = entries.getMemoryRecordByDescription(str_entry_description)
  5. if entry ~= nil then
  6. if entry.Active ~= true then
  7. entry.Active = true
  8. else
  9. --if already active, it needs a toggle otherwise effect won't occur.
  10. entry.Active = false
  11. entry.Active = true
  12. end
  13. end
  14. end
  15. function auto.enable_favorites()
  16. --This means the trainer will read in a text file from the same directory.
  17. --You can edit or append to this if
  18. --you wish to store files in a different folder instead.
  19. local favoritesfile = TrainerOrigin .. "favorites.txt"
  20. local records = getAddressList()
  21. local file = io.open(favoritesfile, "r")
  22. if file ~= nil then
  23. for line in io.lines(favoritesfile) do
  24. auto.set(records, line)
  25. end
  26. end
  27. end
  28. return auto