mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Implement --debugger option to improve UX when debugging crashes (#13157)
This commit is contained in:
parent
6f5703baf1
commit
87d509e462
7 changed files with 193 additions and 17 deletions
|
@ -155,6 +155,11 @@ extern std::string path_locale;
|
|||
*/
|
||||
extern std::string path_cache;
|
||||
|
||||
/*
|
||||
Gets the path of our executable.
|
||||
*/
|
||||
bool getCurrentExecPath(char *buf, size_t len);
|
||||
|
||||
/*
|
||||
Get full path of stuff in data directory.
|
||||
Example: "stone.png" -> "../data/stone.png"
|
||||
|
@ -330,6 +335,11 @@ bool secure_rand_fill_buf(void *buf, size_t len);
|
|||
// This attaches to the parents process console, or creates a new one if it doesnt exist.
|
||||
void attachOrCreateConsole();
|
||||
|
||||
#ifdef _WIN32
|
||||
// Quotes an argument for use in a CreateProcess() commandline (not cmd.exe!!)
|
||||
std::string QuoteArgv(const std::string &arg);
|
||||
#endif
|
||||
|
||||
int mt_snprintf(char *buf, const size_t buf_size, const char *fmt, ...);
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue