Ticket #8322: scumm-show-libs2.diff

File scumm-show-libs2.diff, 4.6 KB (added by SF/gjasny, 20 years ago)

Now with About-Box support

  • base/engine.h

    RCS file: /cvsroot/scummvm/scummvm/base/engine.h,v
    retrieving revision 1.10
    diff -u -3 -p -r1.10 engine.h
     
    2828extern const char *gScummVMVersion;             // e.g. "0.4.1"
    2929extern const char *gScummVMBuildDate;   // e.g. "2003-06-24"
    3030extern const char *gScummVMFullVersion; // e.g. "ScummVM 0.4.1 (2003-06-24)"
     31extern const char *gScummVMFeatures;    // e.g. "ALSA MPEG2 zLib"
    3132
    3233class SoundMixer;
    3334class Timer;
  • base/main.cpp

    RCS file: /cvsroot/scummvm/scummvm/base/main.cpp,v
    retrieving revision 1.33
    diff -u -3 -p -r1.33 main.cpp
     
    8585const char *gScummVMVersion = "0.5.7cvs";
    8686const char *gScummVMBuildDate = __DATE__ " " __TIME__;
    8787const char *gScummVMFullVersion = "ScummVM 0.5.7cvs (" __DATE__ " " __TIME__ ")";
     88const char *gScummVMFeatures =
     89#ifdef USE_VORBIS
     90        "Vorbis "
     91#endif
    8892
     93#ifdef USE_FLAC
     94        "FLAC "
     95#endif
     96
     97#ifdef USE_MAD
     98        "MP3 "
     99#endif
     100
     101#ifdef USE_ALSA
     102        "ALSA "
     103#endif
     104
     105#ifdef USE_ZLIB
     106        "zLib "
     107#endif
     108
     109#ifdef USE_MPEG2
     110        "MPEG2 "
     111#endif
     112        ;       
    89113
    90114#if defined(WIN32) && defined(NO_CONSOLE)
    91115#include <cstdio>
  • 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 GameDetector::parseCommandLine(int  
    371371
    372372                        DO_OPTION_CMD('v', "version")
    373373                                printf("%s\n", gScummVMFullVersion);
     374                                printf("Features compiled in: %s\n", gScummVMFeatures);
    374375                                exit(0);
    375376                        END_OPTION
    376377
  • gui/about.cpp

    RCS file: /cvsroot/scummvm/scummvm/gui/about.cpp,v
    retrieving revision 1.11
    diff -u -3 -p -r1.11 about.cpp
     
    2727namespace GUI {
    2828
    2929AboutDialog::AboutDialog()
    30         : Dialog(10, 20, 300, 144) {
    31         addButton((_w - kButtonWidth) / 2, 120, "OK", kCloseCmd, '\r'); // Close dialog - FIXME
     30        : Dialog(10, 20, 300, 154) {
     31        addButton((_w - kButtonWidth) / 2, 130, "OK", kCloseCmd, '\r'); // Close dialog - FIXME
    3232
    3333        Common::String version("ScummVM ");
    3434        version += gScummVMVersion;
    AboutDialog::AboutDialog()  
    3939        date += ')';
    4040        new StaticTextWidget(this, 10, 20, _w - 20, kLineHeight, date, kTextAlignCenter);
    4141
     42        Common::String features("Supports: ");
     43        features += gScummVMFeatures;
     44        new StaticTextWidget(this, 10, 30, _w - 20, kLineHeight, features, kTextAlignCenter );
     45       
     46       
    4247        // TODO: Probably should display something regarding GPL
    43         new StaticTextWidget(this, 10, 35, _w - 20, kLineHeight, "Copyright (C) 2002-2004 The ScummVM project", kTextAlignCenter);
    44         new StaticTextWidget(this, 10, 45, _w - 20, kLineHeight, "http://www.scummvm.org", kTextAlignCenter);
     48        new StaticTextWidget(this, 10, 45, _w - 20, kLineHeight, "Copyright (C) 2002-2004 The ScummVM project", kTextAlignCenter);
     49        new StaticTextWidget(this, 10, 55, _w - 20, kLineHeight, "http://www.scummvm.org", kTextAlignCenter);
    4550
    46         new StaticTextWidget(this, 10, 65, _w - 20, kLineHeight, "LucasArts SCUMM Games (C) LucasArts", kTextAlignCenter);
    47         new StaticTextWidget(this, 10, 75, _w - 20, kLineHeight, "Humongous SCUMM Games (C) Humongous", kTextAlignCenter);
    48         new StaticTextWidget(this, 10, 85, _w - 20, kLineHeight, "Simon the Sorcerer (C) Adventure Soft", kTextAlignCenter);
    49         new StaticTextWidget(this, 10, 95, _w - 20, kLineHeight, "Beneath a Steel Sky (C) Revolution", kTextAlignCenter);
    50         new StaticTextWidget(this, 10, 105, _w - 20, kLineHeight, "Broken Sword Games (C) Revolution", kTextAlignCenter);
     51        new StaticTextWidget(this, 10, 75, _w - 20, kLineHeight, "LucasArts SCUMM Games (C) LucasArts", kTextAlignCenter);
     52        new StaticTextWidget(this, 10, 85, _w - 20, kLineHeight, "Humongous SCUMM Games (C) Humongous", kTextAlignCenter);
     53        new StaticTextWidget(this, 10, 95, _w - 20, kLineHeight, "Simon the Sorcerer (C) Adventure Soft", kTextAlignCenter);
     54        new StaticTextWidget(this, 10, 105, _w - 20, kLineHeight, "Beneath a Steel Sky (C) Revolution", kTextAlignCenter);
     55        new StaticTextWidget(this, 10, 115, _w - 20, kLineHeight, "Broken Sword Games (C) Revolution", kTextAlignCenter);
    5156}
    5257
    5358} // End of namespace GUI