mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 21:52:48 +00:00
remove unnecessary parameters being passed
This commit is contained in:
parent
622fb38223
commit
ea26510402
@ -755,7 +755,7 @@ u32 FileHexViewer(const char* path) {
|
|||||||
if (new_offset != (u64) -1) offset = new_offset;
|
if (new_offset != (u64) -1) offset = new_offset;
|
||||||
} else if (user_select == 2) {
|
} else if (user_select == 2) {
|
||||||
if (!found_size) *found_data = 0;
|
if (!found_size) *found_data = 0;
|
||||||
if (ShowKeyboardOrPrompt((char*) found_data, 64 + 1, "Enter search string below.\n(R+X to repeat search)", (unsigned int) offset)) {
|
if (ShowKeyboardOrPrompt((char*) found_data, 64 + 1, "Enter search string below.\n(R+X to repeat search)")) {
|
||||||
found_size = strnlen((char*) found_data, 64);
|
found_size = strnlen((char*) found_data, 64);
|
||||||
found_offset = FileFindData(path, found_data, found_size, offset);
|
found_offset = FileFindData(path, found_data, found_size, offset);
|
||||||
if (found_offset == (u32) -1) {
|
if (found_offset == (u32) -1) {
|
||||||
@ -765,7 +765,7 @@ u32 FileHexViewer(const char* path) {
|
|||||||
}
|
}
|
||||||
} else if (user_select == 3) {
|
} else if (user_select == 3) {
|
||||||
u32 size = found_size;
|
u32 size = found_size;
|
||||||
if (ShowDataPrompt(found_data, &size, "Enter search data below.\n(R+X to repeat search)", (unsigned int) offset)) {
|
if (ShowDataPrompt(found_data, &size, "Enter search data below.\n(R+X to repeat search)")) {
|
||||||
found_size = size;
|
found_size = size;
|
||||||
found_offset = FileFindData(path, found_data, size, offset);
|
found_offset = FileFindData(path, found_data, size, offset);
|
||||||
if (found_offset == (u32) -1) {
|
if (found_offset == (u32) -1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user