Commit graph

152 commits

Author SHA1 Message Date
Pat Hartl
17accc7e67 Bump SDK version 2024-06-14 14:35:59 -07:00
Pat Hartl
6fec91e73e Fix PowerShell scripts, add script debug mode
PowerShell scripts now execute correctly with the client. The built in PowerShell API's serializer will always return null on .NET 8 for some reason. The serializer/deserializer was switched to YAML, mostly due to convenience of already having a package for it.

Added a new settings for enabling script debugging mode. This ensures that when a script is executed, the PowerShell terminal window is not closed. This allows power users to get the same environment that the script executes in. It also allows for some scroll back to see what potentially went wrong in their script.
2024-06-11 21:43:12 -05:00
Pat Hartl
161f8b6be9 Add dialog to change alias 2024-06-05 23:37:16 -05:00
Pat Hartl
85825d43be Store profile in Settings 2024-06-03 19:08:50 -05:00
Pat Hartl
1566172ad2 Fix parsing of primary actions in manifest, add dropdown for non-primary actions 2024-05-28 21:08:30 -05:00
Pat Hartl
9e26255df3 Pull actions from manifests and servers 2024-05-28 00:54:09 -05:00
Pat Hartl
1a3e9b70e6 Basic importing of media, move importing to service 2024-05-28 00:24:29 -05:00
Pat Hartl
50fd60aadb Working imports for games and most of its properties 2024-05-23 18:38:13 -05:00
Pat Hartl
74b890f710 Add async request methods for client 2024-05-20 20:26:46 -05:00
Pat Hartl
9972992193 Fix references to download request calls 2024-05-19 19:08:36 -05:00
Pat Hartl
deaca924b4 Add async methods for base SDK client 2024-05-19 18:06:58 -05:00
Pat Hartl
5750fdac07 Allow SDK client to change server addresses and throw exceptions on version mismatches 2024-05-19 17:54:56 -05:00
Pat Hartl
7c54228d75 Ignore unmatched properties when deserializing manifests 2024-05-13 18:41:40 -05:00
Pat Hartl
339b938749 Validate API version when doing requests 2024-05-13 18:41:00 -05:00
Pat Hartl
6428c72689 Remove user information from SDK game details 2024-05-13 01:53:41 -05:00
Pat Hartl
a14b7cdeac Slim down responses from game imports
Reduced the amount of data being sent to the client from the API which results in smaller, somewhat faster requests. In a library of ~250 games the requests went from 5.6MB to 3.3MB.
2024-05-07 20:08:07 -05:00
Pat Hartl
9d8df90155 Import games using Game type instead of manifest
Games now import using the Game type instead of manifest. The manifest is fine for locally caching the game (though who knows, this could change as well), but for providing complex information like dependent games versioning it just doesn't have enough data.

Importing has been changed to provide the "Update Available" title change on games where the main game or mod/expansion has a new version available.

Notes now get populated on import, not just install.

Reworked population of game menu items to include non-primary actions from mods/expansions.

Simplified and fixed certain scripts not running for mods/expansions.
2024-05-07 01:47:00 -05:00
Pat Hartl
4beaa114f8 Add mod/expansion actions to action list
Some checks failed
LANCommander Release / build (push) Has been cancelled
2024-05-04 01:07:06 -05:00
Pat Hartl
8cc8122d13 Install dependent expansions/mods 2024-05-01 23:58:07 -05:00
Pat Hartl
c32116512e Write all scripts on install 2024-04-29 18:33:31 -05:00
Pat Hartl
f14064da6a
Update ScriptHelper.cs 2024-04-25 13:57:12 -05:00
Pat Hartl
c136fc794d Record engine details from IGDB 2024-03-29 17:19:42 -05:00
Pat Hartl
b5efcb6bf5 Add support for legacy "Saves" path in save archives
Some checks failed
LANCommander Release / build (push) Has been cancelled
2024-03-28 19:59:15 -05:00
Pat Hartl
56e760206f Fix packing of save files 2024-03-28 19:38:25 -05:00
Pat Hartl
e84d2b4f6d Don't fail entire install process if files already exist or another process is locking the existing destination file 2024-02-22 02:12:18 -06:00
Pat Hartl
05f1d37981 Add checksum to media, cache media locally on client 2024-02-20 17:58:49 -06:00
Pat Hartl
99c825afb5 Fix download button locking UI 2024-02-18 15:02:23 -06:00
Pat Hartl
1046f508fa WIP save manager 2024-02-17 17:30:14 -06:00
Pat Hartl
1620b474f8 Merge branch 'fix-uri-parsing' 2024-02-17 13:53:20 -06:00
Pat Hartl
a9fe0f5aac Fix bug for first time runs
Some checks failed
LANCommander Playnite Plugin / build (push) Has been cancelled
LANCommander / build (push) Has been cancelled
LANCommander Release / build (push) Has been cancelled
Properly handles the case where a user will install the plugin without any config defined. Creating a URI with an empty string will throw an exception
2024-02-17 13:25:56 -06:00
Pat Hartl
5ff0f49398 Basic implementation of ImportGames
Instead of providing metadata and possibly updating a game if it already exists, this gives us full control over how games are imported into the library. This update will allow all changes to games made in the server to be synced to the clients. It also simplifies the import, though it is more prone to exceptions due to the current use of yield.
2024-02-16 00:22:01 -06:00
Pat Hartl
75816a4645 Remove unused references 2024-02-14 02:07:29 -06:00
Pat Hartl
e56507c626 Don't install standalone expansions to the same directory as the base game 2024-02-14 02:01:29 -06:00
Pat Hartl
eb9f1387ab Sync play times from server 2024-02-14 01:57:54 -06:00
Pat Hartl
3ff87fb401 Remove reference to chat service 2024-02-11 18:10:35 -06:00
Pat Hartl
9356e2537c Switch BaseUrl to Uri 2024-02-11 17:57:38 -06:00
Pat Hartl
8a00744ac7 Update packages 2024-02-11 17:54:52 -06:00
Pat Hartl
b3aaedd65b Only download saves that are newer than the last time the game was played.
This changes the downloading mechanism for saves so only saves that have been uploaded since the last time the game was run get downloaded to the client.
2024-02-06 19:36:55 -06:00
Pat Hartl
93ce25c263 Keep track of the currently installed key. Run key change on game start if the key doesn't match the allocated key. 2024-02-03 18:32:42 -06:00
Pat Hartl
3888d047d4 Log when a file cannot be deleted upon uninstall 2024-02-03 13:55:40 -06:00
Pat Hartl
0732e5d564 Don't replace slashes in action arguments as some may use something other than the path separator char
Some checks failed
LANCommander Playnite Plugin / build (push) Has been cancelled
LANCommander Release / build (push) Has been cancelled
LANCommander / build (push) Has been cancelled
2024-01-26 01:56:21 -06:00
Pat Hartl
b74bbf47b0 Fix location of extracted manifest from saves 2024-01-25 21:24:35 -06:00
Pat Hartl
71ccf03fb0 Added download canceling back into downloads 2024-01-25 00:46:10 -06:00
Pat Hartl
27f739cc65 Remove test exception 2024-01-24 23:37:30 -06:00
Pat Hartl
71a27bee91 Added notifications for game install failure in download queue 2024-01-24 23:36:52 -06:00
Pat Hartl
66977659b6 Fix profile button not showing in offline mode. Fix offline mode.
Some checks failed
LANCommander Playnite Plugin / build (push) Has been cancelled
LANCommander Release / build (push) Has been cancelled
LANCommander / build (push) Has been cancelled
2024-01-24 00:35:34 -06:00
Pat Hartl
769adc0605 Implement actual API logout method to kill any valid tokens. Keep better track if the API client is actually connected. 2024-01-23 18:01:12 -06:00
Pat Hartl
a269d7a658 Rough but functional download queue 2024-01-20 21:02:41 -06:00
Pat Hartl
7278aa8b86 Keep track of what name was used on the last name change script run for a game 2024-01-19 00:25:38 -06:00
Pat Hartl
ab7527479a Add offline mode to Playnite plugin 2024-01-18 23:22:46 -06:00