ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SIDPlayer/src/main_beos.cpp
(Generate patch)

Comparing SIDPlayer/src/main_beos.cpp (file contents):
Revision 1.1 by cebix, 2000-09-19T15:34:11Z vs.
Revision 1.3 by cebix, 2001-01-04T19:54:13Z

# Line 186 | Line 186 | SIDPlayer::~SIDPlayer()
186  
187   void SIDPlayer::ArgvReceived(int32 argc, char **argv)
188   {
189 <        if (argc >= 2) {
189 >        if (argc < 2)
190 >                return;
191 >
192 >        for (int i=1; i<argc; i++) {
193 >                if (argv[i][0] == '-')
194 >                        continue;
195                  player.Stop();
196 <                LoadPSIDFile(argv[1]);
196 >                LoadPSIDFile(argv[i]);
197                  player.Start();
198                  player_stopped = false;
199                  if (main_window)
# Line 304 | Line 309 | void SIDPlayer::ReadyToRun(void)
309   void AboutWindow(void)
310   {
311          BAlert *theAlert = new BAlert("",
312 <                        "SIDPlayer\nVersion 4.0\n\n"
312 >                        "SIDPlayer\nVersion " VERSION "\n\n"
313                          "Copyright " B_UTF8_COPYRIGHT " 1996-2000 Christian Bauer\n"
314                          "E-mail: Christian.Bauer@uni-mainz.de\n"
315                          "http://www.uni-mainz.de/~bauec002/\n\n"
# Line 641 | Line 646 | void PrevButton::Draw(BRect update)
646  
647   int main(int argc, char **argv)
648   {
649 <        InitAll();
649 >        InitAll(argc, argv);
650          SIDPlayer *the_app = new SIDPlayer();
651          the_app->Run();
652          delete the_app;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines