Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/sampsharp-component/sampsharp-component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions src/sampsharp-component/version.hpp
Original file line number Diff line number Diff line change
@@ -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
#define VERSION_PRERELEASE 1
Loading