Skip to content

Commit

Permalink
Added CDTV as a command line option in --model
Browse files Browse the repository at this point in the history
  • Loading branch information
midwan committed Aug 24, 2021
1 parent a650abb commit 09cabff
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/cfgfile.cpp
Expand Up @@ -9176,6 +9176,11 @@ int bip_cd32(struct uae_prefs* p, int rom)
return bip_cd32(p, 0, 0, 0);
}

int bip_cdtv(struct uae_prefs* p, int rom)
{
return bip_cdtv(p, 0, 0, 0);
}

int bip_a1200(struct uae_prefs* p, int rom)
{
int roms[4];
Expand Down
1 change: 1 addition & 0 deletions src/include/options.h
Expand Up @@ -991,6 +991,7 @@ extern int bip_a1200(struct uae_prefs* p, int rom);
extern int bip_a2000(struct uae_prefs* p, int rom);
extern int bip_a4000(struct uae_prefs* p, int rom);
extern int bip_cd32(struct uae_prefs* p, int rom);
extern int bip_cdtv(struct uae_prefs* p, int rom);

int parse_cmdline_option(struct uae_prefs*, TCHAR, const TCHAR*);

Expand Down
6 changes: 5 additions & 1 deletion src/main.cpp
Expand Up @@ -650,7 +650,7 @@ void usage()
std::cout << " -f <file> Load a configuration file." << std::endl;
std::cout << " --config <file> \n" << std::endl;
std::cout << " -m <Amiga Model> Amiga model to emulate, from the QuickStart options." << std::endl;
std::cout << " --model <Amiga Model> Available options are: A500, A500P, A1200, A4000 and CD32.\n" << std::endl;
std::cout << " --model <Amiga Model> Available options are: A500, A500P, A1200, A4000, CD32 and CDTV.\n" << std::endl;
std::cout << " --autoload <file> Load a WHDLoad game or .CUE CD32 image using the WHDBooter." << std::endl;
std::cout << " --cdimage <file> Load the CD image provided when starting emulation (for CD32)." << std::endl;
std::cout << " --statefile <file> Load a save state file." << std::endl;
Expand Down Expand Up @@ -825,6 +825,10 @@ static void parse_cmdline (int argc, TCHAR **argv)
{
bip_cd32(&currprefs, -1);
}
else if (_tcscmp(txt, _T("CDTV")) == 0)
{
bip_cdtv(&currprefs, -1);
}
}
} else if (_tcscmp(argv[i], _T("--statefile")) == 0) {
if (i + 1 == argc)
Expand Down

0 comments on commit 09cabff

Please sign in to comment.