Skip to content

Commit d8267ee

Browse files
fix(lutris): differentiate entries that share an executable (#43)
Fixes an issue where all entries that share an executable were treated as the same, since the executable was being used to match data from 2 different sources. This ends up being a large change in the Lutris backend, as now we are just querying a local DB file directly for all the relevant data, but is the only way around the issue that I could find.
1 parent 9fa59c1 commit d8267ee

21 files changed

Lines changed: 95 additions & 812 deletions

src/linux/launchers/lutris.rs

Lines changed: 93 additions & 292 deletions
Large diffs are not rendered by default.

src/parsers.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ pub fn parse_till_end_of_line(input: &str) -> IResult<&str, &str> {
2121
take_till(|a| (a as u8).is_newline())(input)
2222
}
2323

24+
#[allow(unused)]
2425
/// Parse both the key and value from a given line of a `.json` file (both values must be quoted)
2526
pub fn parse_double_quoted_key_value(line: &str) -> IResult<&str, (&str, &str)> {
2627
let (line, key) = preceded(parse_not_double_quote, parse_between_double_quotes).parse(line)?;

tests/file_system_mocks/linux/.cache/lutris/game-paths.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

tests/file_system_mocks/linux/.config/lutris/games/epic-games-store-standard-1687730563.yml

Lines changed: 0 additions & 76 deletions
This file was deleted.

tests/file_system_mocks/linux/.config/lutris/games/gog-galaxy-windows-1688309836.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

tests/file_system_mocks/linux/.config/lutris/games/osu-osulazer-1234567890.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

tests/file_system_mocks/linux/.config/lutris/games/peggle-setup-1730900990.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

tests/file_system_mocks/linux/.config/lutris/games/warcraft-3-1684538495.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

tests/file_system_mocks/linux/.local/share/lutris/games/epic-games-store-standard-1687730563.yml

Lines changed: 0 additions & 76 deletions
This file was deleted.

tests/file_system_mocks/linux/.local/share/lutris/games/gog-galaxy-windows-1688309836.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)