-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5dcc38a
commit 7fd2574
Showing
6 changed files
with
35 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,27 @@ | ||
#pragma once | ||
|
||
using namespace std::string_view_literals; | ||
#define SFSEPluginVersion extern "C" __declspec(dllexport) constinit SFSE::PluginVersionData SFSEPlugin_Version | ||
|
||
namespace Plugin | ||
{ | ||
using namespace std::string_view_literals; | ||
|
||
static constexpr auto Name{ "@PROJECT_NAME@"sv }; | ||
static constexpr auto Author{ "AuthorName"sv }; | ||
static constexpr auto Version{ | ||
REL::Version{@PROJECT_VERSION_MAJOR@, @PROJECT_VERSION_MINOR@, @PROJECT_VERSION_PATCH@, 0} | ||
}; | ||
} // namespace Plugin | ||
|
||
SFSEPluginVersion = []() noexcept { | ||
SFSE::PluginVersionData data{}; | ||
|
||
data.PluginVersion(Plugin::Version.pack()); | ||
data.PluginName(Plugin::Name); | ||
data.AuthorName(Plugin::Author); | ||
data.UsesSigScanning(true); | ||
data.HasNoStructUse(true); | ||
data.CompatibleVersions({ SFSE::RUNTIME_LATEST }); | ||
|
||
return data; | ||
}(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,27 @@ | ||
#pragma once | ||
|
||
using namespace std::string_view_literals; | ||
#define SFSEPluginVersion extern "C" __declspec(dllexport) constinit SFSE::PluginVersionData SFSEPlugin_Version | ||
|
||
namespace Plugin | ||
{ | ||
using namespace std::string_view_literals; | ||
|
||
static constexpr auto Name{ "PluginName"sv }; | ||
static constexpr auto Author{ "AuthorName"sv }; | ||
static constexpr auto Version{ | ||
REL::Version{0, 0, 1, 0} | ||
}; | ||
} // namespace Plugin | ||
|
||
SFSEPluginVersion = []() noexcept { | ||
SFSE::PluginVersionData data{}; | ||
|
||
data.PluginVersion(Plugin::Version.pack()); | ||
data.PluginName(Plugin::Name); | ||
data.AuthorName(Plugin::Author); | ||
data.UsesSigScanning(true); | ||
data.HasNoStructUse(true); | ||
data.CompatibleVersions({ SFSE::RUNTIME_LATEST }); | ||
|
||
return data; | ||
}(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters