big file support
[pandora-libraries.git] / lib / pnd_apps.c
index e90ea61..92a4b7a 100644 (file)
@@ -40,6 +40,10 @@ unsigned char pnd_apps_exec_disco ( char *pndrun, pnd_disco_t *app,
     return ( 0 );
   }
 
+  if ( options & PND_EXEC_OPTION_INFO && ! reserved ) {
+    return ( 0 );
+  }
+
   // determine path to pnd-file
   sprintf ( fullpath, "%s/%s", app -> object_path, app -> object_filename );
 
@@ -79,9 +83,14 @@ unsigned char pnd_apps_exec_disco ( char *pndrun, pnd_disco_t *app,
     argv [ f++ ] = "-b";
     argv [ f++ ] = app -> unique_id;
   }
-  if ( app -> clockspeed ) {
-    argv [ f++ ] = "-c";
-    argv [ f++ ] = app -> clockspeed;
+
+  if ( options & PND_EXEC_OPTION_INFO ) {
+    // we don't need to overclock for showing info :) do we? crazy active .js pages maybe?
+  } else {
+    if ( app -> clockspeed ) {
+      argv [ f++ ] = "-c";
+      argv [ f++ ] = app -> clockspeed;
+    }
   }
 
   // skip -a (arguments) for now
@@ -140,7 +149,7 @@ unsigned char pnd_apps_exec_disco ( char *pndrun, pnd_disco_t *app,
        // -s startdir
        // -b name for the appdir
 
-       if ( ( strcmp ( argv [ i ], "-a" ) == 0 ) || 
+       if ( ( strcmp ( argv [ i ], "-a" ) == 0 ) ||
             ( strcmp ( argv [ i ], "-p" ) == 0 ) ||
             ( strcmp ( argv [ i ], "-e" ) == 0 ) ||
             ( strcmp ( argv [ i ], "-s" ) == 0 ) ||
@@ -172,7 +181,7 @@ unsigned char pnd_apps_exec_disco ( char *pndrun, pnd_disco_t *app,
   } else {
     // child, do it
     execv ( pndrun, argv );
-  } 
+  }
 
   // by definition, either error occurred or we are the original application.
 
@@ -280,3 +289,4 @@ unsigned char pnd_get_appdata_path ( char *fullpath, char *unique_id, char *r_pa
 
   return ( 1 );
 }
+