添加工程模式
不带参数启动程序,会读取程序目录下的 config.xml 文件, 文件示例如下:
<?xml version="1.0" encoding="utf-8"?>
<Patches>
<FilePatches>
<File source="D:\Modding\fe_engage\romfsMod\fe_assets_gamedata\skill.xml.xlsx" target="C:\Users\Zebit\AppData\Roaming\Ryujinx\mods\contents\0100a6301214e000\ModZebit\romfs\Data\StreamingAssets\aa\Switch\fe_assets_gamedata\skill.xml.bundle"/>
</FilePatches>
<ParamPatches>
<Patch target_file="C:\Users\Zebit\AppData\Roaming\Ryujinx\mods\contents\0100a6301214e000\ModZebit\romfs\Data\StreamingAssets\aa\Switch\fe_assets_gamedata\skill.xml.bundle" target_path="/Book/Sheet[@Name='スキル']/Data" IDAttributes="Sid;">
<Param Out="" Sid="SID_ZB_天诛-回复" Name="" Help="XXXX" CommandName="" CommandHelp="" CommandWarning="" RootCommandSid="" IconKind="0" IconLabel="太陽" IconBmap="" Priority="0" Layer="0" Order="100" Cycle="0" Life="0" Timing="12" Target="0" Frequency="0" Stand="0" Action="1" Condition="" ActNames="回復;" ActOperations="+;" ActValues="相手のダメージ * 0.5;" AroundCenter="0" AroundTarget="0" AroundCondition="" AroundName="" AroundOperation="" AroundValue="" GiveTarget="0" GiveCondition="" GiveSids="" RemoveSids="" SyncConditions="" SyncSids="" RebirthSid="" EngageSid="" ChangeSids="" CooperationSkill="" HorseSkill="" CovertSkill="" HeavySkill="" FlySkill="" MagicSkill="" PranaSkill="" DragonSkill="" AttackRange="" OverlapRange="" OverlapTerrain="" ZocRange="" ZocType="0" Work="0" WorkOperation="" WorkValue="0" Power="0" Rewarp="0" Removable="0" VisionCount="0" Cost="0" MoveSelf="0" MoveTarget="0" RangeTarget="0" RangeI="0" RangeO="0" RangeAdd="0" RangeExtend="0" Flag="1" Efficacy="0" EfficacyValue="0" EfficacyIgnore="0" BadState="0" BadIgnore="0" WeaponProhibit="0" EnhanceLevel="0" EnhanceValue.Hp="0" EnhanceValue.Str="0" EnhanceValue.Tech="0" EnhanceValue.Quick="0" EnhanceValue.Luck="0" EnhanceValue.Def="0" EnhanceValue.Magic="0" EnhanceValue.Mdef="0" EnhanceValue.Phys="0" EnhanceValue.Move="0" WeaponLevel.None="0" WeaponLevel.Sword="0" WeaponLevel.Lance="0" WeaponLevel.Axe="0" WeaponLevel.Bow="0" WeaponLevel.Dagger="0" WeaponLevel.Magic="0" WeaponLevel.Rod="0" WeaponLevel.Fist="0" WeaponLevel.Special="0" EquipIids="" Effect="汎用スキル" InheritanceCost="0" InheritanceSort="0" />
</Patch>
</ParamPatches>
</Patches>
FilePatches/File: 表示将 source 文件(支持 xml, lua, txt, xlsx, csv)插入到 target bundle 文件中。
ParamPatches/Patch/Param: 将 Param 添加到 Patch 所表示的文件中的 XML 路径中。IDAttributes为重复判定依据