to improve name of functions

This commit is contained in:
2020-01-13 20:11:30 +08:00
parent a03628acf3
commit 74e1d564be
3 changed files with 3 additions and 3 deletions

View File

@@ -68,7 +68,7 @@ namespace hgl
public: public:
virtual io::InputStream * OpenByName (const UTF8String &){return nullptr;} virtual io::InputStream * Open (const UTF8String &){return nullptr;}
virtual AssetsSource * CreateSubSource (const UTF8String &){return nullptr;} virtual AssetsSource * CreateSubSource (const UTF8String &){return nullptr;}
};//class AssetsSource };//class AssetsSource

View File

@@ -64,7 +64,7 @@ namespace hgl
const UTF8String surl=uri.SubString(pos+3); const UTF8String surl=uri.SubString(pos+3);
return source->OpenByName(surl); return source->Open(surl);
} }
AssetsSource::AssetsSource(const UTF8String &sn) AssetsSource::AssetsSource(const UTF8String &sn)

View File

@@ -22,7 +22,7 @@ namespace hgl
bool hasNameAccess()const override{return true;} bool hasNameAccess()const override{return true;}
io::InputStream *OpenByName(const UTF8String &filename) io::InputStream *Open(const UTF8String &filename)
{ {
const OSString &fullname=filesystem::MergeFilename(root_path,ToOSString(filename)); const OSString &fullname=filesystem::MergeFilename(root_path,ToOSString(filename));