Skip to content
This repository has been archived by the owner on Dec 22, 2024. It is now read-only.

Commit

Permalink
First changes for 0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fr-Pursuit committed May 25, 2020
1 parent e5ae578 commit fdb124b
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 22 deletions.
2 changes: 2 additions & 0 deletions AsiSupport/ASI/AsiThread.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.ExceptionServices;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
Expand Down Expand Up @@ -36,6 +37,7 @@ public void Start()
else Log.Error("Unable to start AsiThread \"" + this.Name + "\": no function specified.");
}

[HandleProcessCorruptedStateExceptions]
private void RunFiber()
{
Log.Info("Starting new GameFiber: \"" + this.Name + '"');
Expand Down
2 changes: 1 addition & 1 deletion AsiSupport/App.meta
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#AsiSupport application metadata

DevStage=BETA
VersionType=BETA
16 changes: 11 additions & 5 deletions AsiSupport/AsiSupport.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>AsiSupport</RootNamespace>
<AssemblyName>AsiSupport</AssemblyName>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -34,11 +35,16 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<Reference Include="PursuitLib">
<HintPath>..\..\..\..\Libraries\PursuitLib\Windows\bin\Release\PursuitLib.dll</HintPath>
<Reference Include="PursuitLib, Version=0.10.1.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\Libraries\PursuitLib\PursuitLib\bin\Release\PursuitLib.dll</HintPath>
</Reference>
<Reference Include="PursuitLib.RPH">
<HintPath>..\..\..\..\Libraries\PursuitLib\RPH\bin\Release\PursuitLib.RPH.dll</HintPath>
<Reference Include="PursuitLib.RPH, Version=0.1.1.0, Culture=neutral, processorArchitecture=AMD64">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\Libraries\PursuitLib\PursuitLib.RPH\bin\Release\PursuitLib.RPH.dll</HintPath>
</Reference>
<Reference Include="PursuitLib.Windows">
<HintPath>..\..\..\..\Libraries\PursuitLib\PursuitLib.Windows\bin\Release\PursuitLib.Windows.dll</HintPath>
</Reference>
<Reference Include="RagePluginHookSDK">
<HintPath>..\..\..\..\Libraries\RagePluginHook\RagePluginHookSDK.dll</HintPath>
Expand Down
2 changes: 1 addition & 1 deletion AsiSupport/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class Config : ConfigFile

public bool IgnoreUnknownNatives { get; set; } = true;

public bool EnableSHVDNSupport { get; set; } = true;
public bool EnableSHVDNSupport { get; set; } = false;

public Config() : base(Support.Instance.ConfigFile, true) {}
}
Expand Down
4 changes: 2 additions & 2 deletions AsiSupport/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.4.0")]
[assembly: AssemblyFileVersion("0.4.0")]
[assembly: AssemblyVersion("0.4.1")]
[assembly: AssemblyFileVersion("0.4.1")]
2 changes: 0 additions & 2 deletions AsiSupport/SHVDN.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ public static void Init()

foreach(string filename in Directory.EnumerateFiles(Support.Instance.WorkingDirectory, "ScriptHookVDotNet-univ*.dll"))
{
Log.Info("File: " + filename);

Assembly assembly;

try
Expand Down
16 changes: 6 additions & 10 deletions AsiSupport/Support.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using AsiSupport.ASI;
using AsiSupport.ASI;
using AsiSupport.Managers;
using PursuitLib;
using PursuitLib.Extensions;
using PursuitLib.IO;
using PursuitLib.RPH;
using Rage;
using System;
using System.IO;
using System.Text;

namespace AsiSupport
{
Expand All @@ -38,10 +34,10 @@ public Support()
protected override void Tick()
{
if(!Game.IsLoading && !this.initialized) //Do not load plugins while the game is loading, it will cause a crash
this.Initialize();
this.InitSupport();
}

private void Initialize()
private void InitSupport()
{
Game.FadeScreenOut(0);
GameFiber.Wait(1000);
Expand Down
5 changes: 5 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__0.4.1__
* SHVDN support is now disabled by default (because of its instability)
* The versions manifest has been updated (up to version 1.0.1868.1)
* Process corrupted state exceptions (ie: AccessViolations) are now properly handled.

__0.4.0__
* The maximum number of native arguments has been increased from 25 to 32
* All argument buffers are now pre-allocated: this should improve the plugin's overall performance
Expand Down
2 changes: 1 addition & 1 deletion ReadMe.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ IV) Credits
V) License

ASI Support for RAGE Plugin Hook
Copyright � 2018 Pursuit
Copyright � 2019 Pursuit

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down

0 comments on commit fdb124b

Please sign in to comment.