2006-07-31 05:41:13 +00:00
|
|
|
/// \file
|
2006-07-31 06:04:44 +00:00
|
|
|
/// \brief Contains methods related to the build configuration
|
2006-07-31 05:41:13 +00:00
|
|
|
|
2006-07-29 05:46:15 +00:00
|
|
|
#include <string.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
2006-07-31 05:41:13 +00:00
|
|
|
#include "types.h"
|
|
|
|
#include "fceu.h"
|
|
|
|
|
2006-07-29 05:46:15 +00:00
|
|
|
static char *aboutString = 0;
|
|
|
|
|
2006-07-31 05:41:13 +00:00
|
|
|
///returns a string suitable for use in an aboutbox
|
2006-07-29 05:46:15 +00:00
|
|
|
char *FCEUI_GetAboutString() {
|
|
|
|
const char *aboutTemplate =
|
|
|
|
FCEU_NAME_AND_VERSION"\n\
|
|
|
|
~CAST~\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\
|
|
|
|
FCEUX\n\
|
2008-06-03 06:15:09 +00:00
|
|
|
- SP, zeromus\n\
|
|
|
|
- CaH4e3, Luke Gustafson, qfox\n\
|
|
|
|
- adelikat, _mz, nitsujrehtona\n\
|
2006-07-29 05:46:15 +00:00
|
|
|
\n\
|
|
|
|
"__TIME__" "__DATE__"\n";
|
|
|
|
|
2008-05-22 07:43:48 +00:00
|
|
|
if(aboutString) return aboutString;
|
|
|
|
|
2007-02-11 10:10:16 +00:00
|
|
|
const char *compilerString = FCEUD_GetCompilerString();
|
2006-07-29 05:46:15 +00:00
|
|
|
|
|
|
|
//allocate the string and concatenate the template with the compiler string
|
|
|
|
aboutString = (char*)malloc(strlen(aboutTemplate) + strlen(compilerString) + 1);
|
2006-07-31 05:41:13 +00:00
|
|
|
sprintf(aboutString,"%s%s",aboutTemplate,compilerString);
|
2006-07-29 05:46:15 +00:00
|
|
|
return aboutString;
|
2006-07-31 00:03:35 +00:00
|
|
|
}
|