IceDragon200

[VXxRGSS3]RPGModuleCleaner

Jul 3rd, 2012
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.54 KB | None | 0 0
  1. # // Created By IceDragon
  2. # // Date Created : 03/19/2012
  3. # // Date Modified : 03/19/2012
  4. # // Cheat trick
  5. # // Because everytime you save your game with rmvx it changes the dll to rgss2*.dll
  6. # // You should just rename the rgss3*.dll to the equavilent 2
  7. module RPGRGSS3
  8.   # // Remap all the RGSS3 classes to the current module
  9.   RPG.constants.each { |c| const_set(c,RPG.const_get(c)) }
  10. end  
  11. module RPG
  12.   # // Store all the constants
  13.   c = constants.to_a
  14.   # // REMOVE the RGSS3 classes from this module
  15.   c.each { |c| remove_const(c) }
  16. end
Advertisement
Add Comment
Please, Sign In to add comment