Skip to content

Commit

Permalink
Release 2.3.1 metadata & Readme improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
space928 committed Nov 20, 2023
1 parent 6b1c257 commit 5162014
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 3 deletions.
4 changes: 2 additions & 2 deletions OmsiHook/OmsiHook.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<Description>OmsiHook is a simple library for hooking into Omsi's memory for modding.</Description>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AssemblyVersion>2.2.0.1</AssemblyVersion>
<FileVersion>2.2.0.1</FileVersion>
<AssemblyVersion>2.3.1.1</AssemblyVersion>
<FileVersion>2.3.1.1</FileVersion>
<Version>2.3.1</Version>
<PackageLicenseExpression>LGPL-3.0-only</PackageLicenseExpression>
<SignAssembly>False</SignAssembly>
Expand Down
2 changes: 1 addition & 1 deletion OmsiHook/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"_enableNewTab": true,
"_disableContribution": true,
"_disableBreadcrumb": false,
"_DocumentationVersion": "2.2.0"
"_DocumentationVersion": "2.3.1"
},
"content": [
{
Expand Down
1 change: 1 addition & 0 deletions OmsiHookRPCPlugin/OmsiHookRPCPlugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
<PackageIcon>Logo.png</PackageIcon>
<PackageLicenseExpression>LGPL-3.0-only</PackageLicenseExpression>
<SignAssembly>False</SignAssembly>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
</PropertyGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="xcopy &quot;$(SolutionDir)$(Configuration)\*.dll&quot; &quot;$(OutDir)&quot; /y&#xD;&#xA;xcopy &quot;$(SolutionDir)$(Configuration)\*.pdb&quot; &quot;$(OutDir)&quot; /y&#xD;&#xA;if not defined OmsiDir (&#xD;&#xA; set &quot;OmsiDir=D:\Program Files\OMSI 2\&quot;&#xD;&#xA;)&#xD;&#xA;if exist &quot;%25OmsiDir%25plugins\&quot; (&#xD;&#xA; xcopy &quot;$(OutDir)*.dll&quot; &quot;%25OmsiDir%25plugins\&quot; /y /c&#xD;&#xA; xcopy &quot;$(OutDir)*.pdb&quot; &quot;%25OmsiDir%25plugins\&quot; /y /c&#xD;&#xA; xcopy &quot;$(OutDir)*.opl&quot; &quot;%25OmsiDir%25plugins\&quot; /y /c &#xD;&#xA; xcopy &quot;$(OutDir)*.runtimeconfig.json&quot; &quot;%25OmsiDir%25plugins\&quot; /y /c&#xD;&#xA;)" />
Expand Down
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class Program
}
}
```
See the `OmsiExtensionsCLI` [Program.cs](OmsiExtensionsCLI/Program.cs) for more examples using OmsiHook.

## Project Structure
This repository contains the source for the OmsiHook and OmsiHookInvoker libraries as well as template
Expand All @@ -55,10 +56,30 @@ Here's a summary of the project structure:
┃ exposing Omsi's internal data.
┠─► \OmsiHookInvoker\ -> C++ plugin for invoking native Omsi methods from OmsiHook,
┃ only used by OmsiHook.
┠─► \OmsiHookRPCPlugin\ -> An Omsi plugin which exposes native methods from OmsiHookInvoker
┃ to other processes using OmsiHook.
┠─► \OmsiExtensionsCLI\ -> Example command line application that uses OmsiHook; runs
┃ outside of Omsi.
┠─► \OmsiExtensionsUI\ -> Example Avalonia UI (similar to WPF) application that uses
┃ OmsiHook; runs outside of Omsi.
┖─► \OmsiHookPlugin\ -> Example plugin that uses OmsiHook and compiles to a native
Omsi plugin by using DNNE.
```

## Building
The project requires .NET 6 SDK to build and only works on Windows x86_32. Because of the nature of
the project dependencies, sometimes Visual Studio gets the build order wrong (especially for projects
depending on OmsiHookInvoker). When updating to a new version of OmsiHook or if you make changes to
OmsiHookInvoker you may need to clean and rebuild the solution; if you're really struggling delete the
contents of the following directories:
```
Omsi-Extensions\Debug
Omsi-Extensions\Release
Omsi-Extensions\OmsiExtensionsCLI\bin\
Omsi-Extensions\OmsiHookPlugin\bin\
```
The project can be configured to automatically copy binaries to your Omsi directory. To do so set the
`OmsiDir` environment variable to your Omsi directory (eg: `set "OmsiDir=C:\Program Files\OMSI 2\"`).
You can also set it by editing the Post-build event action in the `OmsiHookRPCPlugin.csproj` and
`OmsiHookPlugin.csproj` project files. Note that the binaries are only copied when `OmsiHookRPCPlugin`
or `OmsiHookPlugin` is rebuilt.

0 comments on commit 5162014

Please sign in to comment.