[ui] Add auto-mount on first launch functionality #52
This commit is contained in:
		| @@ -42,12 +42,16 @@ void free_console(); | ||||
|  | ||||
| [[nodiscard]] auto run_process_elevated(std::vector<const char *> args) -> int; | ||||
|  | ||||
| struct shortcut_cfg final { | ||||
|   std::wstring arguments; | ||||
|   std::wstring exe_path; | ||||
|   std::wstring location{get_startup_folder()}; | ||||
|   std::wstring shortcut_name; | ||||
|   std::wstring working_directory; | ||||
| }; | ||||
|  | ||||
| [[nodiscard]] | ||||
| auto create_shortcut(const std::wstring &exe_path, | ||||
|                      const std::wstring &arguments, | ||||
|                      const std::wstring &working_directory, | ||||
|                      const std::wstring &shortcut_name = L"", | ||||
|                      const std::wstring &location = get_startup_folder()) | ||||
| auto create_shortcut(const shortcut_cfg &cfg, bool overwrite_existing = true) | ||||
|     -> bool; | ||||
|  | ||||
| [[nodiscard]] auto | ||||
|   | ||||
		Reference in New Issue
	
	Block a user