+ Added config system

This commit is contained in:
Matthew Cech
2019-06-27 01:17:28 -07:00
parent b34e9795dc
commit 4315351832
3 changed files with 25 additions and 6 deletions
+8 -2
View File
@@ -6,7 +6,6 @@ import java.io.Reader;
import java.io.Writer;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -91,7 +90,14 @@ public class ConfigCSV
// Get a copy of the internal items
public List<ConfigItem> getItems()
{
return Arrays.asList((ConfigItem[])fileContents.toArray());
List<ConfigItem> out = new Vector<ConfigItem>();
for(ConfigItem item : fileContents)
{
out.add(new ConfigItem(item.type, item.key, item.value));
}
return out;
}
// Set the internal items