Fix build on Windows and formatting

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2024-02-24 21:06:03 +00:00
parent fccf857d8e
commit c0eb80947d
No known key found for this signature in database
GPG Key ID: 5E39D70B4C93C38E

View File

@ -848,7 +848,8 @@ class InstanceStaging : public Task {
const unsigned maxBackoff = 16; const unsigned maxBackoff = 16;
public: public:
InstanceStaging(InstanceList* parent, InstanceTask* child, SettingsObjectPtr settings) : m_parent(parent), backoff(minBackoff, maxBackoff) InstanceStaging(InstanceList* parent, InstanceTask* child, SettingsObjectPtr settings)
: m_parent(parent), backoff(minBackoff, maxBackoff)
{ {
m_stagingPath = parent->getStagedInstancePath(); m_stagingPath = parent->getStagedInstancePath();
@ -958,7 +959,7 @@ QString InstanceList::getStagedInstancePath()
if (!QDir::current().mkpath(result)) if (!QDir::current().mkpath(result))
return {}; return {};
#ifdef Q_OS_WIN32 #ifdef Q_OS_WIN32
SetFileAttributesA(tempPath.toStdString().c_str(), FILE_ATTRIBUTE_HIDDEN | FILE_ATTRIBUTE_NOT_CONTENT_INDEXED); SetFileAttributesA(tempRoot.toStdString().c_str(), FILE_ATTRIBUTE_HIDDEN | FILE_ATTRIBUTE_NOT_CONTENT_INDEXED);
#endif #endif
return result; return result;
} }