diff --git a/Bloxstrap/Bootstrapper.cs b/Bloxstrap/Bootstrapper.cs index 660d02f8..7a7cfc71 100644 --- a/Bloxstrap/Bootstrapper.cs +++ b/Bloxstrap/Bootstrapper.cs @@ -916,7 +916,17 @@ private async Task ApplyModifications() const string path = "rbxasset://fonts/CustomFont.ttf"; - foreach (string jsonFilePath in Directory.GetFiles(Path.Combine(_latestVersionDirectory, "content\\fonts\\families"))) + // lets make sure the content/fonts/families path exists in the version directory + string contentFolder = Path.Combine(_latestVersionDirectory, "content"); + Directory.CreateDirectory(contentFolder); + + string fontsFolder = Path.Combine(contentFolder, "fonts"); + Directory.CreateDirectory(fontsFolder); + + string familiesFolder = Path.Combine(fontsFolder, "families"); + Directory.CreateDirectory(familiesFolder); + + foreach (string jsonFilePath in Directory.GetFiles(familiesFolder)) { string jsonFilename = Path.GetFileName(jsonFilePath); string modFilepath = Path.Combine(modFontFamiliesFolder, jsonFilename);