mirror of
https://git.chinosk6.cn/chinosk/gkms-localify-dmm.git
synced 2026-10-06 05:18:06 +07:00
Windows 没有陀螺仪,Live 全景拍摄的陀螺仪按钮在 DMM 版被禁用。 新增 enableGyroEmu 开关(GUI 摄像机设置,含灵敏度与轴反转),打开后 按住鼠标右键拖动转动视角,小键盘 4/6 8/2 左右上下、7/9 翻滚、5 复位。 实现分三层,每层都有过失败尝试,原因记录在注释里: - GyroIcall:改写 il2cpp icall 包装里的 static 缓存指针,向 SystemInfo.IsGyroAvailable / Gyroscope.getEnabled/setEnabled/ attitude/gravity 提供假读数。不能 hook 原生 icall——Windows 上它们是 return 常量的桩,被链接器 ICF 合并进 IsDebugBuild 等无关函数,改一个 等于改全局(实测 [Debug] 变 True、开场黑屏);也不能 hook 托管包装—— PC 版 MSVC 把它们内联进了调用方,实测一次不被调用。 - GyroForceInit:PC 版把 IsPanoramaGyroDisabledOnPlatform() 内联成 常量 true,CampusGyroController 根本不会创建,IsGyroReady 永远 false。 在 LivePanoramaCameraManager.LateUpdate 里自己 new 出控制器和 VLGyro, 按 3.3.0 布局置字段后复用游戏自己的 ResetRotation。 - 两个方法体足够大、实测会被调用的托管 hook 放开 UI 闸门。 姿态换算来自反汇编:gyroRotationRaw = base ⊗ (-a.x, -a.y, a.z, a.w), 相对旋转里 base 被消掉,因此 attitude 直接编码相机欧拉角。 顺带:Windows 版日志同步写 gakumas-local/log.txt,便于无控制台排查。 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
52 lines
1.3 KiB
JSON
52 lines
1.3 KiB
JSON
{
|
|
"dbgMode": true,
|
|
"enabled": true,
|
|
"lazyInit": true,
|
|
"replaceFont": true,
|
|
"replaceTexture": true,
|
|
"textTest": false,
|
|
"useMasterTrans": true,
|
|
"dumpText": false,
|
|
"dumpRuntimeTexture": false,
|
|
"gameOrientation": 0,
|
|
"forceExportResource": false,
|
|
"enableFreeCamera": false,
|
|
"enableGyroEmu": false,
|
|
"gyroSensitivity": 1.0,
|
|
"gyroInvertX": false,
|
|
"gyroInvertY": false,
|
|
"targetFrameRate": 0,
|
|
"unlockAllLive": true,
|
|
"unlockAllLiveCostume": true,
|
|
"enableLiveCustomeDress": false,
|
|
"liveCustomeHeadId": "costume_head_fktn-cstm-0001",
|
|
"liveCustomeCostumeId": "hume-othr-0000",
|
|
"loginAsIOS": false,
|
|
"useCustomeGraphicSettings": false,
|
|
"renderScale": 0.77,
|
|
"qualitySettingsLevel": 3,
|
|
"volumeIndex": 3,
|
|
"maxBufferPixel": 3384,
|
|
"reflectionQualityLevel": 4,
|
|
"lodQualityLevel": 4,
|
|
"enableBreastParam": false,
|
|
"bDamping": 0.33,
|
|
"bStiffness": 0.08,
|
|
"bSpring": 0.8,
|
|
"bPendulum": 0.12,
|
|
"bPendulumRange": 0.55,
|
|
"bAverage": 0.2,
|
|
"bRootWeight": 1.0,
|
|
"bUseArmCorrection": true,
|
|
"bUseScale": true,
|
|
"bScale": 0.9,
|
|
"bUseLimit": false,
|
|
"bLimitXx": 1.5,
|
|
"bLimitXy": 1.5,
|
|
"bLimitYx": 1.5,
|
|
"bLimitYy": 1.5,
|
|
"bLimitZx": 1.5,
|
|
"bLimitZy": 1.5,
|
|
"pf": false
|
|
}
|