Skip to content

Commit

Permalink
Fixed updater
Browse files Browse the repository at this point in the history
  • Loading branch information
Core-2-Extreme committed Jan 9, 2022
1 parent 5edb3d3 commit 588e9a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/system/setting_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2008,13 +2008,13 @@ void Sem_update_thread(void* arg)
free(buffer);
buffer = NULL;
log_num = Util_log_save(DEF_SEM_UPDATE_THREAD_STR, "Util_file_load_from_file_with_range()...");
result = Util_file_load_from_file_with_range(file_name, dir_path, (u8**)buffer, 0x20000, offset, &read_size);
result = Util_file_load_from_file_with_range(file_name, dir_path, &buffer, 0x20000, offset, &read_size);
Util_log_add(log_num, result.string, result.code);
if(result.code != 0 || read_size <= 0)
break;

log_num = Util_log_save(DEF_SEM_UPDATE_THREAD_STR, "FSFILE_Write()...");
result.code = FSFILE_Write(am_handle, &write_size, offset, (u8*)buffer, read_size, FS_WRITE_FLUSH);
result.code = FSFILE_Write(am_handle, &write_size, offset, buffer, read_size, FS_WRITE_FLUSH);
Util_log_add(log_num, "", result.code);
if(result.code != 0)
break;
Expand Down

0 comments on commit 588e9a3

Please sign in to comment.