Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Common: add Json helper utilities for loading or saving to a file #12818

Merged
merged 4 commits into from
Jun 15, 2024

Conversation

iwubcode
Copy link
Contributor

@iwubcode iwubcode commented Jun 1, 2024

I was doing this enough in a branch that I figured I should probably make some functions out of it. And hey, it turns out it can clean up a bit of our code in master too!

I tested all areas impacted: DiT, texture loading, and graphics mods.

(also JsonUtil.cpp wasn't added to the source file, which triggered the SaturatingCast error, so that was fixed based on our previous discussion)

@iwubcode iwubcode changed the title Json file operations Common: add Json helper utilities for loading or saving to a file Jun 1, 2024
Copy link
Contributor

@sepalani sepalani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM, untested.

@AdmiralCurtiss
Copy link
Contributor

AdmiralCurtiss commented Jun 15, 2024

The first three commits should probably be squashed together. Oh wait, JsonUtils.cpp isn't new. That's very confusing that that worked at all then but okay.

@AdmiralCurtiss AdmiralCurtiss merged commit a95c3db into dolphin-emu:master Jun 15, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants