- Timestamp:
- 04/02/14 16:18:01 (11 years ago)
- Location:
- cpp/frams/virtfile
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/virtfile/stringfile.cpp
r197 r204 78 78 return new StringFILE2(SString(path+sizeof(PREFIX)-1)); 79 79 } 80 return chain->Vfopen(path,mode);80 return (chain!=NULL) ? chain->Vfopen(path,mode) : NULL; 81 81 } 82 82 83 83 int StringFileSystem::Vfexists(const char* path) 84 { return chain->Vfexists(path); }84 { return (chain!=NULL) ? chain->Vfexists(path) : 0; } 85 85 86 86 VirtDIR *StringFileSystem::Vopendir(const char* path) 87 { return chain->Vopendir(path); }87 { return (chain!=NULL) ? chain->Vopendir(path) : NULL; } -
cpp/frams/virtfile/stringfile.h
r197 r204 44 44 public: 45 45 VirtFileSystem *chain; 46 StringFileSystem(VirtFileSystem *_chain ):chain(_chain) {}46 StringFileSystem(VirtFileSystem *_chain=NULL):chain(_chain) {} 47 47 VirtFILE *Vfopen(const char* path,const char*mode); 48 48 int Vfexists(const char* path);
Note: See TracChangeset
for help on using the changeset viewer.