mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Changed settings file to binary format (io ascii)
Former-commit-id: a4e31b7661299470ea136f8cccd9552c38d6b6f4
This commit is contained in:
parent
56ce6dddfc
commit
f434b398c3
@ -1 +1 @@
|
||||
698de0cb95bc237c1f98b0b2b77f70f40c95adb9
|
||||
73c0de615f1ed0905a42ceb4a21c07a845f5e806
|
@ -18,8 +18,8 @@ public class ConfigurationFile {
|
||||
public void load(String pFilename) {
|
||||
pProps.clear();
|
||||
// try (InputStream in = new InflaterInputStream(new FileInputStream(pFilename))){
|
||||
// try (InputStream in = new GZIPInputStream(new FileInputStream(pFilename))){
|
||||
try (InputStream in = new FileInputStream(pFilename)) {
|
||||
try (InputStream in = new GZIPInputStream(new FileInputStream(pFilename))){
|
||||
// try (InputStream in = new FileInputStream(pFilename)) {
|
||||
pProps.load(in);
|
||||
} catch (Throwable t) {
|
||||
// TODO Auto-generated catch block
|
||||
@ -29,8 +29,8 @@ public class ConfigurationFile {
|
||||
|
||||
public void save(String pFilename) {
|
||||
// try (OutputStream out = new DeflaterOutputStream(new FileOutputStream(pFilename))) {
|
||||
// try (OutputStream out = new GZIPOutputStream(new FileOutputStream(pFilename))) {
|
||||
try (OutputStream out = (new FileOutputStream(pFilename))) {
|
||||
try (OutputStream out = new GZIPOutputStream(new FileOutputStream(pFilename))) {
|
||||
// try (OutputStream out = (new FileOutputStream(pFilename))) {
|
||||
pProps.store(out, "Pesistent settings file for HyperCon");
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
|
@ -15,7 +15,7 @@ import org.hyperion.hypercon.gui.ConfigPanel;
|
||||
* JAVA application (contains the entry-point).
|
||||
*/
|
||||
public class Main {
|
||||
public static final String configFilename = "hyerpcon.dat";
|
||||
public static final String configFilename = "hypercon.dat";
|
||||
|
||||
/**
|
||||
* Entry point to start HyperCon
|
||||
|
Loading…
Reference in New Issue
Block a user