fceugx/source/fceultra/config.cpp

60 lines
1.5 KiB
C++
Raw Normal View History

2009-07-17 17:27:04 +00:00
/// \file
/// \brief Contains methods related to the build configuration
#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
2016-09-17 20:43:24 -07:00
#include <cstring>
#include <cstdio>
#include <cstdlib>
2009-07-17 17:27:04 +00:00
static char *aboutString = 0;
2016-09-17 20:43:24 -07:00
// returns a string suitable for use in an aboutbox
2009-07-17 17:27:04 +00:00
char *FCEUI_GetAboutString() {
2012-12-14 17:18:20 +00:00
const char *aboutTemplate =
2016-09-17 20:43:24 -07:00
FCEU_NAME_AND_VERSION "\n\n"
"Administrators:\n"
"zeromus, punkrockguy318 (Lukas Sabota), feos\n"
"\n"
2016-09-17 20:43:24 -07:00
"Current Contributors:\n"
"CaH4e3, rainwarrior\n"
"\n"
"Past Contributors:\n"
"xhainingx, gocha, AnS\n"
2016-09-17 20:43:24 -07:00
"\n"
"FCEUX 2.0:\n"
"mz, nitsujrehtona, SP, Ugly Joe,\n"
"Plombo, qeed, QFox, Shinydoofy\n"
"ugetab, Acmlm, DWEdit\n"
"\n"
"Previous versions:\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"
"FCEUX is dedicated to the fallen heroes\n"
"of NES emulation. In Memoriam --\n"
"ugetab\n"
"\n"
__TIME__ " " __DATE__ "\n";
2009-07-17 17:27:04 +00:00
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;
}