mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-05 04:51:53 +02:00
gmenu2x, temporary repository for gmenu2x port to Owrt on Ben NanoNote
http://projects.qi-hardware.com/index.php/p/gmenu2x/
98a63e2940
Previously, one would check the value in &confInt["someKey"] by passing a reference to it to evalIntConf. However, because this passing of the reference went through std::unordered_map::operator[], it created a slot with the named key and initialised its value with the default constructor of int, which placed 0 there, if it didn't exist. If the value of 0 was acceptable for the setting, then 0 as the value selected by the user was indistinguishable from a slot that had been just created and had to be set to its default. Now, the std::unordered_map is passed along with the key so that evalIntConf can check whether the key exists and, if it doesn't exist, set the value to its default. Include utilities.h in gmenu2x.h instead of the reverse. One type definition used by utilities.cpp is moved there (ConfIntHash) and for consistency ConfStrHash is moved there as well. |
||
---|---|---|
data | ||
src | ||
.gitignore | ||
acinclude.m4 | ||
AUTHORS | ||
autogen.sh | ||
autorun.gpu | ||
ChangeLog | ||
configure.in | ||
COPYING | ||
INSTALL | ||
Makefile.am | ||
NEWS | ||
README |
[Introduction] GMenu2X is a replacement for the official frontend for the gp2x released under the GNU GPL license. [Installation] Copy the file autorun.gpu and the directory gmenu2x/ to the root of your sd card. Verify that the autorun option in the standard gp2x interface is enabled. (Re)Boot your gp2x and enjoy GMenu2X. [Controls] X, Stick left: Goes up one directory in file browser. X: Cancel action. B, Stick press: Launch selected link / Confirm action. L, R: Switch between sections - PageUp/PageDown on lists. Y: Bring up the manual/readme. VOLDOWN: Decrease cpu clock. VOLUP: Increase cpu clock. VOLDOWN+VOLUP: Reset clock. A+VOLDOWN: Decrease volume for the selected link. A+VOLUP: Increase volume for the selected link. A+VOLDOWN+VOLUP: Reset volume for the selected link. SELECT: Bring up the contextual menu. START: GMenu2X options. [Contacts] Developed by Massimiliano Torromeo <massimiliano.torromeo@gmail.com> Visit the homepage at http://gmenu2x.sourceforge.net for more info.