feat: SodiumPet 小钠桌宠 v0.1.0(Live2D 桌宠 / 经济任务 / 音乐 / 成就 / 编辑器 / MOD)

This commit is contained in:
Tian_XiaRi
2026-12-01 16:41:07 +08:00
commit ba6bcaca98
270 changed files with 33676 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
const fs = require('fs')
const p = 'C:/Users/ASUS/Documents/deepseek-harness/default-workspace/desktop-pet/src/preload/index.ts'
let c = fs.readFileSync(p, 'utf8')
function rep(from, to) {
if (!c.includes(from)) {
console.log('MISS ::', from.slice(0, 60).replace(/\n/g, '\\n'))
return
}
c = c.replace(from, to)
}
rep(
" getProfiles: () => Promise<Array<{ id: string; active: boolean; level: string }>>\n delProfile: (id: string) => Promise<Array<{ id: string; active: boolean; level: string }>>",
" getProfiles: () => Promise<Array<{ id: string; name: string; active: boolean; level: string }>>\n delProfile: (id: string) => Promise<Array<{ id: string; name: string; active: boolean; level: string }>>"
)
rep(
" createProfile: (name: string) => Promise<Array<{ id: string; active: boolean }>>\n switchProfile: (id: string) => Promise<Array<{ id: string; active: boolean }>>",
" createProfile: (name: string, skinId: string) => Promise<Array<{ id: string; name: string; active: boolean; level: string }>>\n renameProfile: (id: string, name: string) => Promise<Array<{ id: string; name: string; active: boolean; level: string }>>\n switchProfile: (id: string) => Promise<Array<{ id: string; name: string; active: boolean; level: string }>>\n renameSkin: (id: string, name: string) => Promise<Array<{ id: string; name: string; active: boolean }>>"
)
fs.writeFileSync(p, c, 'utf8')
console.log('preload types fixed')