/
Options.cs
60 lines (50 loc) · 1.83 KB
/
Options.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
* User: good
* Date: 2/21/2018
* Time: 5:57 PM
*/
using System;
namespace VNDSConverter{
public static class Options{
// 2 is ???
// 3 is after added sound archive
// 4 is beta 3ds support
public static byte writtenVersionNumber=4;
public static bool detailedConsoleOutput=false;
public static bool simpleConsoleOutput=true;
public static bool errorConsoleOutput=true;
public static bool importantConsoleOutput=true;
public static bool canConvertAudio=false;
public static bool canUseFFmpeg=false;
public static bool canInfiniteProcess=false;
// Should the old conversion folder be deleted before trying to convert the game?
public static bool autoDelete=true;
/////////////////////////////////////////////////////////////////////////////////////
public static string platformName=null;
// Image dimensions will be rounded up to the nearest multiple of this number
public static int imageRoundUpWidth=100;
public static int imageRoundUpHeight=100;
public static bool doImageRounding=true;
public static bool resizeImages=false;
public static int targetWidth;
public static int targetHeight;
// Usage with resizeImages on is not supported for bustshots
public static double resizeRatio=1.0;
/////////////////////////////////////////////////////////////////////////////////////
public static string[] possiblePlatforms={"PSVITA","3DS"};
public static void applyPlatformPresent(string _platformName){
platformName = _platformName;
if (_platformName=="PSVITA"){
doImageRounding=true;
resizeImages=false;
}else if (_platformName=="3DS"){
doImageRounding=false;
resizeImages=true;
targetWidth=400;
targetHeight=240;
}else{
throw new ArgumentException("Bad platform string: "+_platformName);
}
}
}
}