Mercurial > audlegacy-plugins
comparison src/console/Vfs_File.cxx @ 341:986f098da058 trunk
[svn] - merge in blargg's changes
author | nenolod |
---|---|
date | Thu, 07 Dec 2006 15:20:41 -0800 |
parents | fb513e10174e |
children | fa9f85cebade |
comparison
equal
deleted
inserted
replaced
340:9e5a7158fa80 | 341:986f098da058 |
---|---|
41 Vfs_File_Reader::error_t Vfs_File_Reader::seek( long n ) | 41 Vfs_File_Reader::error_t Vfs_File_Reader::seek( long n ) |
42 { | 42 { |
43 if ( n == 0 ) // optimization | 43 if ( n == 0 ) // optimization |
44 vfs_rewind( file_ ); | 44 vfs_rewind( file_ ); |
45 else if ( vfs_fseek( file_, n, SEEK_SET ) != 0 ) | 45 else if ( vfs_fseek( file_, n, SEEK_SET ) != 0 ) |
46 return "Error seeking in file"; | 46 return eof_error; |
47 return 0; | 47 return 0; |
48 } | 48 } |
49 | 49 |
50 void Vfs_File_Reader::close() | 50 void Vfs_File_Reader::close() |
51 { | 51 { |