Print RGSS version on startup
This commit is contained in:
parent
55f1542c76
commit
6d414c0777
15
src/main.cpp
15
src/main.cpp
|
@ -38,6 +38,8 @@
|
||||||
#include "binding.h"
|
#include "binding.h"
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <assert.h>
|
||||||
|
|
||||||
static void
|
static void
|
||||||
rgssThreadError(RGSSThreadData *rtData, const std::string &msg)
|
rgssThreadError(RGSSThreadData *rtData, const std::string &msg)
|
||||||
|
@ -158,6 +160,17 @@ int rgssThreadFun(void *userdata)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void printRgssVersion(int ver)
|
||||||
|
{
|
||||||
|
const char *const makers[] =
|
||||||
|
{ "", "XP", "VX", "VX Ace" };
|
||||||
|
|
||||||
|
char buf[128];
|
||||||
|
snprintf(buf, sizeof(buf), "RGSS version %d (%s)", ver, makers[ver]);
|
||||||
|
|
||||||
|
Debug() << buf;
|
||||||
|
}
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
/* initialize SDL first */
|
/* initialize SDL first */
|
||||||
|
@ -192,6 +205,8 @@ int main(int argc, char *argv[])
|
||||||
conf.read(argc, argv);
|
conf.read(argc, argv);
|
||||||
conf.readGameINI();
|
conf.readGameINI();
|
||||||
|
|
||||||
|
printRgssVersion(conf.rgssVersion);
|
||||||
|
|
||||||
int imgFlags = IMG_INIT_PNG | IMG_INIT_JPG;
|
int imgFlags = IMG_INIT_PNG | IMG_INIT_JPG;
|
||||||
if (IMG_Init(imgFlags) != imgFlags)
|
if (IMG_Init(imgFlags) != imgFlags)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue