Skip to content

Commit 905510d

Browse files
committed
Added 'expasion file' option to package dialog.
1 parent 456ee6c commit 905510d

File tree

5 files changed

+212
-121
lines changed

5 files changed

+212
-121
lines changed

adventure-editor/src/main/java/com/bladecoder/engineeditor/model/Project.java

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,17 @@ public void saveProject() throws IOException {
289289
chapter.save();
290290

291291
// 3.- SAVE BladeEngine.properties
292+
List<String> resolutions = getResolutions();
293+
StringBuilder sb = new StringBuilder();
294+
295+
for(int i = 0; i < resolutions.size(); i++) {
296+
sb.append(resolutions.get(i));
297+
298+
if(i < resolutions.size() - 1)
299+
sb.append(',');
300+
}
301+
302+
projectConfig.setProperty(Config.RESOLUTIONS, sb.toString());
292303
projectConfig.store(new FileOutputStream(getAssetPath() + "/" + Config.PROPERTIES_FILENAME), null);
293304

294305
// 4.- SAVE I18N
@@ -440,7 +451,7 @@ public BaseActor getActor(String id) {
440451
}
441452

442453
public List<String> getResolutions() {
443-
File atlasesPath = new File(getAssetPath() + ATLASES_PATH);
454+
File atlasesPath = new File(getAssetPath() + UI_PATH);
444455
ArrayList<String> l = new ArrayList<String>();
445456

446457
File[] list = atlasesPath.listFiles();

0 commit comments

Comments
 (0)