SalvieMundi / DefinitiveEditionVanillaPlus

The Minecraft Vanilla+ Definitive Edition Modpack
1 stars 0 forks source link

Installer fails if Minecraft Launcher isn't using default install folder #14

Closed SalvieMundi closed 2 years ago

SalvieMundi commented 2 years ago

By default, the Minecraft Launcher installs into one of the following two folders:

%programfiles%\Minecraft Launcher %programfiles(x86)%\Minecraft Launcher

Where the environment variables most often lead to "C:\Program Files" or "C:\Program Files (x86)" respectively.

If the official Minecraft Launcher is not installed in one of these locations, install process will fail to unzip mods and fabric launcher into the default mod folder, which is placed inside these folders. Add checks to see if the folder exists, and create it if it does not so that the installation does not fail.