Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
Coloryr committed Jun 23, 2023
1 parent 82ddc84 commit 9fe24d2
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/ColorMC.Gui/Resource/Language/gui_zh-cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
"MainWindow.Control.Text6": "切换游戏分组",
"MainWindow.Control.Text7": "添加分组",
"MainWindow.Control.Text8": "移动到此游戏分组",
"MainWindow.Live2d.Error1": "Live2D模型不存在",
"MainWindow.Live2d.Error2": "Live2D模型加载失败",
"MainWindow.Info1": "组名",
"MainWindow.Info2": "已启动",
"MainWindow.Info3": "正在启动游戏",
Expand Down
10 changes: 7 additions & 3 deletions src/ColorMC.Gui/UI/Controls/Main/Live2dRender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,13 @@ private void ChangeModel()
var window = Model.Con.Window;
lapp.Live2dManager.ReleaseAllModel();
var model = GuiConfigUtils.Config.Live2D.Model;
if (string.IsNullOrWhiteSpace(model) || !File.Exists(model))
if (string.IsNullOrWhiteSpace(model))
{
window.OkInfo.Show("Live2D模型不存在");
return;
}
if (!File.Exists(model))
{
window.OkInfo.Show(App.GetLanguage("MainWindow.Live2d.Error1"));
return;
}
var info = new FileInfo(model);
Expand All @@ -86,7 +90,7 @@ private void ChangeModel()
catch (Exception e)
{
Logs.Error("model load error", e);
window.OkInfo.Show("Live2D模型加载失败");
window.OkInfo.Show(App.GetLanguage("MainWindow.Live2d.Error2"));
}
}

Expand Down
9 changes: 9 additions & 0 deletions src/p/buidl1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
pkgname = colormc
pkgver = 1-1
pkgdesc = ColorMC .
url = https://www.github.com/Coloryr/ColorMC
builddate = 1677483497
packager = colormc
arch = x86_64
size = 140800
license =
8 changes: 8 additions & 0 deletions src/p/buidl2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
post_install() {
chmod a+x /usr/share/applications/ColorMC.desktop
chmod a+x /usr/share/ColorMC/ColorMC.Launcher
}

post_upgrade() {
post_install
}
2 changes: 1 addition & 1 deletion src/p/build-arch.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
sudo debtap colormc-linux-amd64.deb
sudo debtap colormc-A19-linux-amd64.deb
sudo pacman -U colormc-1-1-x86_64.pkg.tar.zst

0 comments on commit 9fe24d2

Please sign in to comment.