mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 22:37:45 +00:00
fix incorrect usage of fatal error logging and switch typedef to using
This commit is contained in:
parent
a59b3185e3
commit
ed882044b1
3 changed files with 6 additions and 7 deletions
|
@ -6,7 +6,7 @@
|
|||
<!-- Ip the lobby server listens on -->
|
||||
<ListenIp>127.0.0.1</ListenIp>
|
||||
<!-- Path of FFXIV dat files -->
|
||||
<DataPath>C:\\SquareEnix\\FINAL FANTASY XIV - A Realm Reborn\\game\\sqpack\\ffxiv</DataPath>
|
||||
<DataPath>H:\\SteamLibrary\\steamapps\\common\\FINAL FANTASY XIV - A Realm Reborn\\game\\sqpack\\ffxiv</DataPath>
|
||||
<!-- <DataPath>/opt/sapphire_3_15_0/bin/sqpack</DataPath> -->
|
||||
<!-- IP of the lobby server -->
|
||||
<LobbyHost>127.0.0.1</LobbyHost>
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
<Settings>
|
||||
|
||||
<General>
|
||||
<!-- Port the zone server accepts game conenctions on -->
|
||||
<ListenPort>54992</ListenPort>
|
||||
<!-- Ip the zone server conenctions on -->
|
||||
<ListenIp>127.0.0.1</ListenIp>
|
||||
<!-- Path of FFXIV dat files -->
|
||||
<DataPath>C:\\SquareEnix\\FINAL FANTASY XIV - A Realm Reborn\\game\\sqpack\\ffxiv</DataPath>
|
||||
<DataPath>H:\\SteamLibrary\\steamapps\\common\\FINAL FANTASY XIV - A Realm Reborn\\game\\sqpack\\ffxiv</DataPath>
|
||||
<!-- Path of Chai script files -->
|
||||
<ScriptPath>./compiledscripts/</ScriptPath>
|
||||
<!-- Connection settings for the mysql db -->
|
||||
|
|
|
@ -31,7 +31,7 @@ bool Core::Scripting::ScriptLoader::unloadModule( ModuleHandle handle )
|
|||
|
||||
if( !success )
|
||||
{
|
||||
g_log.fatal( "Failed to unload module @ 0x" + boost::str( boost::format( "%|08X|" ) % handle ) );
|
||||
g_log.error( "Failed to unload module @ 0x" + boost::str( boost::format( "%|08X|" ) % handle ) );
|
||||
|
||||
return false;
|
||||
}
|
||||
|
@ -78,12 +78,12 @@ Core::Scripting::ScriptInfo* Core::Scripting::ScriptLoader::loadModule( const st
|
|||
|
||||
ScriptObject* Core::Scripting::ScriptLoader::getScriptObject( ModuleHandle handle )
|
||||
{
|
||||
typedef ScriptObject* (*getScriptObjectType)();
|
||||
using getScript = ScriptObject*(*)();
|
||||
|
||||
#ifdef _WIN32
|
||||
getScriptObjectType func = reinterpret_cast< getScriptObjectType >( GetProcAddress( handle, "getScript" ) );
|
||||
getScript func = reinterpret_cast< getScript >( GetProcAddress( handle, "getScript" ) );
|
||||
#else
|
||||
getScriptObjectType func = reinterpret_cast< getScriptObjectType >( dlsym( handle, "getScript" ) );
|
||||
getScript func = reinterpret_cast< getScript >( dlsym( handle, "getScript" ) );
|
||||
#endif
|
||||
|
||||
if( func )
|
||||
|
|
Loading…
Add table
Reference in a new issue