Skip to content

Commit

Permalink
adjust
Browse files Browse the repository at this point in the history
  • Loading branch information
bucanero committed Jun 10, 2024
1 parent 63ee3ce commit 7047ba2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/exec_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static void toggleCheatFile(game_entry_t* game)
if (game->flags & CHEAT_FLAG_LOCKED)
{
snprintf(file_path, sizeof(file_path), "%s", game->path);
strrchr(file_path, '-')[1] = '\0';
*strrchr(file_path, '-') = 0;
}
else
snprintf(file_path, sizeof(file_path), "%s-disabled", game->path);
Expand Down

0 comments on commit 7047ba2

Please sign in to comment.