Skip to content

Add the APIs needed to run Visual C++ 2012 Update 4's cl.exe - #164

Merged
simonlindholm merged 1 commit into
decompals:mainfrom
Pucas01:main
Nov 1, 2026
Merged

simonlindholm merged 1 commit into
decompals:mainfrom
Pucas01:main

Conversation

@Pucas01

@Pucas01 Pucas01 commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

As the title says adds the API's needed for Visual C++ 2012 Update 4 cl.exe 17.00.61030, x86

Functionality was tested using de compiled code from Danganronpa: Trigger happy havoc, compared to compiling it with wine

Also fixes a bug in the Thunk generator with 64 bit return values

Bit iffy about the test i added tho, The agents.md states we need these but im not sure i did it right...
they do pass tho!

Im also sorry if my PR is missing alot of things, there is no contribution guide lol

cl.exe 17.00.61030, x86

Also fixes a bug in the Thunk generator with 64 bit return values

@simonlindholm simonlindholm left a comment

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.

Why is it okay to ignore bAlertable?

@Pucas01

Pucas01 commented Nov 1, 2026

Copy link
Copy Markdown
Contributor Author

Why is it okay to ignore bAlertable?

wibo has no APC support at all (no QueueUserAPC, SleepEx etcetera ), so no thread can have a pending APC and an alertable wait can never return early, so ignoring BAlertable is fine for now, until APC support is added

@simonlindholm
simonlindholm merged commit daf6552 into decompals:main Nov 1, 2026
12 checks passed
@simonlindholm

Copy link
Copy Markdown
Contributor

I see. Thanks!

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