mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
Fix cosmetic issues
This commit is contained in:
parent
56ac8c1e68
commit
d081645ea2
@ -358,6 +358,7 @@ bool FileInjectFile(const char* dest, const char* orig, u32 offset) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ret = true;
|
ret = true;
|
||||||
|
ShowProgress(0, 0, orig);
|
||||||
for (size_t pos = 0; (pos < osize) && ret; pos += MAIN_BUFFER_SIZE) {
|
for (size_t pos = 0; (pos < osize) && ret; pos += MAIN_BUFFER_SIZE) {
|
||||||
UINT read_bytes = min(MAIN_BUFFER_SIZE, osize - pos);
|
UINT read_bytes = min(MAIN_BUFFER_SIZE, osize - pos);
|
||||||
UINT bytes_read = read_bytes;
|
UINT bytes_read = read_bytes;
|
||||||
|
@ -502,8 +502,8 @@ u32 GodMode() {
|
|||||||
if (clipboard->n_entries && (strcspn(clipboard->entry[0].path, IMG_DRV) == 0))
|
if (clipboard->n_entries && (strcspn(clipboard->entry[0].path, IMG_DRV) == 0))
|
||||||
clipboard->n_entries = 0; // remove invalid clipboard stuff
|
clipboard->n_entries = 0; // remove invalid clipboard stuff
|
||||||
} else if (injectable && (user_select == 3)) { // -> inject data from clipboard
|
} else if (injectable && (user_select == 3)) { // -> inject data from clipboard
|
||||||
char origstr[24 + 1];
|
char origstr[18 + 1];
|
||||||
TruncateString(origstr, clipboard->entry[0].name, 24, 8);
|
TruncateString(origstr, clipboard->entry[0].name, 18, 8);
|
||||||
u64 offset = ShowHexPrompt(0, 8, "Inject data from %s?\nSpecifiy offset below.", origstr);
|
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))
|
if ((offset != (u64) -1) && !FileInjectFile(curr_entry->path, clipboard->entry[0].path, (u32) offset))
|
||||||
ShowPrompt(false, "Failed injecting %s", origstr);
|
ShowPrompt(false, "Failed injecting %s", origstr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user