Added a list of open source dependencies that the application has been compiled against for debug traceability.

This commit is contained in:
mjbudd77 2021-06-01 21:43:49 -04:00
parent a849cdcd2f
commit a9f6dafa15
1 changed files with 33 additions and 0 deletions

View File

@ -24,10 +24,19 @@
#include <string.h>
#include <string>
#ifdef _S9XLUA_H
#include <lua.h>
#endif
#ifdef _USE_X264
#include "x264.h"
#endif
#include <QPixmap>
#include <QUrl>
#include <QTextEdit>
#include <QDesktopServices>
#include "Qt/sdl.h"
#include "Qt/AboutWindow.h"
#include "Qt/fceux_git_info.h"
#include "../../version.h"
@ -158,6 +167,30 @@ AboutWindow::AboutWindow(QWidget *parent)
credits->insertPlainText( Authors[i] ); i++;
credits->insertPlainText( "\n");
}
credits->insertPlainText( "\nOpen Source Dependencies:\n" );
sprintf( stmp, " Compiled with Qt version %d.%d.%d\n", QT_VERSION_MAJOR, QT_VERSION_MINOR, QT_VERSION_PATCH );
credits->insertPlainText( stmp );
sprintf( stmp, " Compiled with SDL version %d.%d.%d\n", SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL );
credits->insertPlainText( stmp );
SDL_version v;
SDL_GetVersion(&v);
sprintf( stmp, " Linked with SDL version %d.%d.%d\n", v.major, v.minor, v.patch);
credits->insertPlainText( stmp );
#ifdef _S9XLUA_H
sprintf( stmp, " Compiled with %s\n", LUA_RELEASE );
credits->insertPlainText( stmp );
#endif
#ifdef _USE_X264
sprintf( stmp, " Compiled with x264 version %s\n", X264_POINTVER );
credits->insertPlainText( stmp );
#endif
credits->moveCursor(QTextCursor::Start);
credits->setReadOnly(true);