File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed
Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 11use super :: {
2+ game_lib:: get_seed_hash,
23 reader:: { Daycare , Gen6Reader } ,
34 rng:: Gen6Rng ,
45} ;
@@ -73,10 +74,13 @@ pub fn draw_dex_nav(reader: &Gen6Reader, rng: &Gen6Rng) {
7374
7475pub fn draw_seed_rng ( reader : & Gen6Reader , rng : & Gen6Rng ) {
7576 let datetime = pnp:: os_time ( ) ;
77+ let hash = get_seed_hash ( ) ;
78+ let seed_hash = ( hash as u32 ) ^ ( hash >> 32 ) as u32 ;
7679
7780 draw_mt ( rng) ;
7881 pnp:: println!( "" ) ;
7982 pnp:: println!( "" ) ;
83+ pnp:: println!( "Seed hash: {:08X}" , seed_hash) ;
8084 pnp:: println!( "Save var: {:08X}" , reader. seed_save_variable( ) ) ;
8185 pnp:: println!( "Date: {}" , datetime. format( "%b %d %Y" ) ) ;
8286 pnp:: println!( "Time: {}" , datetime. format( "%H:%M:%S" ) ) ;
Original file line number Diff line number Diff line change 1+ use crate :: title:: title_id;
2+ use crate :: title:: SupportedTitle ;
3+ use crate :: utils:: game_fn;
4+
5+ game_fn ! ( xy_get_seed_hash( ) -> u64 = 0x10cad8 ) ;
6+ game_fn ! ( oras_get_seed_hash( ) -> u64 = 0x10ca94 ) ;
7+
8+ pub fn get_seed_hash ( ) -> u64 {
9+ match title_id ( ) {
10+ SupportedTitle :: X | SupportedTitle :: Y => xy_get_seed_hash ( ) ,
11+ SupportedTitle :: Or | SupportedTitle :: As => oras_get_seed_hash ( ) ,
12+ _ => 0 ,
13+ }
14+ }
Original file line number Diff line number Diff line change 11mod draw;
2+ mod game_lib;
23mod oras_frame;
34mod reader;
45mod rng;
You can’t perform that action at this time.
0 commit comments