Skip to content

reimplement OpenSHC::Text::TextEditorState - #224

Draft
TheRedDaemon wants to merge 28 commits into
mainfrom
reimpl/text-editor-state
Draft

reimplement OpenSHC::Text::TextEditorState#224
TheRedDaemon wants to merge 28 commits into
mainfrom
reimpl/text-editor-state

Conversation

@TheRedDaemon

@TheRedDaemon TheRedDaemon commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

I noticed it while reimplementing drawBorderStyle0x20:
dialogContentWidth and dialogContentHeight are likely swapped.
And if not them, then dialogWidth and dialogHeight.
It should be fixed within this PR, I am just unsure whether or not it should be done now or at the end.

intArray1 is seems to be an array of wchar_t*.

If I forget it, please remember me.


Many of the shorter functions share knowledge with some bigger and certain Menu functions.
These might partially all have been one giant file. Once the day comes, we likely need to use the GL method again. It is important to be careful then, so that we do not end up giving files knowledge of each other that they should not have.


There seem to be ints/shorts/wchar_ts that represent certain help text tokens. These could use an enum.


The L-strings need to be replaced with a string file reference.


Document the hlp-file structure a bit.

@TheRedDaemon
TheRedDaemon force-pushed the reimpl/text-editor-state branch from 24fb253 to 1390bbc Compare September 6, 2026 17:45
Comment thread src/OpenSHC/OS.func.hpp Outdated
_fwprintf;

MACRO_FUNCTION_RESOLVER(
long(__cdecl*)(wchar_t const*), REIMPLEMENTED_CRT, Address::SHC_3BB0A8C1_0x00580BFA, &OpenSHC::OS::__wtol)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0x00580c0b is the thunk containing the jmp, so that one is actually the public-facing one, right? Or do you thing it should be 0x00580BFA

@TheRedDaemon
TheRedDaemon force-pushed the reimpl/text-editor-state branch from 6e11be9 to 276c1d5 Compare September 13, 2026 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants