-
-
Notifications
You must be signed in to change notification settings - Fork 452
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feat] Use Legendary API to get SDL List (Fix Fortnite install and mo…
…re) (#2746) * feat: implement legendary api calls and types * feat: replace old SDL handler with the new api call * fix: Browser option on non-sideloaded games * fix: check if correct response when calling api * chore: do not show error dialog for memory errors * fix: disable node integration for browser games * chore: dead code * chore: add methods inside try catch block * feat: cache legendary response api
- Loading branch information
1 parent
8eb4203
commit 6713384
Showing
13 changed files
with
201 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,27 @@ | ||
import CacheStore from '../../cache' | ||
import { ExtraInfo, GameInfo } from 'common/types' | ||
import { LegendaryInstallInfo } from 'common/types/legendary' | ||
import { GameOverride, LegendaryInstallInfo } from 'common/types/legendary' | ||
|
||
const installStore = new CacheStore<LegendaryInstallInfo>( | ||
export const installStore = new CacheStore<LegendaryInstallInfo>( | ||
'legendary_install_info' | ||
) | ||
const libraryStore = new CacheStore<GameInfo[], 'library'>( | ||
export const libraryStore = new CacheStore<GameInfo[], 'library'>( | ||
'legendary_library', | ||
null | ||
) | ||
|
||
const gameInfoStore = new CacheStore<ExtraInfo>('legendary_gameinfo') | ||
/** | ||
* Store for the games override | ||
* Lasts for 7 days | ||
* @type {CacheStore<GameOverride, 'gamesOverride'>} | ||
* @memberof module:storeManagers/legendary | ||
* @inner | ||
* @instance | ||
**/ | ||
export const gamesOverrideStore: CacheStore<GameOverride, 'gamesOverride'> = | ||
new CacheStore<GameOverride, 'gamesOverride'>( | ||
'legendary_games_override', | ||
60 * 24 * 7 | ||
) | ||
|
||
export { gameInfoStore, installStore, libraryStore } | ||
export const gameInfoStore = new CacheStore<ExtraInfo>('legendary_gameinfo') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.