소스 검색

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

David Piuva 2 주 전
부모
커밋
dad5bd1b38
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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)
 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
 	printText("Initializing sound\n");
 	soundEngine_initialize();