Skip to content

Commit

Permalink
Native separators in paths has been added.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dman95 committed Jan 27, 2016
1 parent 2652999 commit 5f49be3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,10 @@ QString Common::pathInTemp(QString path)
if (! QFile::exists(temp + "/SASM")) {
QDir().mkpath(temp + "/SASM");
}
return temp + "/SASM/" + path;
QString tempPath = temp + "/SASM";
if (!path.isEmpty()) {
tempPath += "/" + path;
}
tempPath = QDir::toNativeSeparators(tempPath);
return tempPath;
}
2 changes: 1 addition & 1 deletion debugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ void Debugger::processLst()
{
//set accordance with .lst file and program in memory
QFile lst;
lst.setFileName(tmpPath + "program.lst");
lst.setFileName(Common::pathInTemp("program.lst"));
if (lst.open(QIODevice::ReadOnly)) {
//heuristic:
//if debug symbols exists - offset is difference between main labels in listing and in executable
Expand Down

0 comments on commit 5f49be3

Please sign in to comment.