logger.LoadLogSettings() added after each platform executable registry

Added int return for platform executable
This commit is contained in:
Akkadius 2015-01-12 05:15:31 -06:00
parent 2e397b1383
commit fac1361d36
10 changed files with 15 additions and 1 deletions

View File

@ -35,6 +35,7 @@ void ExportBaseData(SharedDatabase *db);
int main(int argc, char **argv) {
RegisterExecutablePlatform(ExePlatformClientExport);
logger.LoadLogSettings();
set_exception_handler();
logger.Log(EQEmuLogSys::Status, "Client Files Export Utility");

View File

@ -33,6 +33,7 @@ void ImportBaseData(SharedDatabase *db);
int main(int argc, char **argv) {
RegisterExecutablePlatform(ExePlatformClientImport);
logger.LoadLogSettings();
set_exception_handler();
logger.Log(EQEmuLogSys::Status, "Client Files Import Utility");

View File

@ -10,3 +10,6 @@ const EQEmuExePlatform& GetExecutablePlatform() {
return exe_platform;
}
int GetExecutablePlatformInt(){
return exe_platform;
}

View File

@ -18,5 +18,6 @@ enum EQEmuExePlatform
void RegisterExecutablePlatform(EQEmuExePlatform p);
const EQEmuExePlatform& GetExecutablePlatform();
int GetExecutablePlatformInt();
#endif

View File

@ -39,6 +39,7 @@ void CatchSignal(int sig_num);
int main(int argc, char *argv[]) {
RegisterExecutablePlatform(ExePlatformLaunch);
logger.LoadLogSettings();
set_exception_handler();
std::string launcher_name;

View File

@ -50,6 +50,7 @@ void CatchSignal(int sig_num) {
int main() {
RegisterExecutablePlatform(ExePlatformQueryServ);
logger.LoadLogSettings();
set_exception_handler();
Timer LFGuildExpireTimer(60000);
Timer InterserverTimer(INTERSERVER_TIMER); // does auto-reconnect

View File

@ -37,6 +37,7 @@ EQEmuLogSys logger;
int main(int argc, char **argv) {
RegisterExecutablePlatform(ExePlatformSharedMemory);
logger.LoadLogSettings();
set_exception_handler();
logger.Log(EQEmuLogSys::Status, "Shared Memory Loader Program");

View File

@ -69,6 +69,7 @@ std::string GetMailPrefix() {
int main() {
RegisterExecutablePlatform(ExePlatformUCS);
logger.LoadLogSettings();
set_exception_handler();
// Check every minute for unused channels we can delete

View File

@ -105,12 +105,15 @@ uint32 numclients = 0;
uint32 numzones = 0;
bool holdzones = false;
EQEmuLogSys logger;
extern ConsoleList console_list;
void CatchSignal(int sig_num);
int main(int argc, char** argv) {
RegisterExecutablePlatform(ExePlatformWorld);
logger.LoadLogSettings();
set_exception_handler();
/* Database Version Check */

View File

@ -17,6 +17,7 @@
*/
#define DONT_SHARED_OPCODES
#define PLATFORM_ZONE 1
#include "../common/debug.h"
#include "../common/features.h"
@ -42,7 +43,6 @@
#include "../common/memory_mapped_file.h"
#include "../common/eqemu_exception.h"
#include "../common/spdat.h"
#include "../common/eqemu_logsys.h"
#include "zone_config.h"
@ -114,6 +114,7 @@ extern void MapOpcodes();
int main(int argc, char** argv) {
RegisterExecutablePlatform(ExePlatformZone);
logger.LoadLogSettings();
set_exception_handler();
const char *zone_name;