Skip to content

Commit 3a116a9

Browse files
authored
Merge pull request #1 from Shichien/feat/dual-platform-refactor
Support Hollow Knight Replay and Project Refactor
2 parents 42fb3e4 + bbf4935 commit 3a116a9

37 files changed

Lines changed: 818 additions & 281 deletions

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@
1111
*.sln.docstates
1212
*.env
1313

14+
# Local game paths used by this repository
15+
.config/local/SilksongPath.props
16+
.config/local/HollowKnightPath.props
17+
obj/ss/
18+
obj/hk/
19+
bin/
20+
1421
# User-specific files (MonoDevelop/Xamarin Studio)
1522
*.userprefs
1623

Directory.Build.props

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<Project>
2+
<PropertyGroup>
3+
<!-- These properties will control the generated plugin info and Thunderstore manifest. -->
4+
<!--
5+
This is the name of your plugin as it would appear in-game and in a mod installer.
6+
Allowed characters are A-Z, a-z, 0-9 and _
7+
-->
8+
<AssemblyTitle>ReplayTimerMod</AssemblyTitle>
9+
<!--
10+
This is the version of your plugin as it would appear in-game and in a mod installer.
11+
It should follow the format major.minor.patch (semantic versioning). If you publish your mod
12+
as a library to NuGet, this version will also be used as the package version.
13+
-->
14+
<Version>0.1.0</Version>
15+
<DefaultItemExcludes>$(DefaultItemExcludes);obj\**;obj\ss\**;obj\hk\**</DefaultItemExcludes>
16+
</PropertyGroup>
17+
18+
<PropertyGroup Condition="'$(MSBuildProjectFile)' == 'ReplayTimerMod.SS.csproj'">
19+
<BaseIntermediateOutputPath>$(MSBuildThisFileDirectory)obj\ss\</BaseIntermediateOutputPath>
20+
<OutputPath>$(MSBuildThisFileDirectory)obj\ss\$(Configuration)\</OutputPath>
21+
</PropertyGroup>
22+
23+
<PropertyGroup Condition="'$(MSBuildProjectFile)' == 'ReplayTimerMod.HK.csproj'">
24+
<BaseIntermediateOutputPath>$(MSBuildThisFileDirectory)obj\hk\</BaseIntermediateOutputPath>
25+
<OutputPath>$(MSBuildThisFileDirectory)obj\hk\$(Configuration)\</OutputPath>
26+
</PropertyGroup>
27+
28+
</Project>

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,23 @@ ColorR = 1
3636
ColorG = 1
3737
ColorB = 1
3838
Alpha = 0.4
39-
```
39+
```
40+
41+
## Build for Hollow Knight
42+
43+
This repository now includes a Hollow Knight build target:
44+
45+
- Project: `src/HollowKnight/ReplayTimerMod.HK.csproj`
46+
- Local path config: `.config/local/HollowKnightPath.props`
47+
48+
Steps:
49+
50+
1. Edit `.config/local/HollowKnightPath.props` to point at your HK install and `hollow_knight_Data/Managed` folder.
51+
2. Build with:
52+
`dotnet build src/HollowKnight/ReplayTimerMod.HK.csproj -c Release`
53+
3. Build output is written only inside this repo (no auto-copy into game folders):
54+
`obj/hk/Release/dist/ReplayTimerMod/ReplayTimerMod.HK.dll`
55+
4. Release zip is generated automatically in Release builds:
56+
`obj/hk/Release/dist/ReplayTimerMod.HK-v<version>.zip`
57+
58+
To install manually in HK/Lumafly, extract/copy `ReplayTimerMod.HK.dll` into `hollow_knight_Data/Managed/Mods/ReplayTimerMod`.

ReplayTimerMod.slnx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
<Solution>
2-
<Project Path="ReplayTimerMod/ReplayTimerMod.csproj" />
2+
<Project Path="src/Silksong/ReplayTimerMod.SS.csproj" />
3+
<Project Path="src/HollowKnight/ReplayTimerMod.HK.csproj" />
34
</Solution>

ReplayTimerMod/Directory.Build.props

Lines changed: 0 additions & 16 deletions
This file was deleted.

ReplayTimerMod/LoadRemover.cs

Lines changed: 0 additions & 75 deletions
This file was deleted.

ReplayTimerMod/SilksongPath.props

Lines changed: 0 additions & 7 deletions
This file was deleted.

ReplayTimerMod/src/GameHooks.cs

Lines changed: 0 additions & 68 deletions
This file was deleted.

ReplayTimerMod/src/LoadRemover.cs

Lines changed: 0 additions & 71 deletions
This file was deleted.

0 commit comments

Comments
 (0)