scummvm/base
Tobia Tesan 426ec1f989 CMD: Add --recursive option for adding & detection
New semantics is as follows:

[-p <dir>] --add                 adds all games in <dir> or
                                 working dir

[-p <dir>] --detect              enumerates dectected games in
                                 <dir> with their ids

[-p <dir>] --game <id> --add     adds just game <id> if found
                                 in <dir> and not already added

[-p <dir>] --recursive --add     adds all games in <dir> and
                                 subdirs if not already added

[-p <dir>] --recursive --game <id> --add
                                 adds just game <id> if found
                                 in <dir> or its subdirs and
                                 not already added

[-p <dir>] --recursive --detect  enumerates games in <dir>
                                 and subdirs

[-p <dir>] --auto-detect         launches the first game
                                 found in <dir>

[-p <dir>] --recursive --auto-detect
                                 displays error message

The reason for the displaying an error message when attempting to do
autodetection on a whole tree is mainly one of UX, IMO it *might* get
confusing on a sufficiently large/deep tree.
The relevant if() can be removed safely if it's concluded that's not the
case.
2017-08-06 19:14:13 +01:00
..
commandLine.cpp CMD: Add --recursive option for adding & detection 2017-08-06 19:14:13 +01:00
commandLine.h BASE: Make GPL headers consistent in themselves. 2014-02-18 02:39:32 +01:00
internal_revision.h.in CREATE_PROJECT: Update revision number support (fixes bug #3280881) 2011-04-24 16:59:46 -04:00
internal_version.h RELEASE: This is 1.10.0git 2016-09-26 20:57:54 +02:00
internal_version.h.in CREATE_PROJECT: Update revision number support (fixes bug #3280881) 2011-04-24 16:59:46 -04:00
main.cpp COMMON: Add referencing and destruction of the OSDMessageQueue instance 2016-10-29 15:13:32 +01:00
main.h BASE: Make GPL headers consistent in themselves. 2014-02-18 02:39:32 +01:00
module.mk Moved base/game.* to engines/game.* 2008-09-17 17:31:29 +00:00
plugins.cpp Revert "COMMON: Change way the Singleton instances are instantiated" 2017-07-10 21:17:41 +02:00
plugins.h ALL: Don't use 'defined' in macro definitions 2016-07-23 16:18:51 +03:00
version.cpp AMIGAOS: Amiga needs date in specific format in version cookie. Now AmiUpdate works 2016-09-10 22:19:32 +02:00
version.h BASE: Make GPL headers consistent in themselves. 2014-02-18 02:39:32 +01:00