Bläddra i källkod

Starting Music SDK example in the application folder, because it would not find the wave file from a different directory.

David Piuva 2 veckor sedan
förälder
incheckning
dad5bd1b38
1 ändrade filer med 3 tillägg och 0 borttagningar
  1. 3 0
      Source/SDK/music/main.cpp

+ 3 - 0
Source/SDK/music/main.cpp

@@ -65,6 +65,9 @@ static void limitSelection() {
 
 
 DSR_MAIN_CALLER(dsrMain)
 DSR_MAIN_CALLER(dsrMain)
 void dsrMain(List<String> args) {
 void dsrMain(List<String> args) {
+	// Go to the application's folder, so that files can easily be loaded using relative paths.
+	file_setCurrentPath(file_getApplicationFolder());
+
 	// Start sound thread
 	// Start sound thread
 	printText("Initializing sound\n");
 	printText("Initializing sound\n");
 	soundEngine_initialize();
 	soundEngine_initialize();