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.2 by cebix, 2000-10-10T21:57:21Z 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 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