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) |
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; |