mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Fix json parsing from string
This commit is contained in:
parent
5c8bd3ac27
commit
02219b26de
@ -122,7 +122,7 @@ ReadConfig ()
|
||||
Sint64 size = SDL_RWsize (file);
|
||||
char * buffer = (char *) calloc (sizeof (char), size + 1);
|
||||
SDL_RWread (file, buffer, size, 1);
|
||||
nlohmann::json j = buffer;
|
||||
nlohmann::json j = nlohmann::json::parse (buffer);
|
||||
SDL_RWclose (file);
|
||||
free (buffer);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user