olauncher / olauncher

A modified version of the old Minecraft Launcher supporting Microsoft authentication and more.
https://discord.gg/zqYZknvYuZ
GNU General Public License v3.0
294 stars 21 forks source link

[Suggestion] Prelaunch commands #89

Open WindClan opened 3 days ago

WindClan commented 3 days ago

Some servers use this thing called "packwiz" for things like server resourcepacks and modpacks It requires a prelaunch command though

bigfoot547 commented 3 days ago

How should the prelaunch commands work? Should the launcher set any special environment variables or pass any command line arguments? also should it wait for the command to finish?

WindClan commented 3 days ago

The launcher should set a few special environment variables Mainly the .minecraft folder (just incase someone uses a custom one) and the current JRE

The pre-launch command runs before the game is run and the launcher exits (so it waits for the command to end)