Fix options menu memory access violation on localization change#368
Fix options menu memory access violation on localization change#368ProfLander wants to merge 2 commits intothemrdemonized:all-in-one-vs2022-wpofrom
Conversation
2f05d8d to
8d39c0f
Compare
8d39c0f to
dae2b3a
Compare
ravenascendant
left a comment
There was a problem hiding this comment.
patch timing is wrong. option table navigation is unnecessary if the functor is patched before the table is built.
What you think if we put this change into ui_options.script itself and add this into the next exes version? |
Are any of the pre MCM mods that replaced UI options still a thing? warfare overhaul? dynamic mutants? other than the risk of being over written, which is probably small (?) moving all your options changes to a script replacement does make sense. |
|
Adopting @ravenascendant How extensive are MCM's changes to We could break apart larger functions, or add new patch entrypoints within them if the current structure is too monolithic for that to be tractable as-is. Though I suppose that would raise the question of compatibility with vanilla 🤔 |
MCM doesn't use anything in ui_options.script ui_mcm.script started as a lazy copy and rename of ui_options.script with a dynamic options table loader tacked on. I have since expanded upon it in many ways. "lazy" code duplication saves me from being affected by changes to ui_options.script it uses some of the same textures and texture definitions. and some translation strings. eventually i will duplicate these into MCM since i know that Tronex made a new options UI for anomaly 1.6 and i don't want to be dependant on file that could be deleted or changed becaue of that. if ui_options does become part of modded exe's i will submit a PR for the ui_options bugs that i have fixed in MCM. maybe open an issue for the ones i can't figure out how to fix. ;P |
Gah, sorry; I got |
Adds a monkey-patch for
ui_options.scriptto prevent it from accessing a deletedself.ownerafter localization is reset.Closes #367.