Class: U3d::InstallationUtils

Inherits:
Object
  • Object
show all
Defined in:
lib/u3d/installation.rb

Class Method Summary collapse

Class Method Details

.read_version_from_unity_builtin_extra(file) ⇒ Object



143
144
145
146
147
148
149
150
151
152
153
# File 'lib/u3d/installation.rb', line 143

def self.read_version_from_unity_builtin_extra(file)
  File.open(file, "rb") do |f|
    f.seek(20)
    s = ""
    while (c = f.read(1))
      break if c == "\x00"
      s += c
    end
    s
  end
end