hampusborgos / rme

Remere's Map Editor
Other
294 stars 222 forks source link

fix: exception handling for reading and creating JSON objects #420

Closed dudantas closed 1 year ago

dudantas commented 1 year ago

This adds exception handling to the code that reads and creates JSON objects in the program. The code now uses try-catch blocks to catch exceptions that may be thrown during the process of reading and writing JSON objects, to avoid unhandled failures that may interrupt the program's execution. With these changes, the program can now handle errors in a more robust way and offer a better user experience. When the user opened the file for the first time, it crashed to create the windows register (as soon as it happened or crashed, the register didn't exist yet).

I also added the fix to the debug compilation, which was not linking to c++ 20.