2010-02-04 10:46:14 +01:00
|
|
|
#!/usr/bin/ruby
|
|
|
|
|
|
|
|
require 'physfs'
|
|
|
|
|
|
|
|
puts "testing PhysicsFS Ruby bindings..."
|
|
|
|
puts "init..."
|
|
|
|
|
|
|
|
Physfs.init($0)
|
|
|
|
|
|
|
|
puts "user dir: " + Physfs.getUserDir()
|
|
|
|
puts "base dir: " + Physfs.getBaseDir()
|
2012-03-22 04:30:50 +01:00
|
|
|
puts "pref dir: " + Physfs.getPrefDir("icculus.org", "test_physfs")
|
2010-02-04 10:46:14 +01:00
|
|
|
|
|
|
|
puts "deinit..."
|
|
|
|
Physfs.deinit()
|
|
|
|
|
|
|
|
puts "done!"
|
|
|
|
exit(0)
|
|
|
|
|