1
Fork 0
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:
Joshua Goins 2023-12-20 21:07:52 -05:00
parent bd0db4a792
commit 4112db4af0

View file

@ -186,6 +186,9 @@ void GameRunner::launchExecutable(const Profile &profile, QProcess *process, con
const QDir system32 = windows.absoluteFilePath(QStringLiteral("system32")); const QDir system32 = windows.absoluteFilePath(QStringLiteral("system32"));
for (const auto &entry : dxvk64Dir.entryInfoList(QDir::Files | QDir::NoDotAndDotDot)) { 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())); QFile::copy(entry.absoluteFilePath(), system32.absoluteFilePath(entry.fileName()));
} }
#endif #endif