add \n for output

This commit is contained in:
Alexander Popov 2022-08-28 22:18:46 +03:00
parent 818065e4e3
commit 870ec13a2b
Signed by: iiiypuk
GPG Key ID: D8C9B59A9F04A70C

View File

@ -55,7 +55,7 @@ int main(int argc, char const *argv[])
cJSON *library = cJSON_GetArrayItem(libraries, i);
printf("%%MC_DIR%%/libraries/%s;", cJSON_GetStringValue(library));
}
printf("%s", "%MC_DIR%/versions/%GAME_VERSION%/%GAME_VERSION%.jar");
printf("%s\n", "%MC_DIR%/versions/%GAME_VERSION%/%GAME_VERSION%.jar");
break;
case 'l':
case 'x':
@ -64,7 +64,7 @@ int main(int argc, char const *argv[])
cJSON *library = cJSON_GetArrayItem(libraries, i);
printf("$MC_DIR/libraries/%s:", cJSON_GetStringValue(library));
}
printf("%s", "$MC_DIR/versions/$GAME_VERSION/$GAME_VERSION.jar");
printf("%s\n", "$MC_DIR/versions/$GAME_VERSION/$GAME_VERSION.jar");
break;
}
}