mirror of
https://git.chinosk6.cn/chinosk/gkms-local.git
synced 2026-02-04 17:13:59 +00:00
fix build error, add card name suffixes match
This commit is contained in:
@@ -16,7 +16,7 @@ android {
|
|||||||
minSdk 29
|
minSdk 29
|
||||||
targetSdk 34
|
targetSdk 34
|
||||||
versionCode 4
|
versionCode 4
|
||||||
versionName "v1.6.2"
|
versionName "v1.6.3"
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
vectorDrawables {
|
vectorDrawables {
|
||||||
|
|||||||
3
app/lint.xml
Normal file
3
app/lint.xml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<lint>
|
||||||
|
<issue id="ExtraTranslation" severity="ignore" />
|
||||||
|
</lint>
|
||||||
@@ -521,6 +521,17 @@ namespace GakumasLocal::Local {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 匹配升级卡名
|
||||||
|
if (auto plusPos = origText.find_last_not_of('+'); plusPos != std::string::npos) {
|
||||||
|
const auto noPlusText = origText.substr(0, plusPos + 1);
|
||||||
|
|
||||||
|
if (const auto iter = genericText.find(noPlusText); iter != genericText.end()) {
|
||||||
|
size_t plusCount = origText.length() - (plusPos + 1);
|
||||||
|
*newStr = iter->second + std::string(plusCount, '+');
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// fmt 文本
|
// fmt 文本
|
||||||
auto fmtText = StringParser::ParseItems::parse(origText, false);
|
auto fmtText = StringParser::ParseItems::parse(origText, false);
|
||||||
if (fmtText.isValid) {
|
if (fmtText.isValid) {
|
||||||
|
|||||||
Reference in New Issue
Block a user