mkxp-z/scripts/preload/ruby18_wrap.rb
Splendide Imaginarius 7dd50c8546
Add preload scripts (#6)
* Add preload scripts

At least one game in the wild requires both of these preload scripts to run.

* Add Ancurio's win32 preload script

At least one game in the wild requires this preload script to run on Linux.

* Relicense my preload scripts under CC0

* Clarify preload script docs in mkxp.json

* Move preload scripts to "scripts/preload"

* Fix permissions on preload scripts

* Fix preloadScript paths in mkxp.json example

* Apply suggestions from code review

Co-authored-by: WaywardHeart <WaywardHeart@outlook.com>

---------

Co-authored-by: struma <ruffle-brasher-0r@icloud.com>
Co-authored-by: WaywardHeart <WaywardHeart@outlook.com>
2023-07-20 12:16:29 -04:00

17 lines
565 B
Ruby

# ruby18_wrap.rb
# Author: Splendide Imaginarius (2022)
# Creative Commons CC0: To the extent possible under law, Splendide Imaginarius
# has waived all copyright and related or neighboring rights to ruby18_wrap.rb.
# https://creativecommons.org/publicdomain/zero/1.0/
# This preload script provides functions that existed in RPG Maker's Ruby v1.8,
# but were renamed in the current Ruby version used in mkxp-z, so that games
# (or other preload scripts) that expect Ruby v1.8's function names can find
# them.
class Hash
def index(*args)
key(*args)
end
end