File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -505,7 +505,7 @@ pub unsafe fn read_game_database(file_name: &str)
505
505
according to the specification of the database format).
506
506
*/
507
507
508
- pub unsafe fn game_database_already_loaded ( file_name : & str ) -> i32 {
508
+ pub fn game_database_already_loaded ( file_name : & str , current_db_ : & Option < Box < DatabaseType > > ) -> i32 {
509
509
let mut new_prolog =
510
510
PrologType { creation_century : 0 ,
511
511
creation_year : 0 ,
@@ -524,7 +524,7 @@ pub unsafe fn game_database_already_loaded(file_name: &str) -> i32 {
524
524
return 0
525
525
}
526
526
drop ( stream) ;
527
- let mut current_db_ = & database_head ;
527
+ let mut current_db_ = current_db_ ;
528
528
while let Some ( current_db) = current_db_ {
529
529
if ( * current_db) . prolog . creation_century ==
530
530
new_prolog. creation_century &&
You can’t perform that action at this time.
0 commit comments