test_physfs.pl 444 B

12345678910111213141516171819202122
  1. #!/usr/bin/perl -w
  2. use strict;
  3. use warnings;
  4. use physfs;
  5. print "testing PhysicsFS Perl bindings...\n";
  6. print "init...\n";
  7. physfs::init("$0") or die("physfs::init('$0'): ".physfs::getLastError()."\n");
  8. print "user dir: ", physfs::getUserDir(), "\n";
  9. print "base dir: ", physfs::getBaseDir(), "\n";
  10. print "pref dir: ", physfs::getPrefDir("icculus.org", "test_physfs"), "\n";
  11. print "deinit...\n";
  12. physfs::deinit();
  13. print "done!\n";
  14. exit 0;