mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-03-28 14:56:22 +01:00

* 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>
17 lines
565 B
Ruby
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
|