Skip to content

Commit

Permalink
Plugin constants now use values from swinfo.json
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-bures committed Dec 25, 2023
1 parent a660260 commit 9472362
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
<Description>@(Swinfo -> '%(description)')</Description>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>@(Swinfo -> '%(source)')</RepositoryUrl>
<BepInExPluginGuid>$(ModId)</BepInExPluginGuid>
<BepInExPluginName>$(Product)</BepInExPluginName>
<BepInExPluginVersion>$(Version)</BepInExPluginVersion>
<SpaceWarpPluginGuid>$(ModId)</SpaceWarpPluginGuid>
<SpaceWarpPluginName>$(Product)</SpaceWarpPluginName>
<SpaceWarpPluginVersion>$(Version)</SpaceWarpPluginVersion>
</PropertyGroup>
</Target>
</Project>
9 changes: 4 additions & 5 deletions src/SpaceWarp.Core/SpaceWarpPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@ public sealed class SpaceWarpPlugin : BaseSpaceWarpPlugin
{
public static SpaceWarpPlugin Instance;

[PublicAPI] public const string ModGuid = "com.github.x606.spacewarp";
[PublicAPI] public const string ModName = "Space Warp";
[PublicAPI] public const string ModVer = MyPluginInfo.PLUGIN_VERSION; // TODO: Don't hard code this, but I don't know much msbuild stuff so @munix wil have to do that,
// and @munix is really lazy to do it right now but he definitely will at some point :P

[PublicAPI] public const string ModGuid = MyPluginInfo.PLUGIN_GUID;
[PublicAPI] public const string ModName = MyPluginInfo.PLUGIN_NAME;
[PublicAPI] public const string ModVer = MyPluginInfo.PLUGIN_VERSION;

internal ScriptEnvironment GlobalLuaState;

internal new static ManualLogSource Logger;
Expand Down

0 comments on commit 9472362

Please sign in to comment.