- added end line to various messages

so they don't screw up further output anymore
This commit is contained in:
alexey.lysiuk 2018-05-11 18:03:57 +03:00
parent 643828f5fa
commit f17f8c9359
11 changed files with 18 additions and 18 deletions

View file

@ -142,7 +142,7 @@ bool PClass::ReadAllFields(FSerializer &ar, void *addr) const
if (strcmp(key, "classtype"))
{
// this does not represent a DObject
Printf(TEXTCOLOR_RED "trying to read user variables but got a non-object (first key is '%s')", key);
Printf(TEXTCOLOR_RED "trying to read user variables but got a non-object (first key is '%s')\n", key);
ar.mErrors++;
return false;
}

View file

@ -2591,12 +2591,12 @@ UNSAFE_CCMD (playdemo)
{
if (netgame)
{
Printf("End your current netgame first!");
Printf("End your current netgame first!\n");
return;
}
if (demorecording)
{
Printf("End your current demo first!");
Printf("End your current demo first!\n");
return;
}
if (argv.argc() > 1)

View file

@ -241,7 +241,7 @@ UNSAFE_CCMD(recordmap)
{
if (netgame)
{
Printf("You cannot record a new game while in a netgame.");
Printf("You cannot record a new game while in a netgame.\n");
return;
}
if (argv.argc() > 2)

View file

@ -115,7 +115,7 @@ LegacyShader* LegacyShaderContainer::CreatePixelShader(const FString& vertex, co
GLsizei length = 0;
buffer[0] = 0;
glGetShaderInfoLog(errorShader, 10000, &length, buffer);
Printf("Shader compile failed: %s", buffer);
Printf("Shader compile failed: %s\n", buffer);
delete shader;
return nullptr;
}
@ -129,7 +129,7 @@ LegacyShader* LegacyShaderContainer::CreatePixelShader(const FString& vertex, co
GLsizei length = 0;
buffer[0] = 0;
glGetProgramInfoLog(shader->Program, 10000, &length, buffer);
Printf("Shader link failed: %s", buffer);
Printf("Shader link failed: %s\n", buffer);
delete shader;
return nullptr;
}

View file

@ -1024,7 +1024,7 @@ CCMD (openmenu)
{
if (argv.argc() < 2)
{
Printf("Usage: openmenu \"menu_name\"");
Printf("Usage: openmenu \"menu_name\"\n");
return;
}
M_StartControlPanel (true);

View file

@ -227,7 +227,7 @@ bool LoadScriptFile (const char *name, bool include, int type)
{
if (type == 0)
{
Printf(TEXTCOLOR_RED "Could not find dialog file %s", name);
Printf(TEXTCOLOR_RED "Could not find dialog file %s\n", name);
}
return false;

View file

@ -3080,7 +3080,7 @@ void FSlide::SlideTraverse(const DVector2 &start, const DVector2 &end)
if (!in->isaline)
{
// should never happen
Printf("PTR_SlideTraverse: not a line?");
Printf("PTR_SlideTraverse: not a line?\n");
continue;
}
@ -3437,7 +3437,7 @@ bool FSlide::BounceTraverse(const DVector2 &start, const DVector2 &end)
if (!in->isaline)
{
Printf("PTR_BounceTraverse: not a line?");
Printf("PTR_BounceTraverse: not a line?\n");
continue;
}

View file

@ -253,7 +253,7 @@ MIDIDevice *MIDIStreamer::CreateMIDIDevice(EMidiDevice devtype, int samplerate)
if (devtype == MDEV_DEFAULT)
{
Printf("Failed to play music: Unable to open any MIDI Device.");
Printf("Failed to play music: Unable to open any MIDI Device.\n");
return nullptr;
}
}
@ -330,7 +330,7 @@ bool MIDIStreamer::DumpWave(const char *filename, int subsong, int samplerate)
auto devtype = SelectMIDIDevice(DeviceType);
if (devtype == MDEV_MMAPI)
{
Printf("MMAPI device is not supported");
Printf("MMAPI device is not supported\n");
return false;
}
MIDI = CreateMIDIDevice(devtype, samplerate);

View file

@ -71,7 +71,7 @@ static bool InitReader(const char *config_file)
auto reader = sfmanager.OpenSoundFont(config_file, SF_GUS|SF_SF2);
if (reader == nullptr)
{
Printf(TEXTCOLOR_RED "%s: Unable to load sound font", config_file);
Printf(TEXTCOLOR_RED "%s: Unable to load sound font\n", config_file);
return false; // No sound font could be opened.
}
gus_sfreader.reset(reader);

View file

@ -740,7 +740,7 @@ void FTextureManager::AddTexturesLump (const void *lumpdata, int lumpsize, int d
// Check whether the amount of names reported is correct.
if ((signed)numpatches < 0)
{
Printf("Corrupt PNAMES lump found (negative amount of entries reported)");
Printf("Corrupt PNAMES lump found (negative amount of entries reported)\n");
return;
}
@ -778,7 +778,7 @@ void FTextureManager::AddTexturesLump (const void *lumpdata, int lumpsize, int d
if (maxoff < uint32_t(numtextures+1)*4)
{
Printf ("Texture directory is too short");
Printf ("Texture directory is too short\n");
delete[] patchlookup;
return;
}
@ -789,7 +789,7 @@ void FTextureManager::AddTexturesLump (const void *lumpdata, int lumpsize, int d
offset = LittleLong(directory[i]);
if (offset > maxoff)
{
Printf ("Bad texture directory");
Printf ("Bad texture directory\n");
delete[] patchlookup;
return;
}
@ -825,7 +825,7 @@ void FTextureManager::AddTexturesLump (const void *lumpdata, int lumpsize, int d
offset = LittleLong(directory[i]);
if (offset > maxoff)
{
Printf ("Bad texture directory");
Printf ("Bad texture directory\n");
delete[] patchlookup;
return;
}

View file

@ -644,7 +644,7 @@ bool I_InitInput (void *hwnd)
hr = di8c(g_hInst, DIRECTINPUT_VERSION, IID_IDirectInput8A, (void **)&g_pdi, NULL);
if (FAILED(hr))
{
Printf(TEXTCOLOR_ORANGE "DirectInput8Create failed: %08lx", hr);
Printf(TEXTCOLOR_ORANGE "DirectInput8Create failed: %08lx\n", hr);
g_pdi = NULL; // Just to be sure DirectInput8Create didn't change it
}
}