OpenTTD Source 20241224-master-gee860a5c8e
|
Implementation of Unix specific file handling. More...
#include "../../stdafx.h"
#include "../../textbuf_gui.h"
#include "../../debug.h"
#include "../../string_func.h"
#include "../../fios.h"
#include "../../thread.h"
#include <dirent.h>
#include <unistd.h>
#include <sys/stat.h>
#include <time.h>
#include <signal.h>
#include <pthread.h>
#include "../../safeguards.h"
Go to the source code of this file.
Functions | |
bool | FiosIsRoot (const std::string &path) |
void | FiosGetDrives (FileList &) |
std::optional< uint64_t > | FiosGetDiskFreeSpace (const std::string &path) |
bool | FiosIsHiddenFile (const std::filesystem::path &path) |
void | ShowInfoI (const std::string &str) |
void | ShowOSErrorBox (const char *buf, bool) |
std::optional< std::string > | GetClipboardContents () |
Try to retrieve the current clipboard contents. | |
void | OSOpenBrowser (const std::string &url) |
void | SetCurrentThreadName (const char *threadName) |
Name the thread this function is called on for the debugger. | |
Implementation of Unix specific file handling.
Definition in file unix.cpp.
std::optional< uint64_t > FiosGetDiskFreeSpace | ( | const std::string & | path | ) |
std::optional< std::string > GetClipboardContents | ( | ) |
Try to retrieve the current clipboard contents.
Definition at line 205 of file unix.cpp.
Referenced by Textbuf::InsertClipboard().
void SetCurrentThreadName | ( | const char * | name | ) |