diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2022-08-24 23:38:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-24 22:38:10 +0100 |
commit | 1fa0c550770612f1873a5304dc0ee0ba2811f8fd (patch) | |
tree | 4bf6aac042a5f702adb1d071464c1922bd147ce1 /NorthstarDLL/scriptutility.cpp | |
parent | 6fa65f27a8f9708a977deec8fe13b9a863792aa4 (diff) | |
download | NorthstarLauncher-1fa0c550770612f1873a5304dc0ee0ba2811f8fd.tar.gz NorthstarLauncher-1fa0c550770612f1873a5304dc0ee0ba2811f8fd.zip |
Fix line endings (hopefully) (#244)
* Fix line endings (hopefully)
* Fix more line endings
Diffstat (limited to 'NorthstarDLL/scriptutility.cpp')
-rw-r--r-- | NorthstarDLL/scriptutility.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
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 <ScriptContext context> SQRESULT SQ_StringToAsset(HSquirrelVM* sqvm)
-{
- g_pSquirrel<context>->pushasset(sqvm, g_pSquirrel<context>->getstring(sqvm, 1), -1);
- return SQRESULT_NOTNULL;
-}
-
-ON_DLL_LOAD_CLIENT_RELIESON("client.dll", ClientSharedScriptUtility, ClientSquirrel, (CModule module))
-{
- g_pSquirrel<ScriptContext::CLIENT>->AddFuncRegistration(
- "asset", "StringToAsset", "string assetName", "converts a given string to an asset", SQ_StringToAsset<ScriptContext::CLIENT>);
- g_pSquirrel<ScriptContext::UI>->AddFuncRegistration(
- "asset", "StringToAsset", "string assetName", "converts a given string to an asset", SQ_StringToAsset<ScriptContext::UI>);
-}
-
-ON_DLL_LOAD_RELIESON("server.dll", ServerSharedScriptUtility, ServerSquirrel, (CModule module))
-{
- g_pSquirrel<ScriptContext::SERVER>->AddFuncRegistration(
- "asset", "StringToAsset", "string assetName", "converts a given string to an asset", SQ_StringToAsset<ScriptContext::SERVER>);
+#include "pch.h" +#include "squirrel.h" + +// asset function StringToAsset( string assetName ) +template <ScriptContext context> SQRESULT SQ_StringToAsset(HSquirrelVM* sqvm) +{ + g_pSquirrel<context>->pushasset(sqvm, g_pSquirrel<context>->getstring(sqvm, 1), -1); + return SQRESULT_NOTNULL; +} + +ON_DLL_LOAD_CLIENT_RELIESON("client.dll", ClientSharedScriptUtility, ClientSquirrel, (CModule module)) +{ + g_pSquirrel<ScriptContext::CLIENT>->AddFuncRegistration( + "asset", "StringToAsset", "string assetName", "converts a given string to an asset", SQ_StringToAsset<ScriptContext::CLIENT>); + g_pSquirrel<ScriptContext::UI>->AddFuncRegistration( + "asset", "StringToAsset", "string assetName", "converts a given string to an asset", SQ_StringToAsset<ScriptContext::UI>); +} + +ON_DLL_LOAD_RELIESON("server.dll", ServerSharedScriptUtility, ServerSquirrel, (CModule module)) +{ + g_pSquirrel<ScriptContext::SERVER>->AddFuncRegistration( + "asset", "StringToAsset", "string assetName", "converts a given string to an asset", SQ_StringToAsset<ScriptContext::SERVER>); }
\ No newline at end of file |