mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add open user data button to main menu (#10579)
This commit is contained in:
parent
025035db5c
commit
664f5ce960
9 changed files with 100 additions and 19 deletions
|
@ -332,7 +332,25 @@ void attachOrCreateConsole();
|
|||
|
||||
int mt_snprintf(char *buf, const size_t buf_size, const char *fmt, ...);
|
||||
|
||||
bool openURL(const std::string &url);
|
||||
/**
|
||||
* Opens URL in default web browser
|
||||
*
|
||||
* Must begin with http:// or https://, and not contain any new lines
|
||||
*
|
||||
* @param url The URL
|
||||
* @return true on success, false on failure
|
||||
*/
|
||||
bool open_url(const std::string &url);
|
||||
|
||||
/**
|
||||
* Opens a directory in the default file manager
|
||||
*
|
||||
* The directory must exist.
|
||||
*
|
||||
* @param path Path to directory
|
||||
* @return true on success, false on failure
|
||||
*/
|
||||
bool open_directory(const std::string &path);
|
||||
|
||||
} // namespace porting
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue