Skip to content

Conversation

@thecybermind
Copy link
Owner

@thecybermind thecybermind commented Dec 10, 2025

fixed polyfill issues:

  • fread/fwrite
  • handling nullptr char* when converting to strings
  • QUAKE2_configstring handler was incorrectly calling vmMain(G_CONFIGSTRING) instead of qmm_syscall(G_CONFIGSTRING)
  • removed static "previous" storage variables for entity info for G_LOCATE_GAME_DATA polyfill. now uses the qmm_export structs which already has the "previous" values

Q2R: renamed GAME_READ_LEVEL_JSON, GAME_WRITE_LEVEL_JSON, GAME_READ_GAME_JSON, and GAME_WRITE_GAME_JSON messages to remove _JSON suffix

- fread/fwrite
- handling nullptr char* when converting to strings
- QUAKE2_configstring handler was incorrectly calling vmMain(G_CONFIGSTRING) instead of qmm_syscall(G_CONFIGSTRING)
- removed static "previous" storage variables for entity info for G_LOCATE_GAME_DATA polyfill. now uses the qmm_export structs which already has the "previous" values

Q2R: renamed GAME_READ_LEVEL_JSON, GAME_WRITE_LEVEL_JSON, GAME_READ_GAME_JSON, and GAME_WRITE_GAME_JSON messages to remove _JSON suffix
@thecybermind thecybermind self-assigned this Dec 10, 2025
@thecybermind thecybermind added bug Something isn't working enhancement New feature or request labels Dec 10, 2025
@thecybermind thecybermind linked an issue Dec 10, 2025 that may be closed by this pull request
@thecybermind thecybermind changed the title fixed polyfill issues ( #4 ) fixed polyfill issues Dec 10, 2025
@thecybermind thecybermind merged commit 7be8f42 into main Dec 10, 2025
2 checks passed
@thecybermind thecybermind deleted the dev_issue4 branch December 10, 2025 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix fread/fwrite usage in polyfills

1 participant