mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-01-30 08:29:16 -06:00
sys: Log to a file when ImHex wasn't opened though a terminal
This commit is contained in:
@@ -3,13 +3,18 @@
|
||||
#if defined(OS_LINUX)
|
||||
|
||||
#include <hex/helpers/utils.hpp>
|
||||
#include <hex/helpers/logger.hpp>
|
||||
|
||||
#include <nlohmann/json.hpp>
|
||||
#include <sys/wait.h>
|
||||
#include <unistd.h>
|
||||
|
||||
namespace hex {
|
||||
|
||||
void Window::initNative() {
|
||||
|
||||
if (!isatty(STDOUT_FILENO)) {
|
||||
log::redirectToFile();
|
||||
}
|
||||
}
|
||||
|
||||
void Window::setupNativeWindow() {
|
||||
|
||||
Reference in New Issue
Block a user