Skip to content

Feature cubism2 - #22

Open
jerryshi1968 wants to merge 2 commits into
BDFFZI:masterfrom
jerryshi1968:feature-cubism2
Open

Feature cubism2#22
jerryshi1968 wants to merge 2 commits into
BDFFZI:masterfrom
jerryshi1968:feature-cubism2

Conversation

@jerryshi1968

Copy link
Copy Markdown

增加同时支持cubism2模型。
主要改动:
PetModelMetadata.cs (line 27):新增 ResolveModelJsonPath(...),优先找 .model3.json,找不到再找 .model.json。
PetModelMetadata.cs (line 91):补了 Cubism 2 的 expressions / motions 小写字段解析。
PetServer.cs (line 26):主程序按新规则定位模型 JSON。
App.xaml.cs (line 25):桌宠客户端默认模型路径也改成同一套规则。
DeskPetServiceUI.razor (line 16):配置页提示已更新,说明支持 .model3.json 和 .model.json。

pet.js
增加了 WebView 前端错误转发:console.warn、console.error、资源加载失败、未捕获 JS 异常、Promise 异常都会发送给 C#。

PetBridge.cs
接收 type: 'log' 消息,并写入pet.log。
@BDFFZI

BDFFZI commented Jul 12, 2026

Copy link
Copy Markdown
Owner

我已在重构桌宠相关的代码,下版本将会是桌宠客户端的大型更新,应该也会包含你的变动,不过我不会专门测试 cubism2 模型。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants