Refactor ProcessLogWrite to no longer use type

This commit is contained in:
Akkadius 2015-01-18 01:42:23 -06:00
parent 0926a5ded3
commit 564bff07fe
2 changed files with 5 additions and 5 deletions

View File

@ -110,11 +110,11 @@ void EQEmuLogSys::ProcessGMSay(uint16 log_category, std::string message)
return; return;
if (EQEmuLogSys::log_platform == EQEmuExePlatform::ExePlatformZone){ if (EQEmuLogSys::log_platform == EQEmuExePlatform::ExePlatformZone){
on_log_gmsay_hook(log_type, message); on_log_gmsay_hook(log_category, message);
} }
} }
void EQEmuLogSys::ProcessLogWrite(uint16 log_type, uint16 log_category, std::string message) void EQEmuLogSys::ProcessLogWrite(uint16 log_category, std::string message)
{ {
/* Check if category enabled for process */ /* Check if category enabled for process */
if (log_settings[log_category].log_to_file == 0) if (log_settings[log_category].log_to_file == 0)
@ -177,7 +177,7 @@ void EQEmuLogSys::DebugCategory(DebugLevel debug_level, uint16 log_category, std
EQEmuLogSys::ProcessConsoleMessage(EQEmuLogSys::Debug, log_category, output_debug_message); EQEmuLogSys::ProcessConsoleMessage(EQEmuLogSys::Debug, log_category, output_debug_message);
EQEmuLogSys::ProcessGMSay(log_category, output_debug_message); EQEmuLogSys::ProcessGMSay(log_category, output_debug_message);
EQEmuLogSys::ProcessLogWrite(EQEmuLogSys::Debug, log_category, output_debug_message); EQEmuLogSys::ProcessLogWrite(log_category, output_debug_message);
} }
void EQEmuLogSys::SetCurrentTimeStamp(char* time_stamp){ void EQEmuLogSys::SetCurrentTimeStamp(char* time_stamp){

View File

@ -106,8 +106,8 @@ private:
std::string FormatDebugCategoryMessageString(uint16 log_category, std::string in_message); std::string FormatDebugCategoryMessageString(uint16 log_category, std::string in_message);
void ProcessConsoleMessage(uint16 log_type, uint16 log_category, const std::string message); void ProcessConsoleMessage(uint16 log_type, uint16 log_category, const std::string message);
void ProcessGMSay(uint16 log_type, uint16 log_category, std::string message); void ProcessGMSay(uint16 log_category, std::string message);
void ProcessLogWrite(uint16 log_type, uint16 log_category, std::string message); void ProcessLogWrite(uint16 log_category, std::string message);
}; };
extern EQEmuLogSys Log; extern EQEmuLogSys Log;