mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-02 03:13:38 +00:00
CResourceEntry: Make use of static qualifier
This function doesn't depend on instance state.
This commit is contained in:
parent
1e46717b57
commit
61ec2f2e08
@ -466,7 +466,8 @@ bool CResourceEntry::Unload()
|
||||
bool CResourceEntry::CanMoveTo(const TString& rkDir, const TString& rkName)
|
||||
{
|
||||
// Validate that the path/name are valid
|
||||
if (!mpStore->IsValidResourcePath(rkDir, rkName)) return false;
|
||||
if (!CResourceStore::IsValidResourcePath(rkDir, rkName))
|
||||
return false;
|
||||
|
||||
// We need to validate the path isn't taken already - either the directory doesn't exist, or doesn't have a resource by this name
|
||||
CVirtualDirectory *pDir = mpStore->GetVirtualDirectory(rkDir, false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user