Re-add bitdepth switch. Sshhhh, it's undocumented!
This commit is contained in:
@@ -54,6 +54,7 @@ extern unsigned char Palette0, SPC700sh, OffBy1Line, DSPDisable,
|
|||||||
int getopt(int argc, char *const argv[], const char *optstring);
|
int getopt(int argc, char *const argv[], const char *optstring);
|
||||||
extern char *optarg;
|
extern char *optarg;
|
||||||
extern int optind, opterr, optopt;
|
extern int optind, opterr, optopt;
|
||||||
|
extern int BitDepth;
|
||||||
|
|
||||||
void ccmdline(void);
|
void ccmdline(void);
|
||||||
|
|
||||||
@@ -98,7 +99,7 @@ int main (int argc, char *argv[]) {
|
|||||||
char *fvar;
|
char *fvar;
|
||||||
|
|
||||||
UnProtectMemory();
|
UnProtectMemory();
|
||||||
while((opt = getopt(argc, argv, "01:2:789ac:d:ef:g:hijk:lmno:p:r:s:tuv:wyz?")) != -1) {
|
while((opt = getopt(argc, argv, "01:2:789ab:c:d:ef:g:hijk:lmno:p:r:s:tuv:wyz?")) != -1) {
|
||||||
switch(opt) {
|
switch(opt) {
|
||||||
/* Palette 0 disable */
|
/* Palette 0 disable */
|
||||||
case '0': {
|
case '0': {
|
||||||
@@ -143,6 +144,21 @@ int main (int argc, char *argv[]) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case 'b': {
|
||||||
|
// What was this? - DDOI
|
||||||
|
//SoundCompD = 1;
|
||||||
|
if(optarg != NULL)
|
||||||
|
BitDepth = atoi(optarg);
|
||||||
|
if (BitDepth != 8 && BitDepth != 16 &&
|
||||||
|
BitDepth != 24 && BitDepth != 32)
|
||||||
|
{
|
||||||
|
printf ("%d is not a valid bit depth.\n", BitDepth);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case 'c': {
|
case 'c': {
|
||||||
if (strcmp(optarg,"b") == 0) {
|
if (strcmp(optarg,"b") == 0) {
|
||||||
printf("\nRemove background color in 256 modes not implemented!\n");
|
printf("\nRemove background color in 256 modes not implemented!\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user