Skip to content

Support LibreSplit Game Time - #953

Merged
CryZe merged 1 commit into
LiveSplit:masterfrom
CryZe:libresplit-game-time
Aug 20, 2026
Merged

Support LibreSplit Game Time#953
CryZe merged 1 commit into
LiveSplit:masterfrom
CryZe:libresplit-game-time

Conversation

@CryZe

@CryZe CryZe commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

LibreSplit now stores time, best_time, and best_segment as objects containing separate real_time and game_time values, while older files keep those fields as timestamp strings. Parse both representations into LiveSplit Core's existing Time type so files produced before and after LibreSplit PR #399 remain readable while exposing game-time data to callers.

The parser also accepts LibreSplit's - marker and continues treating zero values as missing. comparison_method remains intentionally ignored because the current Run model has no LibreSplit-specific authoritative comparison setting, with a TODO documenting where that support can be added later.

Add a game-time fixture alongside the existing legacy file and cover real-time, game-time, and game-time-only values in the parser tests.

LibreSplit now stores `time`, `best_time`, and `best_segment` as objects containing separate `real_time` and `game_time` values, while older files keep those fields as timestamp strings. Parse both representations into LiveSplit Core's existing `Time` type so files produced before and after [LibreSplit PR LiveSplit#399](LibreSplit/LibreSplit#399) remain readable while exposing game-time data to callers.

The parser also accepts LibreSplit's `-` marker and continues treating zero values as missing. `comparison_method` remains intentionally ignored because the current `Run` model has no LibreSplit-specific authoritative comparison setting, with a TODO documenting where that support can be added later.

Add a game-time fixture alongside the existing legacy file and cover real-time, game-time, and game-time-only values in the parser tests.
@CryZe CryZe added the parsing This is about one of the parsers. label Aug 20, 2026
@CryZe CryZe added this to the v0.14 milestone Aug 20, 2026
@CryZe CryZe added feature A new user visible feature for livesplit-core. rust Pull requests that update Rust code labels Aug 20, 2026
@CryZe
CryZe marked this pull request as ready for review August 20, 2026 17:55
@CryZe
CryZe merged commit fd98c74 into LiveSplit:master Aug 20, 2026
70 checks passed
@CryZe
CryZe deleted the libresplit-game-time branch August 20, 2026 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature A new user visible feature for livesplit-core. parsing This is about one of the parsers. rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant