Linux: Fixed infinite loop when loading some .dbg files
This commit is contained in:
parent
64f911d58a
commit
8d8b74f77f
1 changed files with 2 additions and 2 deletions
|
@ -77,8 +77,8 @@ namespace Mesen.GUI.Debugger
|
|||
while(!File.Exists(sourceFile)) {
|
||||
//Go back up folder structure to attempt to find the file
|
||||
string oldPath = basePath;
|
||||
basePath = Path.GetFullPath(Path.Combine(basePath, @"..\"));
|
||||
if(basePath == oldPath) {
|
||||
basePath = Path.GetDirectoryName(basePath);
|
||||
if(basePath == null || basePath == oldPath) {
|
||||
break;
|
||||
}
|
||||
sourceFile = Path.Combine(basePath, file.Name);
|
||||
|
|
Loading…
Add table
Reference in a new issue