mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
a couple consistency extension changes
iniErrorReport is a log file, all other log files have .log extension, so make it consistent with that make Ja2_settings.ini's extension lowercase. OCD, sorry.
This commit is contained in:
committed by
majcosta
parent
86ad401186
commit
184b44c386
@@ -45,7 +45,7 @@
|
|||||||
#include <vfs/Core/vfs_file_raii.h>
|
#include <vfs/Core/vfs_file_raii.h>
|
||||||
#include <vfs/Core/File/vfs_file.h>
|
#include <vfs/Core/File/vfs_file.h>
|
||||||
|
|
||||||
#define GAME_SETTINGS_FILE "Ja2_Settings.INI"
|
#define GAME_SETTINGS_FILE "Ja2_Settings.ini"
|
||||||
|
|
||||||
#define FEATURE_FLAGS_FILE "Ja2_Features.ini"
|
#define FEATURE_FLAGS_FILE "Ja2_Features.ini"
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -397,7 +397,7 @@ UINT32 InitScreenHandle(void)
|
|||||||
// Handle queued .ini file error messages
|
// Handle queued .ini file error messages
|
||||||
int y = 40;
|
int y = 40;
|
||||||
sgp::Logger_ID ini_id = sgp::Logger::instance().createLogger();
|
sgp::Logger_ID ini_id = sgp::Logger::instance().createLogger();
|
||||||
sgp::Logger::instance().connectFile(ini_id, L"iniErrorReport.txt", false, sgp::Logger::FLUSH_ON_DELETE);
|
sgp::Logger::instance().connectFile(ini_id, L"iniErrorReport.log", false, sgp::Logger::FLUSH_ON_DELETE);
|
||||||
sgp::Logger::LogInstance logger = sgp::Logger::instance().logger(ini_id);
|
sgp::Logger::LogInstance logger = sgp::Logger::instance().logger(ini_id);
|
||||||
while (! iniErrorMessages.empty()) {
|
while (! iniErrorMessages.empty()) {
|
||||||
static BOOL iniErrorMessage_create_out_file = TRUE;
|
static BOOL iniErrorMessage_create_out_file = TRUE;
|
||||||
@@ -407,7 +407,7 @@ UINT32 InitScreenHandle(void)
|
|||||||
if (iniErrorMessage_create_out_file)
|
if (iniErrorMessage_create_out_file)
|
||||||
{
|
{
|
||||||
y += 25;
|
y += 25;
|
||||||
swprintf( str, L"%S", "Warning: found the following ini errors. iniErrorReport.txt has been created." );
|
swprintf( str, L"%S", "Warning: found the following ini errors. iniErrorReport.log has been created." );
|
||||||
DisplayWrappedString( 10, y, 560, 2, FONT12ARIAL, FONT_ORANGE, str, FONT_BLACK, TRUE, LEFT_JUSTIFIED );
|
DisplayWrappedString( 10, y, 560, 2, FONT12ARIAL, FONT_ORANGE, str, FONT_BLACK, TRUE, LEFT_JUSTIFIED );
|
||||||
iniErrorMessage_create_out_file = FALSE;
|
iniErrorMessage_create_out_file = FALSE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user