mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-22 12:47:44 +00:00
Remove existing D3D placeholder DLLs
This commit is contained in:
parent
bd0db4a792
commit
4112db4af0
1 changed files with 3 additions and 0 deletions
|
@ -186,6 +186,9 @@ void GameRunner::launchExecutable(const Profile &profile, QProcess *process, con
|
|||
const QDir system32 = windows.absoluteFilePath(QStringLiteral("system32"));
|
||||
|
||||
for (const auto &entry : dxvk64Dir.entryInfoList(QDir::Files | QDir::NoDotAndDotDot)) {
|
||||
if (QFile::exists(system32.absoluteFilePath(entry.fileName()))) {
|
||||
QFile::remove(system32.absoluteFilePath(entry.fileName()));
|
||||
}
|
||||
QFile::copy(entry.absoluteFilePath(), system32.absoluteFilePath(entry.fileName()));
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue