mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
Don't use .index for shaderpacks
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
d6942089cd
commit
1cf48dfd85
5 changed files with 82 additions and 2 deletions
|
|
@ -21,5 +21,16 @@ class ShaderPackFolderModel : public ResourceFolderModel {
|
|||
return new LocalShaderPackParseTask(m_next_resolution_ticket, static_cast<ShaderPack&>(resource));
|
||||
}
|
||||
|
||||
QDir indexDir() const override { return m_dir; }
|
||||
|
||||
Task* createPreUpdateTask() override;
|
||||
|
||||
// avoid watching twice
|
||||
virtual bool startWatching() override { return ResourceFolderModel::startWatching({ m_dir.absolutePath() }); }
|
||||
virtual bool stopWatching() override { return ResourceFolderModel::stopWatching({ m_dir.absolutePath() }); }
|
||||
|
||||
RESOURCE_HELPERS(ShaderPack);
|
||||
|
||||
private:
|
||||
QMutex m_migrateLock;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue