Skip to content

Commit

Permalink
Changed processing of certain Steam files
Browse files Browse the repository at this point in the history
Changed the way that sharedconfig.vdf and localconfig.vdf are processed.
Switched from retrieving tables in a way that expects a specific data
structure to a more flexible method.
  • Loading branch information
Kapiainen committed Apr 29, 2015
1 parent f933e6d commit 456e37f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions Lauhdutin/Lauhdutin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -259,16 +259,14 @@ end
if tLocalConfigApps == nil then
DisplayMessage('Invalid Steam UserDataID#CRLF#and/or Steam path')
else
local tLocalConfigAppTickets = tLocalConfigApps[S_VDF_KEY_USER_LOCAL_CONFIG_STORE][S_VDF_KEY_APP_TICKETS]
tLocalConfigApps = tLocalConfigApps[S_VDF_KEY_USER_LOCAL_CONFIG_STORE][S_VDF_KEY_SOFTWARE][S_VDF_KEY_VALVE][S_VDF_KEY_STEAM][S_VDF_KEY_APPS]
local tLocalConfigAppTickets = RecursiveTableSearch(tLocalConfigApps, S_VDF_KEY_APP_TICKETS)
tLocalConfigApps = RecursiveTableSearch(tLocalConfigApps, S_VDF_KEY_STEAM)[S_VDF_KEY_APPS]
local tSharedConfigApps = ParseVDFFile(S_PATH_STEAM .. 'userdata\\' .. S_STEAM_USER_DATA_ID .. '\\7\\remote\\sharedconfig.vdf')
tSharedConfigApps = tSharedConfigApps[S_VDF_KEY_USER_LOCAL_CONFIG_STORE][S_VDF_KEY_SOFTWARE][S_VDF_KEY_VALVE][S_VDF_KEY_STEAM][S_VDF_KEY_APPS]
tSharedConfigApps = RecursiveTableSearch(tSharedConfigApps, S_VDF_KEY_STEAM)[S_VDF_KEY_APPS]
local tExceptions = ParseVDFFile(S_PATH_RESOURCES .. S_INCLUDE_FILE_EXCEPTIONS)
if tLocalConfigApps ~= nil and tLocalConfigAppTickets ~= nil and tSharedConfigApps ~= nil then

-- Steam games.
for i = 1, #tSteamLibraryPaths do

-- Steam games.
for sAppID, tTable in pairs(tLocalConfigAppTickets) do
if tExceptions[sAppID] == nil then
local tGame = {}
Expand Down Expand Up @@ -299,7 +297,6 @@ end
tGame = nil
end
end

end

-- Non-Steam games that have been added to the Steam library.
Expand Down
2 changes: 1 addition & 1 deletion Lauhdutin/Main.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Name=Lauhdutin
Author=Kapiainen
Information=A launcher for Steam and non-Steam games, movies, misc. software, etc.
Version=1.1.0
Version=1.1.1
License=MIT

[Rainmeter]
Expand Down

0 comments on commit 456e37f

Please sign in to comment.