OSDN Git Service

禁則文字設定のセーブ/ロード
[coroid/inqubus.git] / frontend / src / yukihane / inqubus / Config.java
index 3c0663b..570b206 100644 (file)
@@ -178,7 +178,28 @@ public enum Config {
     public void setOutputDisplayProgress(boolean s) {
         config.setProperty(FILE_OUTPUT_DISPLAY_PROGRESS, s);
     }
-    /**
+    /*
+     * ファイル - 禁則文字
+     */
+    private static final String FILE_REPLACE_FROM = "file.prohibit.replace_from";
+
+    public String getReplaceFrom() {
+        return config.getString(FILE_REPLACE_FROM, "/\\:*?\"<>|.");
+    }
+
+    public void setReplaceFrom(String s) {
+        config.setProperty(FILE_REPLACE_FROM, s);
+    }
+    private static final String FILE_REPLACE_TO = "file.prohibit.replace_to";
+
+    public String getReplaceTo() {
+        return config.getString(FILE_REPLACE_TO, "_");
+    }
+
+    public void setReplaceTo(String s) {
+        config.setProperty(FILE_REPLACE_TO, s);
+    }
+    /*
      * コメント
      */
     private static final String COMMENT_SIZE_AUTOSIZE = "comment.size.autosize";
@@ -382,7 +403,7 @@ public enum Config {
     private static final String FFMPEG_PARAM_RESIZE_HEIGHT = "ffmpeg.param.resize_height";
 
     public String getFfmpegResizeHeight() {
-        return config.getString(FFMPEG_PARAM_RESIZE_HEIGHT, "480");
+        return config.getString(FFMPEG_PARAM_RESIZE_HEIGHT, "320");
     }
 
     public void setFfmpegResizeHeight(String s) {