Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
2.7.0-patch-1
Browse files Browse the repository at this point in the history
Former-commit-id: 957b630159af743a06f99eb1756e76d39d108f95 [formerly dbca6176f8ff901ebccc5448f3433a14baf33d32]
Former-commit-id: f6d8c92
  • Loading branch information
Nambers committed Sep 7, 2021
1 parent 189d1e6 commit 32d6363
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
16 changes: 4 additions & 12 deletions cpp/include/miraiCP.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ namespace MiraiCP {
using QQID = unsigned long long;
// 开始声明MiraiCP常量声明代码
/// MiraiCP当前版本
const std::string MiraiCPVersion = "v2.7.0";
const std::string MiraiCPVersion = "v2.7.0-patch-1";

/// @brief 插件信息
class PluginConfig{
Expand Down Expand Up @@ -309,17 +309,9 @@ LightApp风格1
/// @param s
/// @return
static std::string escapeToMiraiCode(const std::string &s);

/// starts_with, from <https://liam.page/2017/12/14/the-missing-starts-with-and-ends-with-in-Cpp-for-std-string/>
template <typename charT>
inline bool starts_with(const basic_string<charT>& big, const basic_string<charT>& small) {
if (&big == &small) return true;
const typename basic_string<charT>::size_type big_size = big.size();
const typename basic_string<charT>::size_type small_size = small.size();
const bool valid_ = (big_size >= small_size);
const bool starts_with_ = (big.compare(0, small_size, small) == 0);
return valid_ and starts_with_;
}

/// starts_with, from <https://stackoverflow.com/questions/1878001/how-do-i-check-if-a-c-stdstring-starts-with-a-certain-string-and-convert-a>
static bool starts_with(const std::string& f, const std::string& s){return f.rfind(s, 0) == 0;}
};

/// @brief 配置类声明, 主要存放各种jmethodid, MiraiCP内部使用, 不需要更改或其他操作
Expand Down
2 changes: 1 addition & 1 deletion kotlin/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[versions]
kotlinVersion = "1.5.10"
miraiVersion = "2.7.0"
miraiCPVersion = "2.7.0"
miraiCPVersion = "2.7.0-patch-1"

[libraries]
mirai-core-api = { module = "net.mamoe:mirai-core-api", version.ref = "miraiVersion" }
Expand Down
2 changes: 1 addition & 1 deletion kotlin/shared/src/main/kotlin/PublicShared.kt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ object PublicShared {
val cpp: ArrayList<CPP_lib> = arrayListOf()
val gson: Gson = Gson()
lateinit var logger: MiraiLogger
const val now_tag = "v2.7.0"
const val now_tag = "v2.7.0-patch-1"
val logger4plugins: MutableMap<String, MiraiLogger> = mutableMapOf()
val disablePlugins = arrayListOf<String>()
val loadedPlugins = arrayListOf<String>()
Expand Down

0 comments on commit 32d6363

Please sign in to comment.