1
0
mirror of synced 2024-11-13 18:50:53 +01:00
ImHex/plugins/builtin
paxcut c577a42f62
impr: Refactoring of floating point tool to decrease code complexity. (#1275)
I noticed the bad score on code factor so I reorganized it to make it
more readable and maintainable. In order to break down the big function
into it much smaller parts I encapsulated all the variables that the
functions need to access in two classes, one for the imgui related
statics and the other for non-static variables.

When writing the smaller functions I was noticed that there was room to
simplify the existing algorithms by writing functions that could be
called by parts that previously shared no code. I tested the changes the
same way I tested the original and it seems to work the same way but
maybe a bit faster. Although it may be possible to further optimize the
present code code factor no longer flags the function at all.
2023-09-20 10:48:44 +02:00
..
include feat: Added hex::group attribute and various fixes (#1302) 2023-09-16 13:09:59 +02:00
romfs impr: Clean up default layout file 2023-09-03 22:45:03 +02:00
source impr: Refactoring of floating point tool to decrease code complexity. (#1275) 2023-09-20 10:48:44 +02:00
CMakeLists.txt feat: Added Achievements (#1230) 2023-08-06 21:33:15 +02:00