Config: Add entry to override the game window title
This commit is contained in:
parent
d427df0c2b
commit
7d9a85dbbd
4 changed files with 12 additions and 1 deletions
src
|
@ -233,6 +233,9 @@ int main(int argc, char *argv[])
|
|||
|
||||
conf.readGameINI();
|
||||
|
||||
if (conf.windowTitle.empty())
|
||||
conf.windowTitle = conf.game.title;
|
||||
|
||||
assert(conf.rgssVersion >= 1 && conf.rgssVersion <= 3);
|
||||
printRgssVersion(conf.rgssVersion);
|
||||
|
||||
|
@ -272,7 +275,7 @@ int main(int argc, char *argv[])
|
|||
if (conf.fullscreen)
|
||||
winFlags |= SDL_WINDOW_FULLSCREEN_DESKTOP;
|
||||
|
||||
win = SDL_CreateWindow(conf.game.title.c_str(),
|
||||
win = SDL_CreateWindow(conf.windowTitle.c_str(),
|
||||
SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED,
|
||||
conf.defScreenW, conf.defScreenH, winFlags);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue