#72 Rework custom pose file detection

开启中
habeebweeb2 年之前创建 · 0 条评论

Right now, MPS checks if the provided pose is a custom pose or a game pose by checking if the pose filename begins with the directory where custom pose files are stored.

The issue with this method of checking is that custom poses use absolute paths. If the game were moved to another location, the base directory would not match despite the file retaining the same folder structure within the 'Custom Poses' directory. This results in MPS assuming the provided pose filename is a game pose, tries to load it as such and throws an error.

Checking that the pose is custom can be fixed by simply checking the PoseInfo's CustomPose member.

Getting the true path of the pose file would probably require a bit of cutting and concatenation of paths.

Right now, MPS checks if the provided pose is a custom pose or a game pose by checking if the pose filename begins with the directory where custom pose files are stored. The issue with this method of checking is that custom poses use absolute paths. If the game were moved to another location, the base directory would not match despite the file retaining the same folder structure within the 'Custom Poses' directory. This results in MPS assuming the provided pose filename is a game pose, tries to load it as such and throws an error. Checking that the pose is custom can be fixed by simply checking the `PoseInfo`'s `CustomPose` member. Getting the true path of the pose file would probably require a bit of cutting and concatenation of paths.
登录 并参与到对话中。
未选择里程碑
未指派成员
1 名参与者
正在加载...
取消
保存
这个人很懒,什么都没留下。