From 0f3f2992c8f15e5727cc624b64b86f3d7774a86b Mon Sep 17 00:00:00 2001 From: Tim Potze Date: Thu, 14 May 2026 23:16:48 +0200 Subject: [PATCH] Update branding to 1.0.0 prerelease 1 --- src/sampsharp-component/sampsharp-component.cpp | 8 +++++++- src/sampsharp-component/version.hpp | 6 +++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/sampsharp-component/sampsharp-component.cpp b/src/sampsharp-component/sampsharp-component.cpp index f1f84945..e4d29884 100644 --- a/src/sampsharp-component/sampsharp-component.cpp +++ b/src/sampsharp-component/sampsharp-component.cpp @@ -16,7 +16,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) @@ -27,6 +27,12 @@ void SampSharpComponent::onLoad(ICore* c) if(!disableCrashHandler) { 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