Skip to content

Commit

Permalink
Game loads save state, but crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
budude2 committed Aug 19, 2024
1 parent 2ab93ff commit 95cff9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/core_top.sv
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,7 @@ gb gb
.cart_ram_size ( cart_ram_size ),
.save_state ( ss_save ),
.load_state ( ss_load ),
.savestate_number ( 1 ),
.savestate_number ( 0 ),
.sleep_savestate ( sleep_savestate ),

.SaveStateExt_Din ( SaveStateExt_Din ),
Expand Down
3 changes: 2 additions & 1 deletion src/gb/gb_savestates.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ end entity;

architecture arch of gb_savestates is

constant STATESIZE : integer := 16#B0CA#;
--constant STATESIZE : integer := 16#B0CA#;
constant STATESIZE : integer := 16#0000#;

constant SETTLECOUNT : integer := 100;
constant HEADERCOUNT : integer := 2;
Expand Down

0 comments on commit 95cff9f

Please sign in to comment.