Browse Source

Letting the file finder example browse from the application path instead of the current path, to prevent heavy load when started from a desktop shortcut.

David Piuva 3 years ago
parent
commit
8c7803856e
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Source/SDK/fileFinder/main.cpp

+ 3 - 3
Source/SDK/fileFinder/main.cpp

@@ -34,8 +34,8 @@ void dsrMain(List<String> args) {
 		}
 		}
 	} else {
 	} else {
 		// Test program on the current path when nothing was entered.
 		// Test program on the current path when nothing was entered.
-		String currentPath = file_getCurrentPath();
-		printText("Exploring ", currentPath, " because no folders were given.\n");
-		exploreFolder(currentPath, U"  ");
+		String applicationFolder = file_getApplicationFolder();
+		printText("Exploring ", applicationFolder, " because no folders were given.\n");
+		exploreFolder(applicationFolder, U"  ");
 	}
 	}
 }
 }