mirror of
https://github.com/0x7c13/Pal3.Unity.git
synced 2026-11-26 17:38:10 +08:00
Cover SCE command contracts, binary readers, resource layouts and full local CPK decompression for PAL3 and PAL3A. Fix CVD time rebasing, binary read bounds and short reads, and CPK/NAV validation. Standardize first-party copyright headers, preserve correct creation years, and update console source generation. Validate both variants in Unity and verify all live CPK entries.
49 lines
2.9 KiB
C#
49 lines
2.9 KiB
C#
// ------------------------------------------------------------------------
|
||
// Copyright (c) 2021-2026, Jiaqi (0x7c13) Liu. All rights reserved.
|
||
// See LICENSE file in the project root for license information.
|
||
// ------------------------------------------------------------------------
|
||
|
||
#if PAL3A
|
||
|
||
namespace Pal3.Game.Script.Patcher
|
||
{
|
||
using System.Collections.Generic;
|
||
using Constants;
|
||
using Core.Command;
|
||
using Core.Command.SceCommands;
|
||
|
||
public sealed class PalScriptPatcher : IPalScriptPatcher
|
||
{
|
||
public Dictionary<string, ICommand> PatchedCommands => new ()
|
||
{
|
||
{
|
||
$"{936}_{PalScriptType.Scene}_{4036}_ 蜀中第一丐_{0}_{typeof(DialogueRenderTextCommand)}",
|
||
new DialogueRenderTextCommand($"知道吗?您现在玩的{GameConstants.AppNameCNFull}是由\\i柒才\\r使用C#/Unity开发(完全重写)的复刻版," +
|
||
"免费开源且支持全平台(Win/Mac/Linux/iOS/Android)。" +
|
||
"如果您是花钱得到的,那么恭喜您成为盗版游戏的受害者。" +
|
||
"当前游戏还在开发中,包括战斗在内的很多功能尚未实现,请耐心等待。" +
|
||
"也欢迎加入Q群与作者联系或下载最新版:\\i252315306\\r," +
|
||
"您也可以在B站关注Up主\\i@柒才\\r获取最新开发信息!另外,全平台都支持手柄哦~")
|
||
},
|
||
{
|
||
$"{950}_{PalScriptType.Scene}_{4036}_ 蜀中第一丐_{0}_{typeof(DialogueRenderTextCommand)}",
|
||
new DialogueRenderTextCommand($"知道嗎?您現在玩的{GameConstants.AppNameCNFull}是由\\i柒才\\r使用C#/Unity開發(完全重寫)的復刻版," +
|
||
"免費開源且支持全平台(Win/Mac/Linux/iOS/Android)。" +
|
||
"如果您是花錢得到的,那麼恭喜您成為盜版遊戲的受害者。" +
|
||
"目前遊戲還在開發中,包括戰鬥在內的很多功能尚未實現,請耐心等待。" +
|
||
"也歡迎加入Q群與作者聯絡或下載最新版:\\i252315306\\r," +
|
||
"您也可以在B站關注Up主\\i@柒才\\r獲取最新開發信息!另外,全平台都支持摇杆哦~")
|
||
},
|
||
{
|
||
$"{936}_{PalScriptType.Scene}_{2002}_王蓬絮_{3648}_{typeof(PlaySfxCommand)}",
|
||
new PlaySfxCommand("wd347", 1)
|
||
},
|
||
{
|
||
$"{950}_{PalScriptType.Scene}_{2002}_王蓬絮_{3648}_{typeof(PlaySfxCommand)}",
|
||
new PlaySfxCommand("wd347", 1)
|
||
}
|
||
};
|
||
}
|
||
}
|
||
|
||
#endif |