Added standard core about text into Qt About Fceux Window.

This commit is contained in:
mjbudd77 2021-02-14 05:27:36 -05:00
parent c3473dbf4d
commit b98feca574
3 changed files with 9 additions and 4 deletions

View File

@ -14,7 +14,8 @@
static char *aboutString = 0;
// returns a string suitable for use in an aboutbox
char *FCEUI_GetAboutString() {
const char *FCEUI_GetAboutString(void)
{
const char *aboutTemplate =
FCEU_NAME_AND_VERSION "\n\n"
"Administrators:\n"
@ -46,7 +47,7 @@ char *FCEUI_GetAboutString() {
"\n"
__TIME__ " " __DATE__ "\n";
if(aboutString) return aboutString;
if (aboutString) return aboutString;
const char *compilerString = FCEUD_GetCompilerString();
@ -54,6 +55,6 @@ char *FCEUI_GetAboutString() {
if (!(aboutString = (char*)FCEU_dmalloc(strlen(aboutTemplate) + strlen(compilerString) + 1)))
return NULL;
sprintf(aboutString,"%s%s",aboutTemplate,compilerString);
sprintf(aboutString,"%s%s",aboutTemplate,compilerString);
return aboutString;
}

View File

@ -31,6 +31,7 @@
#include "Qt/AboutWindow.h"
#include "Qt/fceux_git_info.h"
#include "../../version.h"
#include "../../fceu.h"
static const char *Authors[] = {
"Linux/SDL Developers:",
@ -147,6 +148,9 @@ AboutWindow::AboutWindow(QWidget *parent)
credits = new QTextEdit();
credits->insertPlainText( FCEUI_GetAboutString() );
credits->insertPlainText( "\n\n");
i=0;
while ( Authors[i] != NULL )
{

View File

@ -43,7 +43,7 @@ void AutoFire(void);
void FCEUI_RewindToLastAutosave(void);
//mbg 7/23/06
char *FCEUI_GetAboutString();
const char *FCEUI_GetAboutString(void);
extern uint64 timestampbase;