[gnome-games] steam: Search games in '~/.steam/steam' by default
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] steam: Search games in '~/.steam/steam' by default
- Date: Mon, 29 Aug 2016 08:33:32 +0000 (UTC)
commit aae056ad2e7d4cba317dc7511844e0c9c84e2c06
Author: Adrien Plazas <kekun plazas laposte net>
Date: Mon Aug 29 10:27:49 2016 +0200
steam: Search games in '~/.steam/steam' by default
Search games in the same place as previously as well as in the fallback
'~/.steam/steam'.
This helps finding the games when the registry's 'InstallPath' variable
is invalid.
Fixes #174
plugins/steam/src/steam-game-source.vala | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/plugins/steam/src/steam-game-source.vala b/plugins/steam/src/steam-game-source.vala
index 457131a..3c41d89 100644
--- a/plugins/steam/src/steam-game-source.vala
+++ b/plugins/steam/src/steam-game-source.vala
@@ -28,11 +28,7 @@ private class Games.SteamGameSource : Object, GameSource {
var registry = new SteamRegistry (registry_path);
var install_path = registry.get_data (INSTALL_PATH_REGISTRY_PATH);
- var default_install_dir_symlink = home + DEFAULT_INSTALL_DIR_SYMLINK;
- if (default_install_dir_symlink == install_path);
- libraries = { default_install_dir_symlink };
- else
- libraries = { default_install_dir_symlink, install_path };
+ libraries = { home + DEFAULT_INSTALL_DIR_SYMLINK, install_path };
// `/LibraryFolders/$NUMBER` entries in the libraryfolders.vdf registry
// file are library directories.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]