2009-07-17 19:27:04 +02:00
|
|
|
/// \file
|
|
|
|
/// \brief Contains methods related to the build configuration
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#include "types.h"
|
2009-10-22 04:44:03 +02:00
|
|
|
#include "version.h"
|
2009-07-17 19:27:04 +02:00
|
|
|
#include "fceu.h"
|
|
|
|
#include "driver.h"
|
|
|
|
|
|
|
|
static char *aboutString = 0;
|
|
|
|
|
|
|
|
///returns a string suitable for use in an aboutbox
|
|
|
|
char *FCEUI_GetAboutString() {
|
|
|
|
const char *aboutTemplate =
|
|
|
|
FCEU_NAME_AND_VERSION "\n\n\
|
|
|
|
Authors:\n\
|
2009-09-15 10:20:48 +02:00
|
|
|
zeromus, adelikat,\n\n\
|
2009-07-17 19:27:04 +02:00
|
|
|
Contributers:\n\
|
2009-09-15 10:20:48 +02:00
|
|
|
Acmlm,CaH4e3\n\
|
|
|
|
DWEdit,QFox\n\
|
|
|
|
qeed,Shinydoofy,ugetab\n\
|
2009-07-17 19:27:04 +02:00
|
|
|
\n\
|
|
|
|
FCEUX 2.0\n\
|
|
|
|
mz, nitsujrehtona, Lukas Sabota,\n\
|
|
|
|
SP, Ugly Joe\n\
|
|
|
|
\n\n\
|
|
|
|
Previous versions:\n\n\
|
|
|
|
FCE - Bero\n\
|
|
|
|
FCEU - Xodnizel\n\
|
|
|
|
FCEU XD - Bbitmaster & Parasyte\n\
|
|
|
|
FCEU XD SP - Sebastian Porst\n\
|
|
|
|
FCEU MM - CaH4e3\n\
|
|
|
|
FCEU TAS - blip & nitsuja\n\
|
|
|
|
FCEU TAS+ - Luke Gustafson\n\
|
|
|
|
\n\
|
|
|
|
"__TIME__" "__DATE__"\n";
|
|
|
|
|
|
|
|
if(aboutString) return aboutString;
|
|
|
|
|
|
|
|
const char *compilerString = FCEUD_GetCompilerString();
|
|
|
|
|
|
|
|
//allocate the string and concatenate the template with the compiler string
|
|
|
|
aboutString = (char*)malloc(strlen(aboutTemplate) + strlen(compilerString) + 1);
|
|
|
|
sprintf(aboutString,"%s%s",aboutTemplate,compilerString);
|
|
|
|
return aboutString;
|
|
|
|
}
|