Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何保证多次生成Instruction.cs内容一致 #6

Closed
yangruihan opened this issue Sep 16, 2019 · 3 comments · Fixed by #8
Closed

如何保证多次生成Instruction.cs内容一致 #6

yangruihan opened this issue Sep 16, 2019 · 3 comments · Fixed by #8

Comments

@yangruihan
Copy link
Contributor

如果项目更新了,或者目录下Instruction.cs内容丢失了,需要重新生成 exe,那如果保证能发布出来 Patch 跟现网的 dll 对应?

是否可以将ShuffleInstruction.cs里的随机函数种子改为用户输入的一个密钥,根据该密钥生成唯一的Instruction.cs内容

@chexiongsheng
Copy link
Collaborator

所以要保存好哇,万一没保存也还简单,你反编译之前版本的IFix.Core.dll或者IFix.exe,把相关内容拷贝出来放到一个编译目录下的自己建的Instruction.cs文件即可。
IFix.Core.dll或者IFix.exe都没提交的话,就有点过分了。

@yangruihan
Copy link
Contributor Author

恩,这是一种方法,不过比较原始,如果未来 InjectFix 有一个配置文件来统一管理各种配置的话,感觉可以在里面进行密钥的配置,输入密钥还是比同步文件要方便

@chexiongsheng
Copy link
Collaborator

每个游戏一个私有格式的补丁是开源前才加的。以前只在内部使用其实没这需求。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants