"stuff"
This commit is contained in:
@ -133,12 +133,13 @@
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\bin\$(Configuration)\Client\SubProcess\ref\RageCoop.Client.CefHost.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="ScriptHookVDotNet">
|
||||
<HintPath>..\..\libs\ScriptHookVDotNet.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="ScriptHookVDotNet3">
|
||||
<HintPath>..\..\libs\ScriptHookVDotNet3.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="ScriptHookVDotNet">
|
||||
<HintPath>..\..\libs\ScriptHookVDotNet.asi</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Drawing.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
|
@ -265,7 +265,32 @@ namespace RageCoop.Client.Scripting
|
||||
|
||||
private static InputArgument GetInputArgument(object obj)
|
||||
{
|
||||
return Unsafe.As<InputArgument>(obj);
|
||||
// Implicit conversion
|
||||
switch (obj)
|
||||
{
|
||||
case byte stuff:
|
||||
return stuff;
|
||||
case short stuff:
|
||||
return stuff;
|
||||
case ushort stuff:
|
||||
return stuff;
|
||||
case int stuff:
|
||||
return stuff;
|
||||
case uint stuff:
|
||||
return stuff;
|
||||
case long stuff:
|
||||
return stuff;
|
||||
case ulong stuff:
|
||||
return stuff;
|
||||
case float stuff:
|
||||
return stuff;
|
||||
case bool stuff:
|
||||
return stuff;
|
||||
case string stuff:
|
||||
return stuff;
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -35,7 +35,7 @@ internal class Program
|
||||
|
||||
Environment.Exit(i);
|
||||
}
|
||||
|
||||
|
||||
AppDomain.CurrentDomain.UnhandledException += UnhandledException;
|
||||
mainLogger = new Logger
|
||||
{
|
||||
|
@ -15,7 +15,7 @@ using System.Resources;
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Version information
|
||||
[assembly: AssemblyVersion("1.6.0.4")]
|
||||
[assembly: AssemblyFileVersion("1.6.0.4")]
|
||||
[assembly: AssemblyVersion("1.6.0.10")]
|
||||
[assembly: AssemblyFileVersion("1.6.0.10")]
|
||||
[assembly: NeutralResourcesLanguageAttribute( "en-US" )]
|
||||
|
||||
|
BIN
libs/ScriptHookVDotNet.asi
Normal file
BIN
libs/ScriptHookVDotNet.asi
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user