to improve name of functions
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
@@ -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)
|
||||||
|
@@ -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));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user