Ticket #8322: scumm-show-libs.diff

File scumm-show-libs.diff, 1.2 KB (added by SF/gjasny, 21 years ago)

Show supported libs

  • base/gameDetector.cpp

    RCS file: /cvsroot/scummvm/scummvm/base/gameDetector.cpp,v
    retrieving revision 1.67
    diff -u -3 -p -r1.67 gameDetector.cpp
    void listTargets() {  
    192192        }
    193193}
    194194
     195/** List all compiled in libs */
     196void listLibs() {
     197    printf("Features compiled in:");
     198   
     199#ifdef USE_VORBIS
     200    printf(" Ogg/Vorbis");
     201#endif
     202
     203#ifdef USE_FLAC
     204    printf(" FLAC");
     205#endif
     206
     207#ifdef USE_MAD
     208    printf(" MP3");
     209#endif
     210
     211#ifdef USE_ALSA
     212    printf(" ALSA");
     213#endif
     214
     215#ifdef USE_ZLIB
     216    printf(" zLib");
     217#endif
     218
     219#ifdef USE_MPEG2
     220    printf(" MPEG2");
     221#endif
     222
     223    printf(".\n");   
     224}
     225
    195226GameSettings GameDetector::findGame(const String &gameName, const Plugin **plugin) {
    196227        // Find the GameSettings for this target
    197228        const PluginList &plugins = PluginManager::instance().getPlugins();
    void GameDetector::parseCommandLine(int  
    371402
    372403                        DO_OPTION_CMD('v', "version")
    373404                                printf("%s\n", gScummVMFullVersion);
     405                                listLibs();
    374406                                exit(0);
    375407                        END_OPTION
    376408