Skip to content
This repository was archived by the owner on Apr 8, 2026. It is now read-only.

Commit 9fe24d2

Browse files
committed
up
1 parent 82ddc84 commit 9fe24d2

5 files changed

Lines changed: 27 additions & 4 deletions

File tree

src/ColorMC.Gui/Resource/Language/gui_zh-cn.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
"MainWindow.Control.Text6": "切换游戏分组",
2727
"MainWindow.Control.Text7": "添加分组",
2828
"MainWindow.Control.Text8": "移动到此游戏分组",
29+
"MainWindow.Live2d.Error1": "Live2D模型不存在",
30+
"MainWindow.Live2d.Error2": "Live2D模型加载失败",
2931
"MainWindow.Info1": "组名",
3032
"MainWindow.Info2": "已启动",
3133
"MainWindow.Info3": "正在启动游戏",

src/ColorMC.Gui/UI/Controls/Main/Live2dRender.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,13 @@ private void ChangeModel()
7373
var window = Model.Con.Window;
7474
lapp.Live2dManager.ReleaseAllModel();
7575
var model = GuiConfigUtils.Config.Live2D.Model;
76-
if (string.IsNullOrWhiteSpace(model) || !File.Exists(model))
76+
if (string.IsNullOrWhiteSpace(model))
7777
{
78-
window.OkInfo.Show("Live2D模型不存在");
78+
return;
79+
}
80+
if (!File.Exists(model))
81+
{
82+
window.OkInfo.Show(App.GetLanguage("MainWindow.Live2d.Error1"));
7983
return;
8084
}
8185
var info = new FileInfo(model);
@@ -86,7 +90,7 @@ private void ChangeModel()
8690
catch (Exception e)
8791
{
8892
Logs.Error("model load error", e);
89-
window.OkInfo.Show("Live2D模型加载失败");
93+
window.OkInfo.Show(App.GetLanguage("MainWindow.Live2d.Error2"));
9094
}
9195
}
9296

src/p/buidl1.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
pkgname = colormc
2+
pkgver = 1-1
3+
pkgdesc = ColorMC .
4+
url = https://www.github.com/Coloryr/ColorMC
5+
builddate = 1677483497
6+
packager = colormc
7+
arch = x86_64
8+
size = 140800
9+
license =

src/p/buidl2.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
post_install() {
2+
chmod a+x /usr/share/applications/ColorMC.desktop
3+
chmod a+x /usr/share/ColorMC/ColorMC.Launcher
4+
}
5+
6+
post_upgrade() {
7+
post_install
8+
}

src/p/build-arch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
sudo debtap colormc-linux-amd64.deb
1+
sudo debtap colormc-A19-linux-amd64.deb
22
sudo pacman -U colormc-1-1-x86_64.pkg.tar.zst

0 commit comments

Comments
 (0)