From 3e50dd29261f439800932ccad2eb9febc32d31d9 Mon Sep 17 00:00:00 2001 From: BobTheBob9 Date: Thu, 15 Sep 2022 00:23:49 +0100 Subject: fix more formatting --- NorthstarDLL/miscserverscript.cpp | 3 ++- NorthstarDLL/sourceconsole.h | 3 +-- NorthstarDLL/sourceinterface.cpp | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) (limited to 'NorthstarDLL') diff --git a/NorthstarDLL/miscserverscript.cpp b/NorthstarDLL/miscserverscript.cpp index 3b30dd23..7ae8047f 100644 --- a/NorthstarDLL/miscserverscript.cpp +++ b/NorthstarDLL/miscserverscript.cpp @@ -59,6 +59,7 @@ ON_DLL_LOAD_RELIESON("server.dll", MiscServerScriptCommands, ServerSquirrel, (CM g_pSquirrel->AddFuncRegistration( "void", "NSEarlyWritePlayerIndexPersistenceForLeave", "int playerIndex", "", SQ_EarlyWritePlayerIndexPersistenceForLeave); g_pSquirrel->AddFuncRegistration("bool", "NSIsWritingPlayerPersistence", "", "", SQ_IsWritingPlayerPersistence); - g_pSquirrel->AddFuncRegistration("bool", "NSIsPlayerIndexLocalPlayer", "int playerIndex", "", SQ_IsPlayerIndexLocalPlayer); + g_pSquirrel->AddFuncRegistration( + "bool", "NSIsPlayerIndexLocalPlayer", "int playerIndex", "", SQ_IsPlayerIndexLocalPlayer); g_pSquirrel->AddFuncRegistration("bool", "NSIsDedicated", "", "", SQ_IsDedicated); } diff --git a/NorthstarDLL/sourceconsole.h b/NorthstarDLL/sourceconsole.h index 9f6c2bf8..e811f523 100644 --- a/NorthstarDLL/sourceconsole.h +++ b/NorthstarDLL/sourceconsole.h @@ -99,8 +99,7 @@ class SourceConsoleSink : public spdlog::sinks::base_sink {spdlog::level::warn, SourceColor(255, 255, 0, 255)}, {spdlog::level::err, SourceColor(255, 0, 0, 255)}, {spdlog::level::critical, SourceColor(255, 0, 0, 255)}, - {spdlog::level::off, SourceColor(0, 0, 0, 0)} - }; + {spdlog::level::off, SourceColor(0, 0, 0, 0)}}; protected: void sink_it_(const spdlog::details::log_msg& msg) override; diff --git a/NorthstarDLL/sourceinterface.cpp b/NorthstarDLL/sourceinterface.cpp index 157ce614..d5f7b7cd 100644 --- a/NorthstarDLL/sourceinterface.cpp +++ b/NorthstarDLL/sourceinterface.cpp @@ -42,6 +42,8 @@ void*, __fastcall, (const char* pName, const int* pReturnCode)) return ret; } +// clang-format off ON_DLL_LOAD("client.dll", ClientInterface, (CModule module)) {AUTOHOOK_DISPATCH_MODULE(client.dll)} ON_DLL_LOAD("server.dll", ServerInterface, (CModule module)) {AUTOHOOK_DISPATCH_MODULE(server.dll)} ON_DLL_LOAD("engine.dll", EngineInterface, (CModule module)) {AUTOHOOK_DISPATCH_MODULE(engine.dll)} +// clang-format on -- cgit v1.2.3