Skip to content

Commit a83202f

Browse files
committed
v1.0.0.4 Fixed return pointers, issue with passing string as arg
v1.0.0.4 Fixed return pointers, issue with passing string as arg Cleanup code
1 parent f845914 commit a83202f

File tree

13 files changed

+70
-1358
lines changed

13 files changed

+70
-1358
lines changed

source/core/DllMain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public ref class ScriptHookRDRDotNet
5454
[RDR2DN::ConsoleCommand("Reload all scripts from the scripts directory")]
5555
static void Reload()
5656
{
57-
console->PrintInfo("~y~Reloading ...");
57+
//console->PrintInfo("~y~Reloading ...");
5858

5959
// Force a reload on next tick
6060
sGameReloaded = true;

source/core/NativeFunc.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public void Run()
5858
/// <param name="str">The string to push.</param>
5959
static void PushString(string str)
6060
{
61+
6162
var domain = RDR2DN.ScriptDomain.CurrentDomain;
6263
if (domain == null)
6364
{
@@ -69,7 +70,7 @@ static void PushString(string str)
6970

7071
conargs[3] = (ulong)strUtf8.ToInt64();
7172
domain.ExecuteTask(new NativeTask {
72-
Hash = 0xFA925AC00EB830B9 /*ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME*/,
73+
Hash = 0xFA925AC00EB830B9,
7374
Arguments = conargs
7475
});
7576
}

0 commit comments

Comments
 (0)