mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 14:41:28 +00:00
logger.LoadLogSettings() added after each platform executable registry
Added int return for platform executable
This commit is contained in:
parent
2e397b1383
commit
fac1361d36
@ -35,6 +35,7 @@ void ExportBaseData(SharedDatabase *db);
|
|||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
RegisterExecutablePlatform(ExePlatformClientExport);
|
RegisterExecutablePlatform(ExePlatformClientExport);
|
||||||
|
logger.LoadLogSettings();
|
||||||
set_exception_handler();
|
set_exception_handler();
|
||||||
|
|
||||||
logger.Log(EQEmuLogSys::Status, "Client Files Export Utility");
|
logger.Log(EQEmuLogSys::Status, "Client Files Export Utility");
|
||||||
|
|||||||
@ -33,6 +33,7 @@ void ImportBaseData(SharedDatabase *db);
|
|||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
RegisterExecutablePlatform(ExePlatformClientImport);
|
RegisterExecutablePlatform(ExePlatformClientImport);
|
||||||
|
logger.LoadLogSettings();
|
||||||
set_exception_handler();
|
set_exception_handler();
|
||||||
|
|
||||||
logger.Log(EQEmuLogSys::Status, "Client Files Import Utility");
|
logger.Log(EQEmuLogSys::Status, "Client Files Import Utility");
|
||||||
|
|||||||
@ -10,3 +10,6 @@ const EQEmuExePlatform& GetExecutablePlatform() {
|
|||||||
return exe_platform;
|
return exe_platform;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int GetExecutablePlatformInt(){
|
||||||
|
return exe_platform;
|
||||||
|
}
|
||||||
@ -18,5 +18,6 @@ enum EQEmuExePlatform
|
|||||||
|
|
||||||
void RegisterExecutablePlatform(EQEmuExePlatform p);
|
void RegisterExecutablePlatform(EQEmuExePlatform p);
|
||||||
const EQEmuExePlatform& GetExecutablePlatform();
|
const EQEmuExePlatform& GetExecutablePlatform();
|
||||||
|
int GetExecutablePlatformInt();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -39,6 +39,7 @@ void CatchSignal(int sig_num);
|
|||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
RegisterExecutablePlatform(ExePlatformLaunch);
|
RegisterExecutablePlatform(ExePlatformLaunch);
|
||||||
|
logger.LoadLogSettings();
|
||||||
set_exception_handler();
|
set_exception_handler();
|
||||||
|
|
||||||
std::string launcher_name;
|
std::string launcher_name;
|
||||||
|
|||||||
@ -50,6 +50,7 @@ void CatchSignal(int sig_num) {
|
|||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
RegisterExecutablePlatform(ExePlatformQueryServ);
|
RegisterExecutablePlatform(ExePlatformQueryServ);
|
||||||
|
logger.LoadLogSettings();
|
||||||
set_exception_handler();
|
set_exception_handler();
|
||||||
Timer LFGuildExpireTimer(60000);
|
Timer LFGuildExpireTimer(60000);
|
||||||
Timer InterserverTimer(INTERSERVER_TIMER); // does auto-reconnect
|
Timer InterserverTimer(INTERSERVER_TIMER); // does auto-reconnect
|
||||||
|
|||||||
@ -37,6 +37,7 @@ EQEmuLogSys logger;
|
|||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
RegisterExecutablePlatform(ExePlatformSharedMemory);
|
RegisterExecutablePlatform(ExePlatformSharedMemory);
|
||||||
|
logger.LoadLogSettings();
|
||||||
set_exception_handler();
|
set_exception_handler();
|
||||||
|
|
||||||
logger.Log(EQEmuLogSys::Status, "Shared Memory Loader Program");
|
logger.Log(EQEmuLogSys::Status, "Shared Memory Loader Program");
|
||||||
|
|||||||
@ -69,6 +69,7 @@ std::string GetMailPrefix() {
|
|||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
RegisterExecutablePlatform(ExePlatformUCS);
|
RegisterExecutablePlatform(ExePlatformUCS);
|
||||||
|
logger.LoadLogSettings();
|
||||||
set_exception_handler();
|
set_exception_handler();
|
||||||
|
|
||||||
// Check every minute for unused channels we can delete
|
// Check every minute for unused channels we can delete
|
||||||
|
|||||||
@ -105,12 +105,15 @@ uint32 numclients = 0;
|
|||||||
uint32 numzones = 0;
|
uint32 numzones = 0;
|
||||||
bool holdzones = false;
|
bool holdzones = false;
|
||||||
|
|
||||||
|
EQEmuLogSys logger;
|
||||||
|
|
||||||
extern ConsoleList console_list;
|
extern ConsoleList console_list;
|
||||||
|
|
||||||
void CatchSignal(int sig_num);
|
void CatchSignal(int sig_num);
|
||||||
|
|
||||||
int main(int argc, char** argv) {
|
int main(int argc, char** argv) {
|
||||||
RegisterExecutablePlatform(ExePlatformWorld);
|
RegisterExecutablePlatform(ExePlatformWorld);
|
||||||
|
logger.LoadLogSettings();
|
||||||
set_exception_handler();
|
set_exception_handler();
|
||||||
|
|
||||||
/* Database Version Check */
|
/* Database Version Check */
|
||||||
|
|||||||
@ -17,6 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define DONT_SHARED_OPCODES
|
#define DONT_SHARED_OPCODES
|
||||||
|
#define PLATFORM_ZONE 1
|
||||||
|
|
||||||
#include "../common/debug.h"
|
#include "../common/debug.h"
|
||||||
#include "../common/features.h"
|
#include "../common/features.h"
|
||||||
@ -42,7 +43,6 @@
|
|||||||
#include "../common/memory_mapped_file.h"
|
#include "../common/memory_mapped_file.h"
|
||||||
#include "../common/eqemu_exception.h"
|
#include "../common/eqemu_exception.h"
|
||||||
#include "../common/spdat.h"
|
#include "../common/spdat.h"
|
||||||
|
|
||||||
#include "../common/eqemu_logsys.h"
|
#include "../common/eqemu_logsys.h"
|
||||||
|
|
||||||
#include "zone_config.h"
|
#include "zone_config.h"
|
||||||
@ -114,6 +114,7 @@ extern void MapOpcodes();
|
|||||||
|
|
||||||
int main(int argc, char** argv) {
|
int main(int argc, char** argv) {
|
||||||
RegisterExecutablePlatform(ExePlatformZone);
|
RegisterExecutablePlatform(ExePlatformZone);
|
||||||
|
logger.LoadLogSettings();
|
||||||
set_exception_handler();
|
set_exception_handler();
|
||||||
|
|
||||||
const char *zone_name;
|
const char *zone_name;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user