/[cebix]/SIDPlayer/src/main_beos.cpp
ViewVC logotype

Diff of /SIDPlayer/src/main_beos.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2 by cebix, 2000-10-10T21:57:21Z revision 1.3 by cebix, 2001-01-04T19:54:13Z
# Line 186  SIDPlayer::~SIDPlayer() Line 186  SIDPlayer::~SIDPlayer()
186    
187  void SIDPlayer::ArgvReceived(int32 argc, char **argv)  void SIDPlayer::ArgvReceived(int32 argc, char **argv)
188  {  {
189          if (argc >= 2) {          if (argc < 2)
190                    return;
191    
192            for (int i=1; i<argc; i++) {
193                    if (argv[i][0] == '-')
194                            continue;
195                  player.Stop();                  player.Stop();
196                  LoadPSIDFile(argv[1]);                  LoadPSIDFile(argv[i]);
197                  player.Start();                  player.Start();
198                  player_stopped = false;                  player_stopped = false;
199                  if (main_window)                  if (main_window)
# Line 641  void PrevButton::Draw(BRect update) Line 646  void PrevButton::Draw(BRect update)
646    
647  int main(int argc, char **argv)  int main(int argc, char **argv)
648  {  {
649          InitAll();          InitAll(argc, argv);
650          SIDPlayer *the_app = new SIDPlayer();          SIDPlayer *the_app = new SIDPlayer();
651          the_app->Run();          the_app->Run();
652          delete the_app;          delete the_app;

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.26