[Scummvm-devel] [PATCH] let the user sort it's configured games
Gregor Jasny
Gregor.Jasny at epost.de
Thu Feb 12 03:58:09 CET 2004
Hi,
this patch lets the user sort it's games diplayed in the menu. The changes
are:
* Change domain names to 6 digit long strings.
* Store the gameid in the gameid key
This have several advantages:
* No more domain name collisions if a gameid is already there.
* Good base for sorting ;)
TODO:
* Collect some feedback!
* Find a position for the Up/Down buttons
* Add a combobox for all gameids in edit widget
* Review other backends
The patch is divided in two seperate ones:
1. scumm-menu-core patch:
map:
* added int size() function
config-manager:
* check that domains can only consists of [A-Za-z0-9]
* getInt() check for conversion error
* added swapDomains(dom1, dom2): swap the contents of this two domain (needed
for up/down)
* added int numGameDomains(): return the number of known game Domains
ListWidget:
* added setSelection(int item): NEEDS REVIEW!
2. scumm-menu-updown patch:
gamedetector:
* print out as "Target GameID Description" (e.g. 000001 atlantis Indy4)
launcher:
* move and rename old domain lineEdit field to "Game Id"
* add up/down Button
* add funtions for up/down
* store the last selection in [scummvm]->lastselectedgame and reselect on
scummvm reload
Please give some feedback!
Cheers,
-Gregor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scumm-menu-core1.diff
Type: text/x-diff
Size: 6014 bytes
Desc: not available
URL: <http://lists.scummvm.org/pipermail/scummvm-devel/attachments/20040212/33b1d8d1/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scumm-menu-updown1.diff
Type: text/x-diff
Size: 11280 bytes
Desc: not available
URL: <http://lists.scummvm.org/pipermail/scummvm-devel/attachments/20040212/33b1d8d1/attachment-0001.diff>
More information about the Scummvm-devel
mailing list