Skip to content

Conversation

@cold-brewed
Copy link
Contributor

Summary

This PR adds support for pcjs json floppies. This PR also adds cJSON to 86Box in order to properly support the required json parsing. cJSON is a lightweight json parser for C and comes in the form of a single source / single header file combo.

Specifically, this implements v2 of the pcjs image spec. All disk images are treated as read-only.

More information here: https://www.pcjs.org/tools/diskimage/
pcjs v2 spec info: https://github.com/jeffpar/pcjs/blob/master/machines/pcx86/modules/v2/disk.js

This supplants the existing pcjs json floppy support (fdd_json.c and fdd_json.h) which was written to the pcjs v1 spec. Those files can be removed once this is merged.

Checklist

  • I have discussed this with core contributors already

References

https://www.pcjs.org/tools/diskimage/
https://github.com/DaveGamble/cJSON

@OBattler OBattler merged commit 12d4c7d into 86Box:master May 20, 2024
@cold-brewed cold-brewed deleted the fdd-pcjs-floppy branch May 21, 2024 12:29
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