mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
[Kernel] Fix return of CreateContent/OpenContent in ContentManager when an already open package was found.
This commit is contained in:
parent
85ad87eb73
commit
14c73a33f9
|
|
@ -145,7 +145,7 @@ X_RESULT ContentManager::CreateContent(std::string root_name,
|
||||||
|
|
||||||
if (open_packages_.count(root_name)) {
|
if (open_packages_.count(root_name)) {
|
||||||
// Already content open with this root name.
|
// Already content open with this root name.
|
||||||
return X_ERROR_INVALID_NAME;
|
return X_ERROR_ALREADY_EXISTS;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto package_path = ResolvePackagePath(data);
|
auto package_path = ResolvePackagePath(data);
|
||||||
|
|
@ -172,7 +172,7 @@ X_RESULT ContentManager::OpenContent(std::string root_name,
|
||||||
|
|
||||||
if (open_packages_.count(root_name)) {
|
if (open_packages_.count(root_name)) {
|
||||||
// Already content open with this root name.
|
// Already content open with this root name.
|
||||||
return X_ERROR_INVALID_NAME;
|
return X_ERROR_ALREADY_EXISTS;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto package_path = ResolvePackagePath(data);
|
auto package_path = ResolvePackagePath(data);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue