Currently, there's lots of code in HLE intercept that resolves a number of symbols. This code has grown out of proportion and is difficult to maintain.
For this issue, de-duplicate similarly looking code by moving it towards functions that can handle all current situations.
This issue would become less cumbersome if OOVPA-based XREF lookup is done first - see https://github.com/Cxbx-Reloaded/Cxbx-Reloaded/issues/669
I disagree for several reasons.
I'm talking here about our own C(++) code, the code that uses the OOVPA to detect symbols.
Specifically, unwieldy code like the 400 lines onward from this : https://github.com/Cxbx-Reloaded/Cxbx-Reloaded/blob/master/src/CxbxKrnl/HLEIntercept.cpp#L460
For this issue it doesn't matter in which project this code lives - this issue merely requests a refactoring of the current code so it becomes better maintainable.
Ooooooh okay, then I must have misread it. BIG thumbs up for this task. 馃憤
Does this issue should be move into XbSymbolDatabase repo?
Yes please
Moved to XbSymbolDatabase repo.
Most helpful comment
I'm talking here about our own C(++) code, the code that uses the OOVPA to detect symbols.
Specifically, unwieldy code like the 400 lines onward from this : https://github.com/Cxbx-Reloaded/Cxbx-Reloaded/blob/master/src/CxbxKrnl/HLEIntercept.cpp#L460
For this issue it doesn't matter in which project this code lives - this issue merely requests a refactoring of the current code so it becomes better maintainable.