Skip to content

Commit 9aa1b8b

Browse files
committed
revert the use of app data directory and keep all files in the workspace
1 parent d44684a commit 9aa1b8b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/neuronrobotics/bowlerstudio/assets/ConfigurationDatabase.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package com.neuronrobotics.bowlerstudio.assets;
22

3+
import static com.neuronrobotics.bowlerstudio.scripting.DownloadManager.delim;
4+
35
import java.io.File;
46
import java.io.FileNotFoundException;
57
import java.io.IOException;
@@ -185,7 +187,7 @@ public static void getDatabase() {
185187
}
186188

187189
public static File loadFile() {
188-
Path appDataDirectory = getAppDataDirectory();
190+
Path appDataDirectory = new File(ScriptingEngine.getWorkspace().getAbsolutePath() + delim()).toPath();//getAppDataDirectory();
189191
File dir = appDataDirectory.toFile();
190192
if(!dir.exists()) {
191193
dir.mkdirs();

0 commit comments

Comments
 (0)