physfs/test/test_physfs.rb

20 lines
315 B
Ruby
Raw Normal View History

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)