mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 05:07:46 +02:00
cleanup the mod name checking
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
@ -169,3 +169,11 @@ bool Resource::isMoreThanOneHardLink() const
|
||||
{
|
||||
return FS::hardLinkCount(m_file_info.absoluteFilePath()) > 1;
|
||||
}
|
||||
|
||||
auto Resource::getOriginalFileName() const -> QString
|
||||
{
|
||||
auto fileName = m_file_info.fileName();
|
||||
if (!m_enabled)
|
||||
fileName.chop(9);
|
||||
return fileName;
|
||||
}
|
Reference in New Issue
Block a user