diff --git a/src/sampsharp-component/sampsharp-component.cpp b/src/sampsharp-component/sampsharp-component.cpp index 396086bf..7993d9d7 100644 --- a/src/sampsharp-component/sampsharp-component.cpp +++ b/src/sampsharp-component/sampsharp-component.cpp @@ -25,7 +25,7 @@ StringView SampSharpComponent::componentName() const SemanticVersion SampSharpComponent::componentVersion() const { - return {VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH, VERSION_BUILD}; + return { VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH, 0 }; } void SampSharpComponent::onLoad(ICore* c) @@ -37,6 +37,12 @@ void SampSharpComponent::onLoad(ICore* c) { sampsharp::crash::install(c); } + +#if VERSION_PRERELEASE > 0 + c->logLn(LogLevel::Warning, "SampSharp - You are running a prerelease version of SampSharp. Expect instability and report any issues you encounter to the developers."); + c->logLn(LogLevel::Warning, "SampSharp - Version: %d.%d.%d prerelease %d", VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH, VERSION_PRERELEASE); + c->logLn(LogLevel::Warning, "SampSharp - Report issues here: https://github.com/ikkentim/SampSharp/issues"); +#endif } void SampSharpComponent::provideConfiguration(ILogger& logger, IEarlyConfig& config, const bool defaults) diff --git a/src/sampsharp-component/version.hpp b/src/sampsharp-component/version.hpp index 0812e09f..e50b44b6 100644 --- a/src/sampsharp-component/version.hpp +++ b/src/sampsharp-component/version.hpp @@ -1,7 +1,7 @@ #pragma once #define VERSION_API 1 -#define VERSION_MAJOR 0 -#define VERSION_MINOR 11 +#define VERSION_MAJOR 1 +#define VERSION_MINOR 0 #define VERSION_PATCH 0 -#define VERSION_BUILD 0 \ No newline at end of file +#define VERSION_PRERELEASE 1 \ No newline at end of file