diff --git a/source/fs.c b/source/fs.c index eedcdf8..b58f1a8 100644 --- a/source/fs.c +++ b/source/fs.c @@ -358,6 +358,7 @@ bool FileInjectFile(const char* dest, const char* orig, u32 offset) { } ret = true; + ShowProgress(0, 0, orig); for (size_t pos = 0; (pos < osize) && ret; pos += MAIN_BUFFER_SIZE) { UINT read_bytes = min(MAIN_BUFFER_SIZE, osize - pos); UINT bytes_read = read_bytes; diff --git a/source/godmode.c b/source/godmode.c index 3413dfd..aa0b62d 100644 --- a/source/godmode.c +++ b/source/godmode.c @@ -502,8 +502,8 @@ u32 GodMode() { if (clipboard->n_entries && (strcspn(clipboard->entry[0].path, IMG_DRV) == 0)) clipboard->n_entries = 0; // remove invalid clipboard stuff } else if (injectable && (user_select == 3)) { // -> inject data from clipboard - char origstr[24 + 1]; - TruncateString(origstr, clipboard->entry[0].name, 24, 8); + char origstr[18 + 1]; + TruncateString(origstr, clipboard->entry[0].name, 18, 8); u64 offset = ShowHexPrompt(0, 8, "Inject data from %s?\nSpecifiy offset below.", origstr); if ((offset != (u64) -1) && !FileInjectFile(curr_entry->path, clipboard->entry[0].path, (u32) offset)) ShowPrompt(false, "Failed injecting %s", origstr);