From 1fa0c550770612f1873a5304dc0ee0ba2811f8fd Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Wed, 24 Aug 2022 23:38:10 +0200 Subject: Fix line endings (hopefully) (#244) * Fix line endings (hopefully) * Fix more line endings --- NorthstarDLL/scriptutility.cpp | 44 +++++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'NorthstarDLL/scriptutility.cpp') diff --git a/NorthstarDLL/scriptutility.cpp b/NorthstarDLL/scriptutility.cpp index cc4c0c00..db26cf31 100644 --- a/NorthstarDLL/scriptutility.cpp +++ b/NorthstarDLL/scriptutility.cpp @@ -1,23 +1,23 @@ -#include "pch.h" -#include "squirrel.h" - -// asset function StringToAsset( string assetName ) -template SQRESULT SQ_StringToAsset(HSquirrelVM* sqvm) -{ - g_pSquirrel->pushasset(sqvm, g_pSquirrel->getstring(sqvm, 1), -1); - return SQRESULT_NOTNULL; -} - -ON_DLL_LOAD_CLIENT_RELIESON("client.dll", ClientSharedScriptUtility, ClientSquirrel, (CModule module)) -{ - g_pSquirrel->AddFuncRegistration( - "asset", "StringToAsset", "string assetName", "converts a given string to an asset", SQ_StringToAsset); - g_pSquirrel->AddFuncRegistration( - "asset", "StringToAsset", "string assetName", "converts a given string to an asset", SQ_StringToAsset); -} - -ON_DLL_LOAD_RELIESON("server.dll", ServerSharedScriptUtility, ServerSquirrel, (CModule module)) -{ - g_pSquirrel->AddFuncRegistration( - "asset", "StringToAsset", "string assetName", "converts a given string to an asset", SQ_StringToAsset); +#include "pch.h" +#include "squirrel.h" + +// asset function StringToAsset( string assetName ) +template SQRESULT SQ_StringToAsset(HSquirrelVM* sqvm) +{ + g_pSquirrel->pushasset(sqvm, g_pSquirrel->getstring(sqvm, 1), -1); + return SQRESULT_NOTNULL; +} + +ON_DLL_LOAD_CLIENT_RELIESON("client.dll", ClientSharedScriptUtility, ClientSquirrel, (CModule module)) +{ + g_pSquirrel->AddFuncRegistration( + "asset", "StringToAsset", "string assetName", "converts a given string to an asset", SQ_StringToAsset); + g_pSquirrel->AddFuncRegistration( + "asset", "StringToAsset", "string assetName", "converts a given string to an asset", SQ_StringToAsset); +} + +ON_DLL_LOAD_RELIESON("server.dll", ServerSharedScriptUtility, ServerSquirrel, (CModule module)) +{ + g_pSquirrel->AddFuncRegistration( + "asset", "StringToAsset", "string assetName", "converts a given string to an asset", SQ_StringToAsset); } \ No newline at end of file -- cgit v1.2.3