fceugx/source/fceultra/config.cpp

58 lines
1.4 KiB
C++
Raw Normal View History

2009-07-17 17:27:04 +00: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 02:44:03 +00:00
#include "version.h"
2009-07-17 17:27:04 +00:00
#include "fceu.h"
#include "driver.h"
2010-10-06 03:57:22 +00:00
#include "utils/memory.h"
2009-07-17 17:27:04 +00:00
static char *aboutString = 0;
///returns a string suitable for use in an aboutbox
char *FCEUI_GetAboutString() {
2012-12-14 17:18:20 +00:00
const char *aboutTemplate =
2009-07-17 17:27:04 +00:00
FCEU_NAME_AND_VERSION "\n\n\
2012-01-09 01:59:06 +00:00
Administrators:\n\
2012-12-14 17:18:20 +00:00
zeromus, adelikat, AnS\n\n\
2012-01-09 01:59:06 +00:00
Current Contributors:\n\
punkrockguy318 (Lukas Sabota)\n\
Plombo (Bryan Cain)\n\
qeed, QFox, Shinydoofy, ugetab\n\
2012-12-14 17:18:20 +00:00
CaH4e3, gocha, Acmlm, DWEdit\n\
2009-07-17 17:27:04 +00:00
\n\
2012-01-09 01:59:06 +00:00
FCEUX 2.0:\n\
2009-07-17 17:27:04 +00:00
mz, nitsujrehtona, Lukas Sabota,\n\
SP, Ugly Joe\n\
2012-01-09 01:59:06 +00:00
\n\
Previous versions:\n\
2009-07-17 17:27:04 +00:00
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\
2012-01-09 01:59:06 +00:00
FCEUX is dedicated to the fallen heroes\n\
of NES emulation. In Memoriam --\n\
ugetab\n\
\n\
2009-07-17 17:27:04 +00:00
"__TIME__" "__DATE__"\n";
if(aboutString) return aboutString;
const char *compilerString = FCEUD_GetCompilerString();
//allocate the string and concatenate the template with the compiler string
2010-10-06 03:57:22 +00:00
if (!(aboutString = (char*)FCEU_dmalloc(strlen(aboutTemplate) + strlen(compilerString) + 1)))
return NULL;
2012-12-14 17:18:20 +00:00
2010-10-06 03:57:22 +00:00
sprintf(aboutString,"%s%s",aboutTemplate,compilerString);
2009-07-17 17:27:04 +00:00
return aboutString;
}