mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 14:14:59 +00:00
Fixed compiler always triggering
This commit is contained in:
20
Data/Scripts/001_Technical/001_MKXP_Compatibility.rb
Normal file
20
Data/Scripts/001_Technical/001_MKXP_Compatibility.rb
Normal file
@@ -0,0 +1,20 @@
|
||||
$MKXP = !!defined?(System)
|
||||
|
||||
def mkxp?
|
||||
return $MKXP
|
||||
end
|
||||
|
||||
CHARACTER_OFFSETS = {
|
||||
"p" => [0, 2],
|
||||
"g" => [0, 2],
|
||||
"y" => [0, 2],
|
||||
"q" => [0, 2]
|
||||
}
|
||||
|
||||
def pbSetWindowText(string)
|
||||
if mkxp?
|
||||
System.set_window_title(string || System.game_title)
|
||||
else
|
||||
Win32API.SetWindowText(string || "RGSS Player")
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user