Skip to content

Commit

Permalink
Update autosave.c
Browse files Browse the repository at this point in the history
  • Loading branch information
cxong committed Jan 20, 2024
1 parent 7cf7ba7 commit cc98dc9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/autosave.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
C-Dogs SDL
A port of the legendary (and fun) action/arcade cdogs.
Copyright (c) 2013-2016, 2019, 2021-2023 Cong Xu
Copyright (c) 2013-2016, 2019, 2021-2024 Cong Xu
All rights reserved.
Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -36,6 +36,7 @@

#include <cdogs/campaign_entry.h>
#include <cdogs/json_utils.h>
#include <cdogs/log.h>
#include <cdogs/sys_specifics.h>
#include <cdogs/utils.h>

Expand Down Expand Up @@ -249,13 +250,13 @@ void AutosaveLoad(Autosave *autosave, const char *filename)

if (f == NULL)
{
printf("Error loading autosave '%s'\n", filename);
LOG(LM_MAIN, LL_WARN, "Error loading autosave '%s'", filename);
goto bail;
}

if (json_stream_parse(f, &root) != JSON_OK)
{
printf("Error parsing autosave '%s'\n", filename);
LOG(LM_MAIN, LL_ERROR, "Error parsing autosave '%s'", filename);
goto bail;
}
int version = 2;
Expand Down

0 comments on commit cc98dc9

Please sign in to comment.