Rockbox.org home
releases
current build
extras manual
wiki
index mailing lists
IRC
forums bugs
patches
 requests



TWiki > Main > PluginIndex > ViewerPlugin
Main . { Users | Groups | Changes | Index | Search | Go }

View Files with Plugins

A viewer-plugin is a plugin that is programmed just like any other plugin, but acts to display, edit, write or otherwise deal with a file.

Viewer plugins are kept in ".rockbox/viewers/". They can be used to browse a file when invoked with the ON+PLAY menu choice "view with" and they are invoked when a file with its associated registered extension is used.

The extension <=> plugin connection is set in the ".rockbox/viewers.config" file.

Below follows an example showing the file format of the viewers.config file. The number at the end of each line defines the icon to be associated with the extension. For more on viewer icons see here.

ch8,viewers/chip8,0
txt,viewers/viewer,1
nfo,viewers/viewer,1
txt,apps/text_editor,2
jpg,viewers/jpeg,2


r5 - 30 Jan 2008 - 23:20:34 - MarcGuay
Edit | View raw | Attach | Ref-By | History: r5 < r4 < r3 < r2 < r1 | More | Refresh cache

Parents: PluginIndex Main.ViewerPlugin moved from Main.PluginViewer on 28 Nov 2004 - 22:47 by JensArnold - put it back
Copyright © 1999-2008 by the contributing authors.