- }
-
- fclose ( f );
-
- if ( ! h ) {
- printf ( "ERROR: Couldn't pull PXML.xml from the pndfile.\n" );
- exit ( 0 );
- }
-
- // attempt to invoke
- unsigned int options = 0;
- if ( no_x11 ) {
- options |= PND_EXEC_OPTION_NOX11;
- }
-
- unsigned int clock = 200;
- if ( pnd_pxml_get_clockspeed ( h ) ) {
- clock = atoi ( pnd_pxml_get_clockspeed ( h ) );
- }
-
- if ( ! pnd_apps_exec ( pnd_run, pndfile,
- pnd_pxml_get_unique_id ( h ),
- pnd_pxml_get_exec ( h ),
- pnd_pxml_get_startdir ( h ),
- clock,
- options )
- )
- {
- printf ( "ERROR: PXML.xml data is bad\n" );
+ if ( ! d ) {
+ printf ( "No more applications in pnd-file.\n" );
+ exit ( 0 );
+ }
+ if ( d -> title_en ) {
+ printf ( "Invoking: '%s'\n", d -> title_en );
+ }
+ printf ( "--\n" );
+ pnd_apps_exec_disco ( pnd_run, d, PND_EXEC_OPTION_BLOCK, NULL );