Skip to content

Commit

Permalink
remove the now-unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
iliazeus committed Sep 29, 2024
1 parent f01756a commit 6585e10
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/god/con_header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,24 +62,11 @@ impl ConHeaderBuilder {

cursor.seek(SeekFrom::Start(0x0364)).unwrap();

// idk why, but the original code writes these as ASCII?
// TODO: is that a bug

// this code writes plain bytes:

cursor.write_u8(exe_info.platform).unwrap();
cursor.write_u8(exe_info.executable_type).unwrap();
cursor.write_u8(exe_info.disc_number).unwrap();
cursor.write_u8(exe_info.disc_count).unwrap();

// this code writes ASCII:

//let ascii_0 = '0' as u8;
//cursor.write_u8(exe_info.platform + ascii_0).unwrap();
//cursor.write_u8(exe_info.executable_type + ascii_0).unwrap();
//cursor.write_u8(exe_info.disc_number + ascii_0).unwrap();
//cursor.write_u8(exe_info.disc_count + ascii_0).unwrap();

cursor.seek(SeekFrom::Start(0x0360)).unwrap();
cursor.write_all(&exe_info.title_id).unwrap();

Expand Down

0 comments on commit 6585e10

Please sign in to comment.