Add ZFeatureHarmony and fix installation exception

- Added ZFeatureHarmony as a selectable channel
 - Fixed a bug where updating Roblox would cause an exception when upgrading Bloxstrap versions (#12)
This commit is contained in:
pizzaboxer 2022-09-02 17:26:19 +01:00
parent 427485f0ec
commit c71c2b1f5f
3 changed files with 8 additions and 4 deletions

View File

@ -9,8 +9,8 @@
<PlatformTarget>AnyCPU</PlatformTarget>
<Platforms>AnyCPU;x86</Platforms>
<ApplicationIcon>Bloxstrap.ico</ApplicationIcon>
<Version>1.4.1</Version>
<FileVersion>1.4.1.0</FileVersion>
<Version>1.4.2</Version>
<FileVersion>1.4.2.0</FileVersion>
</PropertyGroup>
<ItemGroup>

View File

@ -435,10 +435,12 @@ namespace Bloxstrap
File.Delete(filename);
}
if (VersionGuid != Program.Settings.VersionGuid)
string oldVersionFolder = Path.Combine(Directories.Versions, Program.Settings.VersionGuid);
if (VersionGuid != Program.Settings.VersionGuid && Directory.Exists(oldVersionFolder))
{
// and also to delete our old version folder
Directory.Delete(Path.Combine(Directories.Versions, Program.Settings.VersionGuid), true);
Directory.Delete(oldVersionFolder, true);
}
}

View File

@ -17,6 +17,7 @@ namespace Bloxstrap.Helpers
"LIVE",
"ZAvatarTeam",
"ZCanary",
"ZFeatureHarmony",
"ZIntegration",
"ZLive",
"ZNext",
@ -43,6 +44,7 @@ namespace Bloxstrap.Helpers
"ZFeatureBoost_Removal_Test_In_Prod",
"ZFeatureFMOD-20115",
"ZFeatureFMOD-Recording-Test",
"ZFeatureHarmony",
"ZFeatureHSR2CDNPlayTest",
"ZFeatureHSR2CDNPlayTest2",
"ZFeatureInstance-Parent-Weak-Ptr",