Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Starting a plugin automatically
« previous next »
  • Print
Pages: [1]

Author Topic: Starting a plugin automatically  (Read 2405 times)

Offline mo-seph

  • Member
  • *
  • Posts: 7
Starting a plugin automatically
« on: August 11, 2007, 07:58:49 AM »
Hi all,

I've created a plugin which gives a particular mode of operation that I'm developing for a specific user. (It gives a subset of operation just using two buttons).

Is there any way to automatically run a plugin at startup, so that the player is always in this mode? If not, can anyone give me pointers on how to build this functionality into the core and enable it by default?

Thanks very much for any help!
Logged

Offline Febs

  • Member
  • *
  • Posts: 2701
Re: Starting a plugin automatically
« Reply #1 on: August 11, 2007, 08:04:00 AM »
You may have better luck asking this question in our IRC channel:

http://www.rockbox.org/irc/

(I'm not suggesting this is not an appropriate place for the question as well, but many more Rockbox developers participate in IRC than the forums.)
Logged
Rockbox Forum Guidelines
The Rockbox Manual
How to Ask Questions the Smart Way
Please do not send me support questions via PM.

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: Starting a plugin automatically
« Reply #2 on: August 11, 2007, 08:16:15 AM »
There is mention of an autostart functionality plugin on this page:
http://www.rockbox.org/twiki/bin/view/Main/PluginAlpineCDC
But no details, and I can't find a patch on Flyspray relating to this autostart.rock plugin :(
« Last Edit: August 11, 2007, 09:04:53 AM by bascule »
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Starting a plugin automatically
« Reply #3 on: August 11, 2007, 08:35:11 AM »
You don't need a flyspray patch. There's a #define to add to the appropriate config-blah.h for your player, I believe #define AUTOROCK, but I'm not sure, and then you name whatever plugin you want to run autostart.rock, though I don't know exactly where to put it.

At least, this is if I understand correctly.
Logged

Offline mo-seph

  • Member
  • *
  • Posts: 7
Re: Starting a plugin automatically
« Reply #4 on: August 11, 2007, 08:48:51 AM »
Thanks for the quick responses!

I've found in main.c:
Code: [Select]
/*#define AUTOROCK*/ /* define this to check for "autostart.rock" on boot */

which does what the comment says, but for some reason not for simulator builds; I've done a copy/paste into the simulator init(), and now it seems to work fine.

Just to be clear, I've also made a plugin in the normal plugin dir called autostart.c, which ends up in the correct place.

Nice one!
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Starting a plugin automatically
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.087 seconds with 16 queries.