Fixed game not launching when packaged

This commit is contained in:
2020-05-04 11:56:26 -05:00
parent a3b4c6e651
commit c1eb02a106
3 changed files with 5 additions and 3 deletions

View File

@@ -131,8 +131,9 @@ require_relative "lib/window"
require_relative "lib/tools/asset_viewer"
require_relative "lib/tools/map_editor"
# Don't launch game if __FILE__ != launching command
if __FILE__ == $0
# Don't launch game if IMICFPS_SERVER_MODE is defined
# or if game is being packaged
unless defined?(IMICFPS_SERVER_MODE) or defined?(Ocra)
if ARGV.join.include?("--profile")
begin
require "ruby-prof"