Added class GameData::Status

This commit is contained in:
Maruno17
2021-02-15 23:20:51 +00:00
parent 8b5b9d5fc4
commit 6a8e4fcfa5
49 changed files with 468 additions and 430 deletions

View File

@@ -5,7 +5,7 @@ class Hangup < Exception; end
def strsplit(str, re)
ret = []
tstr = str
while re = ~tstr
while re =~ tstr
ret[ret.length] = $~.pre_match
tstr = $~.post_match
end
@@ -279,7 +279,7 @@ module BitmapCache
def self.load_bitmap(path, hue = 0, failsafe = false)
cached = true
path = -canonicalize(path) # Creates a frozen string from the path, to ensure identical paths are treated as identical.
path = canonicalize(path)
objPath = fromCache(path)
if !objPath
# TODO: Delete this in Ruby 2+.