Skip to content

Iiivc cross fixes#1

Open
iGom wants to merge 27 commits intoiGom:devfrom
TheComputerGuy96:iiivc-cross-fixes
Open

Iiivc cross fixes#1
iGom wants to merge 27 commits intoiGom:devfrom
TheComputerGuy96:iiivc-cross-fixes

Conversation

@iGom
Copy link
Owner

@iGom iGom commented Nov 8, 2025

No description provided.

CookiePLMonster and others added 13 commits November 8, 2025 22:05
We now don't create DirectDraw on startup and instead fake
the VRAM readings. Should be safer and may even speed up
the startup times, as creating DDraw may not be instant.
…RAM (like in the 1.01 patch).

Fixes CookiePLMonster#184, a SP regression triggering this bug in more circumstances
was fixed in the previous commit.
Happens with a stock PC timecyc.dat,
the game can now handle it gracefully.

Fixes CookiePLMonster#261
This fixes missing header issues on a case-sensitive filesystem
with MinGW GCC
This avoids compile warnings on MinGW GCC (because standard C++
headers eventually import the Windows stuff)
MSVC (wrongly) allows those casts to succeed with static_cast:
https://stackoverflow.com/questions/74002657/why-cant-i-static-cast-a-void-to-a-pointer-to-function
(so adjust those casts for better compiler compatibility including MinGW GCC)
And switch to a common define for this attribute (this fixes
compile warnings on MinGW GCC)
…ions

This fixes compile warnings with MinGW GCC
MinGW GCC's linker can't find them otherwise
The .def file is either going to have issues on MSVC or MinGW GCC
(so replace it with a pragma on MSVC)
This works around the MinGW GCC type strictness
Redefining them can cause strange compile errors with MinGW GCC
MinGW GCC doesn't seem to unwind the layers of the macro define
properly (which causes it to not find the declaration type)
MinGW GCC can't locate it in some files otherwise
MinGW GCC doesn't have this MSVC-specific function
This makes sure the fixed-width integer types are included in SVF.h
It's required for the modf() function (and it isn't implicitly
included on MinGW GCC)
MinGW GCC doesn't implicitly include it either
MinGW GCC doesn't like this JavaScript-style coding pattern
I doubt MSVC compiled this chunk of code without errors
These almost work on llvm-mingw too (but there's some stubborn call instructions)
This also includes a small wrapper to call a C++ function from GCC-style inline ASM

These statements almost work on llvm-mingw too (but there's some stubborn call instructions)
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.

3 participants