Skip to content

Commit a269ed3

Browse files
authored
Remove maximum SDK version check for plugins (#130)
Remove the check for `LATEST_SDK_VERSION` to allow plugins compiled with newer SDKs to load.
1 parent 15f3709 commit a269ed3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/dll/Systems/PluginSystem.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
#define LATEST_API_VERSION RED4EXT_API_VERSION_LATEST
3333

3434
#define MINIMUM_SDK_VERSION RED4EXT_SDK_0_5_0
35-
#define LATEST_SDK_VERSION RED4EXT_SDK_LATEST
3635

3736
#define LOG_FS_ERROR(text, ec) \
3837
auto val = ec.value(); \
@@ -295,13 +294,13 @@ void PluginSystem::Load(const std::filesystem::path& aPath, bool aUseAlteredSear
295294
}
296295

297296
const auto& pluginSdk = plugin->GetSdkVersion();
298-
if (pluginSdk < MINIMUM_SDK_VERSION || pluginSdk > LATEST_SDK_VERSION)
297+
if (pluginSdk < MINIMUM_SDK_VERSION)
299298
{
300299
spdlog::warn(L"{} (version: {}) uses RED4ext.SDK v{} which is not supported by RED4ext v{}. If you are the "
301300
L"plugin's author, recompile the plugin with a version of RED4ext.SDK that meets the following "
302-
L"criteria: RED4ext.SDK >= {} && RED4ext.SDK <= {}",
301+
L"criteria: RED4ext.SDK >= {}",
303302
pluginName, std::to_wstring(pluginVersion), std::to_wstring(pluginSdk), Version::Get(),
304-
std::to_wstring(MINIMUM_SDK_VERSION), std::to_wstring(LATEST_SDK_VERSION));
303+
std::to_wstring(MINIMUM_SDK_VERSION));
305304
return;
306305
}
307306

0 commit comments

Comments
 (0)