BeamMP / BeamMP-Launcher

Official BeamMP Launcher
https://beammp.com
34 stars 42 forks source link

Added CLI argument for `user-path` #148

Open CodeCorrupt opened 1 week ago

CodeCorrupt commented 1 week ago

Simple addition to the CLI args. It could probably do with some validation, ie; making sure it ends in a slash.

cc: @WiserTixx

lionkor commented 1 week ago

Hi, thanks for your contribution. Would you please use std::filesystem::path to store the path? This also lets you validate the path by calling std::filesystem::exists (https://en.cppreference.com/w/cpp/filesystem/exists).