mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
chore: clang-tidy work adjacent to changelog api fix
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
parent
e16235c1ca
commit
67fe365ae0
22 changed files with 298 additions and 184 deletions
|
|
@ -297,3 +297,46 @@ auto Resource::getOriginalFileName() const -> QString
|
|||
fileName.chop(9);
|
||||
return fileName;
|
||||
}
|
||||
|
||||
QDebug operator<<(QDebug debug, ResourceType type)
|
||||
{
|
||||
switch (type) {
|
||||
case ResourceType::ZIPFILE:
|
||||
debug << "ZIPFILE";
|
||||
break;
|
||||
case ResourceType::SINGLEFILE:
|
||||
debug << "SINGLEFILE";
|
||||
break;
|
||||
case ResourceType::FOLDER:
|
||||
debug << "FOLDER";
|
||||
break;
|
||||
case ResourceType::LITEMOD:
|
||||
debug << "LITEMOD";
|
||||
break;
|
||||
case ResourceType::UNKNOWN:
|
||||
default:
|
||||
debug << "UNKNOWN";
|
||||
break;
|
||||
};
|
||||
return debug;
|
||||
}
|
||||
|
||||
QDebug operator<<(QDebug debug, ResourceStatus status)
|
||||
{
|
||||
switch (status) {
|
||||
case ResourceStatus::INSTALLED:
|
||||
debug << "INSTALLED";
|
||||
break;
|
||||
case ResourceStatus::NOT_INSTALLED:
|
||||
debug << "NOT_INSTALLED";
|
||||
break;
|
||||
case ResourceStatus::NO_METADATA:
|
||||
debug << "NO_METADATA";
|
||||
break;
|
||||
case ResourceStatus::UNKNOWN:
|
||||
default:
|
||||
debug << "UNKNOWN";
|
||||
break;
|
||||
};
|
||||
return debug;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue