Skip to content

Refactor windows lib functions#58

Merged
TheRedDaemon merged 1 commit into
mainfrom
refactor/windows-lib-functions
May 9, 2026
Merged

Refactor windows lib functions#58
TheRedDaemon merged 1 commit into
mainfrom
refactor/windows-lib-functions

Conversation

@gynt
Copy link
Copy Markdown
Contributor

@gynt gynt commented May 9, 2026

Moved os-specific functions that the game uses to OpenSHC/OS instead of leaving them out of the repo. This allows us to get 100% match and avoid crashes due to mixing statically linked CRT in the original exe and in the OpenSHC dll.

REIMPLEMENTED_CRT is set to 0 in CMakeLists.txt for the OpenSHC dll target. This should be set to 1 if all OS functions are reimplemented (or stubbed) and testing is required.

We can either use // STUB or // FUNCTION for any OS function depending on whether we want to ignore reimplementation accuracy of the static lib function (preferred), or whether we want to actually track reimplementation progress of the lib function (can be used if static lib functions turn out to be linker/compiler generated in a custom fashion for the original binary)

@gynt gynt changed the base branch from main to refactor/miles-bink-relocation May 9, 2026 14:14
@gynt gynt requested a review from TheRedDaemon May 9, 2026 14:14
Comment thread CMakeLists.txt
Base automatically changed from refactor/miles-bink-relocation to main May 9, 2026 14:39
@TheRedDaemon TheRedDaemon merged commit d9c091b into main May 9, 2026
1 check passed
@TheRedDaemon TheRedDaemon deleted the refactor/windows-lib-functions branch May 9, 2026 14:41
gynt pushed a commit that referenced this pull request May 11, 2026
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