Skip to content

Commit

Permalink
- GAMESIG was never supposed to be used in printed output. Replaced a…
Browse files Browse the repository at this point in the history
…ll occurences with GAMENAME.
  • Loading branch information
coelckers committed Jan 12, 2020
1 parent 1d0ece2 commit d636acb
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/posix/cocoa/i_video.mm
Expand Up @@ -152,7 +152,7 @@ - (void)updateTitle
{
if (nil == m_title)
{
m_title = [NSString stringWithFormat:@"%s %s", GAMESIG, GetVersionString()];
m_title = [NSString stringWithFormat:@"%s %s", GAMENAME, GetVersionString()];
}

[super setTitle:m_title];
Expand Down
2 changes: 1 addition & 1 deletion src/posix/cocoa/st_console.mm
Expand Up @@ -101,7 +101,7 @@
[m_scrollView setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
[m_scrollView setDocumentView:m_textView];

NSString* const title = [NSString stringWithFormat:@"%s %s - Console", GAMESIG, GetVersionString()];
NSString* const title = [NSString stringWithFormat:@"%s %s - Console", GAMENAME, GetVersionString()];

[m_window initWithContentRect:initialRect
styleMask:NSTitledWindowMask | NSClosableWindowMask | NSResizableWindowMask
Expand Down
6 changes: 3 additions & 3 deletions src/posix/sdl/i_system.cpp
Expand Up @@ -117,7 +117,7 @@ void Linux_I_FatalError(const char* errortext)
if((str=getenv("KDE_FULL_SESSION")) && strcmp(str, "true") == 0)
{
FString cmd;
cmd << "kdialog --title \"" GAMESIG " " << GetVersionString()
cmd << "kdialog --title \"" GAMENAME " " << GetVersionString()
<< "\" --msgbox \"" << errortext << "\"";
popen(cmd, "r");
}
Expand All @@ -130,7 +130,7 @@ void Linux_I_FatalError(const char* errortext)
else
{
FString title;
title << GAMESIG " " << GetVersionString();
title << GAMENAME " " << GetVersionString();

if (SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, title, errortext, NULL) < 0)
{
Expand Down Expand Up @@ -200,7 +200,7 @@ int I_PickIWad (WadStuff *wads, int numwads, bool showwin, int defaultiwad)
const char *str;
if((str=getenv("KDE_FULL_SESSION")) && strcmp(str, "true") == 0)
{
FString cmd("kdialog --title \"" GAMESIG " ");
FString cmd("kdialog --title \"" GAMENAME " ");
cmd << GetVersionString() << ": Select an IWAD to use\""
" --menu \"" GAMENAME " found more than one IWAD\n"
"Select from the list below to determine which one to use:\"";
Expand Down
4 changes: 2 additions & 2 deletions src/posix/sdl/sdlglvideo.cpp
Expand Up @@ -165,7 +165,7 @@ namespace Priv
}

FString caption;
caption.Format(GAMESIG " %s (%s)", GetVersionString(), GetGitTime());
caption.Format(GAMENAME " %s (%s)", GetVersionString(), GetGitTime());

const uint32_t windowFlags = (win_maximized ? SDL_WINDOW_MAXIMIZED : 0) | SDL_WINDOW_RESIZABLE | extraFlags;
Priv::window = SDL_CreateWindow(caption,
Expand Down Expand Up @@ -771,7 +771,7 @@ void I_SetWindowTitle(const char* caption)
else
{
FString default_caption;
default_caption.Format(GAMESIG " %s (%s)", GetVersionString(), GetGitTime());
default_caption.Format(GAMENAME " %s (%s)", GetVersionString(), GetGitTime());
SDL_SetWindowTitle(Priv::window, default_caption);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/posix/unix/gtk_dialogs.cpp
Expand Up @@ -207,7 +207,7 @@ static int PickIWad (WadStuff *wads, int numwads, bool showwin, int defaultiwad)

// Create the dialog window.
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
mysnprintf(caption, countof(caption), GAMESIG " %s: Select an IWAD to use", GetVersionString());
mysnprintf(caption, countof(caption), GAMENAME " %s: Select an IWAD to use", GetVersionString());
gtk_window_set_title (GTK_WINDOW(window), caption);
gtk_window_set_position (GTK_WINDOW(window), GTK_WIN_POS_CENTER);
gtk_window_set_gravity (GTK_WINDOW(window), GDK_GRAVITY_CENTER);
Expand Down
2 changes: 1 addition & 1 deletion src/win32/i_main.cpp
Expand Up @@ -896,7 +896,7 @@ int DoMain (HINSTANCE hInstance)
}

/* create window */
FStringf caption("" GAMESIG " %s " X64 " (%s)", GetVersionString(), GetGitTime());
FStringf caption("" GAMENAME " %s " X64 " (%s)", GetVersionString(), GetGitTime());
std::wstring wcaption = caption.WideString();
Window = CreateWindowExW(
WS_EX_APPWINDOW,
Expand Down
2 changes: 1 addition & 1 deletion src/win32/i_system.cpp
Expand Up @@ -578,7 +578,7 @@ BOOL CALLBACK IWADBoxCallback(HWND hDlg, UINT message, WPARAM wParam, LPARAM lPa

GetWindowTextW(hDlg, label, countof(label));
FString alabel(label);
newlabel.Format(GAMESIG " %s: %s", GetVersionString(), alabel.GetChars());
newlabel.Format(GAMENAME " %s: %s", GetVersionString(), alabel.GetChars());
auto wlabel = newlabel.WideString();
SetWindowTextW(hDlg, wlabel.c_str());
}
Expand Down

0 comments on commit d636acb

Please sign in to comment.