Commit 4505c049 authored by fallenstardust's avatar fallenstardust

ko strings.conf

parent 372c1ebd
...@@ -989,3 +989,6 @@ ...@@ -989,3 +989,6 @@
!setname 0x12f 비포스 !setname 0x12f 비포스
!setname 0x130 파계 !setname 0x130 파계
!setname 0x1130 파계신 !setname 0x1130 파계신
!setname 0x132 참기
!setname 0x133 드래곤메이드
!setname 0x134 제너레이드
\ No newline at end of file
...@@ -20,10 +20,8 @@ import java.io.File; ...@@ -20,10 +20,8 @@ import java.io.File;
import java.io.FileInputStream; import java.io.FileInputStream;
import java.io.FileOutputStream; import java.io.FileOutputStream;
import java.io.IOException; import java.io.IOException;
import java.lang.reflect.Array;
import java.nio.charset.Charset; import java.nio.charset.Charset;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays;
import java.util.List; import java.util.List;
import cn.garymb.ygodata.YGOGameOptions; import cn.garymb.ygodata.YGOGameOptions;
...@@ -277,19 +275,19 @@ public class MyCard { ...@@ -277,19 +275,19 @@ public class MyCard {
public String readdir(String path) { public String readdir(String path) {
File file = new File(settings.getResourcePath(), path); File file = new File(settings.getResourcePath(), path);
String[] result = file.list(); String[] result = file.list();
List<DeckFile> deckFileList=new ArrayList<>(); List<DeckFile> deckFileList = new ArrayList<>();
for (File file1:file.listFiles()){ for (File file1 : file.listFiles()) {
if (file1.isDirectory()){ if (file1.isDirectory()) {
deckFileList.addAll(DeckUtil.getDeckList(file1.getAbsolutePath())); deckFileList.addAll(DeckUtil.getDeckList(file1.getAbsolutePath()));
}else { } else {
// if (file.getName().endsWith(".ydk")) // if (file.getName().endsWith(".ydk"))
deckFileList.add(new DeckFile(file1.getAbsolutePath())); deckFileList.add(new DeckFile(file1.getAbsolutePath()));
} }
} }
int deckPathLenght=file.getAbsolutePath().length(); int deckPathLenght = file.getAbsolutePath().length();
List<String> deckList=new ArrayList<>(); List<String> deckList = new ArrayList<>();
for (DeckFile deckFile:deckFileList){ for (DeckFile deckFile : deckFileList) {
deckList.add(deckFile.getPath().substring(deckPathLenght+1)); deckList.add(deckFile.getPath().substring(deckPathLenght + 1));
} }
return new JSONArray(deckList).toString(); return new JSONArray(deckList).toString();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment