-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
51 lines (42 loc) · 2.69 KB
/
Copy pathDirectory.Build.props
File metadata and controls
51 lines (42 loc) · 2.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<Project>
<!--
Where the game lives. Only needed to deploy the built plugin straight into the game;
VicMod itself compiles against NuGet packages alone, so a clone with no game installed
still builds.
Set it, in order of precedence:
1. GameDir on the command line dotnet build -p:GameDir="/path/to/Waterpark Simulator"
2. Local.props next to this file (gitignored) with <GameDir>...</GameDir>
3. The GAME_DIR environment variable, which the scripts in scripts/ use too
4. The guesses below
If none of them resolve, the build still succeeds; it just skips the copy and says so.
-->
<Import Project="Local.props" Condition="Exists('Local.props')" />
<PropertyGroup>
<GameName>WaterparkSimulator</GameName>
<GameDir Condition="'$(GameDir)' == ''">$(GAME_DIR)</GameDir>
</PropertyGroup>
<!-- Steam's usual homes, checked in order; the store folder has been spelled both ways. -->
<PropertyGroup Condition="'$(GameDir)' == ''">
<_Steam Condition="'$(OS)' == 'Windows_NT'">$(ProgramFiles) (x86)\Steam\steamapps\common</_Steam>
<_Steam Condition="'$(OS)' != 'Windows_NT'">$(HOME)/.steam/steam/steamapps/common</_Steam>
<_Steam2 Condition="'$(OS)' != 'Windows_NT'">$(HOME)/.local/share/Steam/steamapps/common</_Steam2>
</PropertyGroup>
<PropertyGroup Condition="'$(GameDir)' == ''">
<GameDir Condition="Exists('$(_Steam)/Waterpark Simulator/$(GameName)_Data')">$(_Steam)/Waterpark Simulator</GameDir>
<GameDir Condition="'$(GameDir)' == '' And Exists('$(_Steam)/WaterPark Simulator/$(GameName)_Data')">$(_Steam)/WaterPark Simulator</GameDir>
<GameDir Condition="'$(GameDir)' == '' And Exists('$(_Steam2)/Waterpark Simulator/$(GameName)_Data')">$(_Steam2)/Waterpark Simulator</GameDir>
<GameDir Condition="'$(GameDir)' == '' And Exists('$(_Steam2)/WaterPark Simulator/$(GameName)_Data')">$(_Steam2)/WaterPark Simulator</GameDir>
<!-- A manual, non-Steam install. Last, so a Steam copy always wins. -->
<GameDir Condition="'$(GameDir)' == '' And Exists('$(HOME)/Games/Waterpark Simulator/$(GameName)_Data')">$(HOME)/Games/Waterpark Simulator</GameDir>
<GameDir Condition="'$(GameDir)' == '' And Exists('$(HOME)/Games/WaterPark Simulator/$(GameName)_Data')">$(HOME)/Games/WaterPark Simulator</GameDir>
</PropertyGroup>
<PropertyGroup>
<BepInExDir>$(GameDir)/BepInEx</BepInExDir>
<InteropDir>$(BepInExDir)/interop</InteropDir>
<PluginsDir>$(BepInExDir)/plugins</PluginsDir>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<RestoreAdditionalProjectSources>https://nuget.bepinex.dev/v3/index.json</RestoreAdditionalProjectSources>
</PropertyGroup>
</Project>