git.openpandora.org
/
pandora-libraries.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
77637d2
)
.desktop for 'info' doesn't need to change clockrate (likely)
author
skeezix
<skeezix@flotsam-vm.(none)>
Wed, 29 Sep 2010 19:28:04 +0000
(15:28 -0400)
committer
skeezix
<skeezix@flotsam-vm.(none)>
Wed, 29 Sep 2010 19:28:04 +0000
(15:28 -0400)
lib/pnd_apps.c
patch
|
blob
|
history
diff --git
a/lib/pnd_apps.c
b/lib/pnd_apps.c
index
e90ea61
..
c5eec2f
100644
(file)
--- a/
lib/pnd_apps.c
+++ b/
lib/pnd_apps.c
@@
-40,6
+40,10
@@
unsigned char pnd_apps_exec_disco ( char *pndrun, pnd_disco_t *app,
return ( 0 );
}
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 );
// 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;
}
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
}
// skip -a (arguments) for now