Mercurial > repos > blastem
comparison blastem.c @ 1958:9c01945b5d20
Use zlib to compress event log streams
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 02 May 2020 17:33:23 -0700 |
parents | 1c7af12efe8b |
children | 3701517d852c |
comparison
equal
deleted
inserted
replaced
1957:ba06346611a1 | 1958:9c01945b5d20 |
---|---|
596 fatal_error("Unrecognized switch %s\n", argv[i]); | 596 fatal_error("Unrecognized switch %s\n", argv[i]); |
597 } | 597 } |
598 } else if (!loaded) { | 598 } else if (!loaded) { |
599 reader_port = parse_addr_port(argv[i]); | 599 reader_port = parse_addr_port(argv[i]); |
600 if (reader_port) { | 600 if (reader_port) { |
601 //init_event_reader_tcp(&reader, argv[i], port); | |
602 reader_addr = argv[i]; | 601 reader_addr = argv[i]; |
603 } else { | 602 } else { |
604 if (!(cart.size = load_rom(argv[i], &cart.buffer, stype == SYSTEM_UNKNOWN ? &stype : NULL))) { | 603 if (!(cart.size = load_rom(argv[i], &cart.buffer, stype == SYSTEM_UNKNOWN ? &stype : NULL))) { |
605 fatal_error("Failed to open %s for reading\n", argv[i]); | 604 fatal_error("Failed to open %s for reading\n", argv[i]); |
606 } | 605 } |
720 stype = reader_system_type(&reader); | 719 stype = reader_system_type(&reader); |
721 if (stype == SYSTEM_UNKNOWN) { | 720 if (stype == SYSTEM_UNKNOWN) { |
722 fatal_error("Failed to detect system type for %s\n", romfname); | 721 fatal_error("Failed to detect system type for %s\n", romfname); |
723 } | 722 } |
724 game_system = current_system = alloc_config_player(stype, &reader); | 723 game_system = current_system = alloc_config_player(stype, &reader); |
724 //free inflate stream as it was inflateCopied to an internal event reader in the player | |
725 inflateEnd(&reader.input_stream); | |
725 setup_saves(&cart, current_system); | 726 setup_saves(&cart, current_system); |
726 update_title(current_system->info.name); | 727 update_title(current_system->info.name); |
727 } | 728 } |
728 | 729 |
729 current_system->debugger_type = dtype; | 730 current_system->debugger_type = dtype; |