Skip to content

Latest commit

 

History

History
executable file
·
21 lines (14 loc) · 444 Bytes

test_physfs.pl

File metadata and controls

executable file
·
21 lines (14 loc) · 444 Bytes
 
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/perl -w
use strict;
use warnings;
use physfs;
print "testing PhysicsFS Perl bindings...\n";
print "init...\n";
physfs::init("$0") or die("physfs::init('$0'): ".physfs::getLastError()."\n");
print "user dir: ", physfs::getUserDir(), "\n";
print "base dir: ", physfs::getBaseDir(), "\n";
Mar 22, 2012
Mar 22, 2012
14
print "pref dir: ", physfs::getPrefDir("icculus.org", "test_physfs"), "\n";
15
16
17
18
19
20
print "deinit...\n";
physfs::deinit();
print "done!\n";
exit 0;