Skip to content

Commit

Permalink
Merge branch 'main' into cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
SeongGino committed Jan 17, 2025
2 parents 362ea77 + 3b537cd commit ba68f8b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/nerorunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -470,13 +470,15 @@ int NeroRunner::StartOnetime(const QString &path, const bool &prefixAlreadyRunni
QString app = path;
QDir dosdevicesPath(NeroFS::GetPrefixesPath().path() + '/' + NeroFS::GetCurrentPrefix() + "/dosdevices");
QFileInfoList dosdevices(dosdevicesPath.entryInfoList(QDir::NoDotAndDotDot | QDir::Dirs, QDir::Name));
for(auto const device : dosdevices) {
if(app.contains(device.symLinkTarget())) {
app.remove(device.symLinkTarget());
app.prepend(device.baseName().toUpper());
break;
// .dots/relative paths don't really need a path fixup.
if(!app.startsWith('.'))
for(auto const device : dosdevices) {
if(app.contains(device.symLinkTarget())) {
app.remove(device.symLinkTarget());
app.prepend(device.baseName().toUpper());
break;
}
}
}

arguments.append(app);

Expand Down

0 comments on commit ba68f8b

Please sign in to comment.