Closed garrettluskey closed 2 months ago
Have you tried with “ref”? It is of no use since you cannot and should not change the value of the injected value in this case.
This issue is passing ref to the postfix
causes the error described above. It appears that adding the "ref" keyword breaks harmony on patching.
Then don’t add ref. As I said it makes no sense in this case anyway.
Ok, I understand now. What I am suggesting is that the error could be more verbose when passing __runOriginal
by reference. If you feel it doesn't add enough value feel free to close this issue
Seems too esoteric an error to fix. To me it seems obvious that a Boolean you only suppose to read should not use ref at all. Since it’s actually non-trivial to add the error I rather not.
IMPORTANT: Do NOT use this form to send support questions. If you send things like "How do I do X" or "It does not patch Y" your submission will be closed and you will be forwarded to the official Harmony Discord channel anyway.
OFFICIAL DISCORD: https://discord.gg/xXgghXR
If you think you found a bug in Harmony please use the following to format:
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
Stack Trace
Expected behavior Expected no crash or better error to describe what the issue was.
Screenshots / Code If applicable, add material to help explain your problem.
Runtime environment (please complete the following information):
Additional context Add any other context about the problem here.
Error message isn't that helpful, this issue isn't very serious but could lead some people down an unnecessary rabbit hole.
I'll try to be active on this issue :)