Fix build on Windows and formatting
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
(cherry picked from commit c0eb80947d
)
This commit is contained in:
parent
c39ca8852d
commit
b7f079b006
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user