mirror of https://github.com/stella-emu/stella.git
Moved final remaining bits of SDL-specific code out of src/emucore.
This commit is contained in:
parent
2b3e2dc385
commit
e3873cce73
|
@ -19,6 +19,7 @@
|
||||||
#define MEDIA_FACTORY_HXX
|
#define MEDIA_FACTORY_HXX
|
||||||
|
|
||||||
#include "bspf.hxx"
|
#include "bspf.hxx"
|
||||||
|
#include "SDL_lib.hxx"
|
||||||
|
|
||||||
#include "OSystem.hxx"
|
#include "OSystem.hxx"
|
||||||
#include "Settings.hxx"
|
#include "Settings.hxx"
|
||||||
|
@ -129,6 +130,16 @@ class MediaFactory
|
||||||
SDL_Quit();
|
SDL_Quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static string backendName()
|
||||||
|
{
|
||||||
|
ostringstream buf;
|
||||||
|
SDL_version ver;
|
||||||
|
SDL_GetVersion(&ver);
|
||||||
|
buf << "SDL " << int(ver.major) << "." << int(ver.minor) << "." << int(ver.patch);
|
||||||
|
|
||||||
|
return buf.str();
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Following constructors and assignment operators not supported
|
// Following constructors and assignment operators not supported
|
||||||
MediaFactory() = delete;
|
MediaFactory() = delete;
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
#ifndef VERSION_HXX
|
#ifndef VERSION_HXX
|
||||||
#define VERSION_HXX
|
#define VERSION_HXX
|
||||||
|
|
||||||
#define STELLA_VERSION "6.0_beta1"
|
#define STELLA_VERSION "6.0_beta2"
|
||||||
#define STELLA_BUILD "4514"
|
#define STELLA_BUILD "4603"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -87,11 +87,8 @@ OSystem::OSystem()
|
||||||
|
|
||||||
// Get build info
|
// Get build info
|
||||||
ostringstream info;
|
ostringstream info;
|
||||||
SDL_version ver;
|
|
||||||
SDL_GetVersion(&ver);
|
|
||||||
|
|
||||||
info << "Build " << STELLA_BUILD << ", using SDL " << int(ver.major)
|
info << "Build " << STELLA_BUILD << ", using " << MediaFactory::backendName()
|
||||||
<< "." << int(ver.minor) << "."<< int(ver.patch)
|
|
||||||
<< " [" << BSPF::ARCH << "]";
|
<< " [" << BSPF::ARCH << "]";
|
||||||
myBuildInfo = info.str();
|
myBuildInfo = info.str();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue