Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Commit

Permalink
Update file.c
Browse files Browse the repository at this point in the history
fixed issue with writing to tai config
  • Loading branch information
Freakler authored Feb 14, 2017
1 parent 1297d29 commit e77c7d7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion file.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,11 @@ int write_adrenaline_to_config(char *id) {
} else {

while (fgets(buffer, sizeof(buffer), file) != NULL) {
fprintf(temp, "%s", buffer);
if ( buffer[0] != '\n' ) { //empty row fix
fprintf(temp, "%s", buffer);
}

if ( buffer[strlen(buffer)-1] != '\n' ) fprintf(temp, "\n"); //whitespaces fix

if( (strstr(buffer, "*KERNEL")) != NULL ) {
fprintf(temp, "ux0:pspemu/adrenaline/adrenaline.skprx\n");
Expand Down

0 comments on commit e77c7d7

Please sign in to comment.