Diff
checker
Text
Text
Images
Documents
Excel
Folders
Legal
Enterprise
Desktop
Pricing
Sign in
Download Diffchecker Desktop
Compare text
Find the difference between two text files
Tools
History
Real-time editor
Hide unchanged lines
Disable line wrap
Layout
Split
Unified
Diff precision
Smart
Word
Char
Syntax highlighting
Choose syntax
Ignore
Transform text
Go to first change
Edit input
Diffchecker Desktop
The most secure way to run Diffchecker. Get the Diffchecker Desktop app: your diffs never leave your computer!
Get Desktop
Untitled diff
Created
11 years ago
Diff never expires
Clear
Export
Share
Explain
14 removals
Lines
Total
Removed
Characters
Total
Removed
To continue using this feature, upgrade to
Diff
checker
Pro
View Pricing
24 lines
Copy
7 additions
Lines
Total
Added
Characters
Total
Added
To continue using this feature, upgrade to
Diff
checker
Pro
View Pricing
19 lines
Copy
/* reads ARM9 payload from a given path.
/* reads ARM9 payload from a given path.
filename: full path of payload
filename: full path of payload
returns: 0 on failure, 1 on success */
returns: 0 on failure, 1 on success */
Copy
Copied
Copy
Copied
s32 load_arm9_payload (char *filename) {
s32 load_arm9_payload (char *filename) {
//CHANGE reads payload from RAM instead of SDMC
s32 result = 0;
s32 result = 0;
u32 fsize = 0;
u32 fsize = 0;
Copy
Copied
Copy
Copied
if (!filename)
fsize =
payload_bin_size
;
return result;
g_ext_arm9_size =
payload_bin_
size;
FILE *f = fopen(filename, "rb");
if (f) {
fseek(f , 0, SEEK_END);
fsize =
ftell(f)
;
g_ext_arm9_size =
f
size;
rewind(f);
if (fsize >= 8 && (fsize <= ARM9_PAYLOAD_MAX_SIZE)) {
if (fsize >= 8 && (fsize <= ARM9_PAYLOAD_MAX_SIZE)) {
Copy
Copied
Copy
Copied
u32 bytes_read =
fread(g_ext_arm9_buf, 1,
fsize
, f)
;
memcpy(g_ext_arm9_buf,payload_bin,fsize);
u32 bytes_read =
fsize
;
result = (g_ext_arm9_loaded = (bytes_read == fsize));
result = (g_ext_arm9_loaded = (bytes_read == fsize));
}
}
Copy
Copied
Copy
Copied
fclose(f);
}
return result;
return result;
}
}
Saved diffs
Original text
Open file
/* reads ARM9 payload from a given path. filename: full path of payload returns: 0 on failure, 1 on success */ s32 load_arm9_payload (char *filename) { s32 result = 0; u32 fsize = 0; if (!filename) return result; FILE *f = fopen(filename, "rb"); if (f) { fseek(f , 0, SEEK_END); fsize = ftell(f); g_ext_arm9_size = fsize; rewind(f); if (fsize >= 8 && (fsize <= ARM9_PAYLOAD_MAX_SIZE)) { u32 bytes_read = fread(g_ext_arm9_buf, 1, fsize, f); result = (g_ext_arm9_loaded = (bytes_read == fsize)); } fclose(f); } return result; }
Changed text
Open file
/* reads ARM9 payload from a given path. filename: full path of payload returns: 0 on failure, 1 on success */ s32 load_arm9_payload (char *filename) { //CHANGE reads payload from RAM instead of SDMC s32 result = 0; u32 fsize = 0; fsize = payload_bin_size; g_ext_arm9_size = payload_bin_size; if (fsize >= 8 && (fsize <= ARM9_PAYLOAD_MAX_SIZE)) { memcpy(g_ext_arm9_buf,payload_bin,fsize); u32 bytes_read = fsize; result = (g_ext_arm9_loaded = (bytes_read == fsize)); } return result; }
Find difference