Added standard core about text into Qt About Fceux Window.
This commit is contained in:
parent
c3473dbf4d
commit
b98feca574
|
@ -14,7 +14,8 @@
|
||||||
static char *aboutString = 0;
|
static char *aboutString = 0;
|
||||||
|
|
||||||
// returns a string suitable for use in an aboutbox
|
// returns a string suitable for use in an aboutbox
|
||||||
char *FCEUI_GetAboutString() {
|
const char *FCEUI_GetAboutString(void)
|
||||||
|
{
|
||||||
const char *aboutTemplate =
|
const char *aboutTemplate =
|
||||||
FCEU_NAME_AND_VERSION "\n\n"
|
FCEU_NAME_AND_VERSION "\n\n"
|
||||||
"Administrators:\n"
|
"Administrators:\n"
|
||||||
|
@ -46,7 +47,7 @@ char *FCEUI_GetAboutString() {
|
||||||
"\n"
|
"\n"
|
||||||
__TIME__ " " __DATE__ "\n";
|
__TIME__ " " __DATE__ "\n";
|
||||||
|
|
||||||
if(aboutString) return aboutString;
|
if (aboutString) return aboutString;
|
||||||
|
|
||||||
const char *compilerString = FCEUD_GetCompilerString();
|
const char *compilerString = FCEUD_GetCompilerString();
|
||||||
|
|
||||||
|
@ -54,6 +55,6 @@ char *FCEUI_GetAboutString() {
|
||||||
if (!(aboutString = (char*)FCEU_dmalloc(strlen(aboutTemplate) + strlen(compilerString) + 1)))
|
if (!(aboutString = (char*)FCEU_dmalloc(strlen(aboutTemplate) + strlen(compilerString) + 1)))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
sprintf(aboutString,"%s%s",aboutTemplate,compilerString);
|
sprintf(aboutString,"%s%s",aboutTemplate,compilerString);
|
||||||
return aboutString;
|
return aboutString;
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
#include "Qt/AboutWindow.h"
|
#include "Qt/AboutWindow.h"
|
||||||
#include "Qt/fceux_git_info.h"
|
#include "Qt/fceux_git_info.h"
|
||||||
#include "../../version.h"
|
#include "../../version.h"
|
||||||
|
#include "../../fceu.h"
|
||||||
|
|
||||||
static const char *Authors[] = {
|
static const char *Authors[] = {
|
||||||
"Linux/SDL Developers:",
|
"Linux/SDL Developers:",
|
||||||
|
@ -147,6 +148,9 @@ AboutWindow::AboutWindow(QWidget *parent)
|
||||||
|
|
||||||
credits = new QTextEdit();
|
credits = new QTextEdit();
|
||||||
|
|
||||||
|
credits->insertPlainText( FCEUI_GetAboutString() );
|
||||||
|
credits->insertPlainText( "\n\n");
|
||||||
|
|
||||||
i=0;
|
i=0;
|
||||||
while ( Authors[i] != NULL )
|
while ( Authors[i] != NULL )
|
||||||
{
|
{
|
||||||
|
|
|
@ -43,7 +43,7 @@ void AutoFire(void);
|
||||||
void FCEUI_RewindToLastAutosave(void);
|
void FCEUI_RewindToLastAutosave(void);
|
||||||
|
|
||||||
//mbg 7/23/06
|
//mbg 7/23/06
|
||||||
char *FCEUI_GetAboutString();
|
const char *FCEUI_GetAboutString(void);
|
||||||
|
|
||||||
extern uint64 timestampbase;
|
extern uint64 timestampbase;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue