Skip to content

Commit d5bdf78

Browse files
committed
Merge pull request #10 from Syphurith/gl
Renamed Symbols for `gl` branch
2 parents 2a7c65c + 5a6869f commit d5bdf78

File tree

3 files changed

+24
-24
lines changed

3 files changed

+24
-24
lines changed

Utilities/Log.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ LogChannel::LogChannel() : LogChannel("unknown")
5757
LogChannel::LogChannel(const std::string& name) :
5858
name(name)
5959
, mEnabled(true)
60-
, mLogLevel(Warning)
60+
, mLogLevel(LogSeverityWarning)
6161
{}
6262

6363
void LogChannel::log(const LogMessage &msg)
@@ -186,16 +186,16 @@ void LogManager::log(LogMessage msg)
186186
std::string prefix;
187187
switch (msg.mServerity)
188188
{
189-
case Success:
189+
case LogSeveritySuccess:
190190
prefix = "S ";
191191
break;
192-
case Notice:
192+
case LogSeverityNotice:
193193
prefix = "! ";
194194
break;
195-
case Warning:
195+
case LogSeverityWarning:
196196
prefix = "W ";
197197
break;
198-
case Error:
198+
case LogSeverityError:
199199
prefix = "E ";
200200
break;
201201
}
@@ -265,12 +265,12 @@ void log_message(Log::LogType type, Log::LogSeverity sev, std::string text)
265265
else
266266
{
267267
rMessageBox(text,
268-
sev == Notice ? "Notice" :
269-
sev == Warning ? "Warning" :
270-
sev == Success ? "Success" :
271-
sev == Error ? "Error" : "Unknown",
272-
sev == Notice ? rICON_INFORMATION :
273-
sev == Warning ? rICON_EXCLAMATION :
274-
sev == Error ? rICON_ERROR : rICON_INFORMATION);
268+
sev == LogSeverityNotice ? "Notice" :
269+
sev == LogSeverityWarning ? "Warning" :
270+
sev == LogSeveritySuccess ? "Success" :
271+
sev == LogSeverityError ? "Error" : "Unknown",
272+
sev == LogSeverityNotice ? rICON_INFORMATION :
273+
sev == LogSeverityWarning ? rICON_EXCLAMATION :
274+
sev == LogSeverityError ? rICON_ERROR : rICON_INFORMATION);
275275
}
276276
}

Utilities/Log.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
//first parameter is of type Log::LogType and text is of type std::string
77

8-
#define LOG_SUCCESS(logType, text, ...) log_message(logType, Log::Success, text, ##__VA_ARGS__)
9-
#define LOG_NOTICE(logType, text, ...) log_message(logType, Log::Notice, text, ##__VA_ARGS__)
10-
#define LOG_WARNING(logType, text, ...) log_message(logType, Log::Warning, text, ##__VA_ARGS__)
11-
#define LOG_ERROR(logType, text, ...) log_message(logType, Log::Error, text, ##__VA_ARGS__)
8+
#define LOG_SUCCESS(logType, text, ...) log_message(logType, Log::LogSeveritySuccess, text, ##__VA_ARGS__)
9+
#define LOG_NOTICE(logType, text, ...) log_message(logType, Log::LogSeverityNotice, text, ##__VA_ARGS__)
10+
#define LOG_WARNING(logType, text, ...) log_message(logType, Log::LogSeverityWarning, text, ##__VA_ARGS__)
11+
#define LOG_ERROR(logType, text, ...) log_message(logType, Log::LogSeverityError, text, ##__VA_ARGS__)
1212

1313
namespace Log
1414
{
@@ -50,10 +50,10 @@ namespace Log
5050

5151
enum LogSeverity : u32
5252
{
53-
Notice = 0,
54-
Warning,
55-
Success,
56-
Error,
53+
LogSeverityNotice = 0,
54+
LogSeverityWarning,
55+
LogSeveritySuccess,
56+
LogSeverityError,
5757
};
5858

5959
struct LogMessage

rpcs3/Gui/ConLogFrame.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,16 @@ struct wxWriter : Log::LogListener
7676
{
7777
switch (msg.mServerity)
7878
{
79-
case Log::Notice:
79+
case Log::LogSeverityNotice:
8080
llogcon->SetDefaultStyle(m_color_white);
8181
break;
82-
case Log::Warning:
82+
case Log::LogSeverityWarning:
8383
llogcon->SetDefaultStyle(m_color_yellow);
8484
break;
85-
case Log::Error:
85+
case Log::LogSeverityError:
8686
llogcon->SetDefaultStyle(m_color_red);
8787
break;
88-
case Log::Success:
88+
case Log::LogSeveritySuccess:
8989
llogcon->SetDefaultStyle(m_color_green);
9090
break;
9191
default:

0 commit comments

Comments
 (0)