@@ -32,61 +32,59 @@ int _fltused;
32
32
#define VERSION "1.2.0.0"
33
33
34
34
const char * g_helpString = ""
35
- "DS Texture Converter command line utility version " VERSION "\n"
36
- "\n"
37
- "Usage: ptexconv <option...> image [option...]\n"
38
- "\n"
39
- "Global options:\n"
40
- " -gb Generate BG (default)\n"
41
- " -gt Generate texture\n"
42
- " -o Specify output base name\n"
43
- " -ob Output binary (default)\n"
44
- " -oc Output as C header file\n"
45
- " -d <n> Use dithering of n% (default 0%)\n"
46
- " -cm <n> Limit palette colors to n, regardless of bit depth\n"
47
- " -s Silent\n"
48
- " -h Display help text\n"
49
- "\n"
50
- "BG Options:\n"
51
- " -b <n> Specify output bit depth {4, 8}\n"
52
- " -p <n> Use n palettes in output (Only valid for 4bpp)\n"
53
- " -pb <n> Use palette base index n (Only valid for 4bpp)\n"
54
- " -cc <n> Compress characters to a maximum of n (default is 1024)\n"
55
- " -cn No character compression\n"
56
- " -ns Do not output screen data\n"
57
- " -od Output as DIB (disables character compression)\n"
58
- " -nx No tile flip X\n"
59
- " -ny No tile flip Y\n"
60
- "\n"
61
- "Texture Options:\n"
62
- " -f Specify format {palette4, palette16, palette256, a3i5, a5i3, tex4x4, direct}\n"
63
- " -ot Output as NNS TGA\n"
64
- " -fp Specify fixed palette file\n\n"
35
+ "DS Texture Converter command line utility version " VERSION "\n"
36
+ "\n"
37
+ "Usage: ptexconv <option...> image [option...]\n"
38
+ "\n"
39
+ "Global options:\n"
40
+ " -gb Generate BG (default)\n"
41
+ " -gt Generate texture\n"
42
+ " -o Specify output base name\n"
43
+ " -ob Output binary (default)\n"
44
+ " -oc Output as C header file\n"
45
+ " -d <n> Use dithering of n% (default 0%)\n"
46
+ " -cm <n> Limit palette colors to n, regardless of bit depth\n"
47
+ " -s Silent\n"
48
+ " -h Display help text\n"
49
+ "\n"
50
+ "BG Options:\n"
51
+ " -b <n> Specify output bit depth {4, 8}\n"
52
+ " -p <n> Use n palettes in output (Only valid for 4bpp)\n"
53
+ " -pb <n> Use palette base index n (Only valid for 4bpp)\n"
54
+ " -cc <n> Compress characters to a maximum of n (default is 1024)\n"
55
+ " -cn No character compression\n"
56
+ " -ns Do not output screen data\n"
57
+ " -od Output as DIB (disables character compression)\n"
58
+ "\n"
59
+ "Texture Options:\n"
60
+ " -f Specify format {palette4, palette16, palette256, a3i5, a5i3, tex4x4, direct}\n"
61
+ " -ot Output as NNS TGA\n"
62
+ " -fp Specify fixed palette file\n\n"
65
63
"" ;
66
64
67
65
const char * texHeader = ""
68
- "///////////////////////////////////////\n"
69
- "// \n"
70
- "// %s\n"
71
- "// Generated %d/%d/%d %d:%02d %cM\n"
72
- "// Format: %s\n"
73
- "// Colors: %d\n"
74
- "// Size: %dx%d\n"
75
- "// \n"
76
- "///////////////////////////////////////\n\n"
66
+ "///////////////////////////////////////\n"
67
+ "// \n"
68
+ "// %s\n"
69
+ "// Generated %d/%d/%d %d:%02d %cM\n"
70
+ "// Format: %s\n"
71
+ "// Colors: %d\n"
72
+ "// Size: %dx%d\n"
73
+ "// \n"
74
+ "///////////////////////////////////////\n\n"
77
75
"" ;
78
76
79
77
const char * bgHeader = ""
80
- "///////////////////////////////////////\n"
81
- "// \n"
82
- "// %s\n"
83
- "// Generated %d/%d/%d %d:%02d %cM\n"
84
- "// Bit depth: %d\n"
85
- "// Palettes: %d\n"
86
- "// Palette base: %d\n"
87
- "// Size: %dx%d\n"
88
- "// \n"
89
- "///////////////////////////////////////\n\n"
78
+ "///////////////////////////////////////\n"
79
+ "// \n"
80
+ "// %s\n"
81
+ "// Generated %d/%d/%d %d:%02d %cM\n"
82
+ "// Bit depth: %d\n"
83
+ "// Palettes: %d\n"
84
+ "// Palette base: %d\n"
85
+ "// Size: %dx%d\n"
86
+ "// \n"
87
+ "///////////////////////////////////////\n\n"
90
88
"" ;
91
89
92
90
void getDate (int * month , int * day , int * year , int * hour , int * minute , int * am ) {
0 commit comments