Skip to content

Commit

Permalink
Fix not properly checking if SteamVR appconfig.json exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Soapwood committed Aug 7, 2024
1 parent be49723 commit 369c9fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions VXMusicDesktop/Core/SteamVROverlayAppsInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class SteamVROverlayAppsInterface
private readonly IServiceProvider _serviceProvider;
private readonly ILogger<SteamVROverlayAppsInterface> _logger;

public bool SteamAppConfigPathExists => Directory.Exists(RegistryInterface.SteamVrAppConfigPath);
public bool SteamAppConfigFileExists => File.Exists(RegistryInterface.SteamVrAppConfigPath);
public bool SteamInstallPathExists => Directory.Exists(RegistryInterface.SteamInstallPath);

public static readonly string VrManifestFileTemplate = @"
Expand Down Expand Up @@ -51,7 +51,7 @@ public bool IsManifestEntryInAppConfig()
{
_logger.LogDebug("Checking if VXMusic is already added as a SteamVR Overlay..");

if (!SteamAppConfigPathExists)
if (!SteamAppConfigFileExists)
return false;

var (manifestPaths, _) = ReadContentsOfAppConfig();
Expand All @@ -65,7 +65,7 @@ private bool AddManifestEntryToAppConfig()
var (manifestPaths, jsonObj) = ReadContentsOfAppConfig();

// Check if the entry already exists
if (SteamVrManifestPathExistsInAppConfig(manifestPaths, RegistryInterface.SteamVrAppConfigPath))
if (SteamVrManifestPathExistsInAppConfig(manifestPaths, RegistryInterface.VxMusicVrManiFestAppDataDestinationPath))
{
_logger.LogDebug("Manifest path already exists in config file. Exiting.");
return true;
Expand Down
2 changes: 1 addition & 1 deletion VXMusicDesktop/VXMusicDesktop.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PackageIcon>VXLogo.png</PackageIcon>
<ApplicationIcon>Images\VXLogoIcon.ico</ApplicationIcon>
<RunPostBuildEvent>Always</RunPostBuildEvent>
<Version>0.6.5.5</Version>
<Version>0.6.5.6</Version>
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
<Title>VXMusicDesktop</Title>
<Authors>VirtualXtensions</Authors>
Expand Down

0 comments on commit 369c9fc

Please sign in to comment.