Allow selecting and copying text in UIConsole.

IniFile detects BOM headers.
Fix small bug when opening ecode logs.
This commit is contained in:
Martín Lucas Golini
2023-10-04 20:30:28 -03:00
parent 3c805e63a2
commit 893e3cd912
10 changed files with 315 additions and 32 deletions
+5 -3
View File
@@ -471,10 +471,12 @@ bool App::loadConfig( const LogLevel& logLevel, const Sizeu& displaySize, bool s
FileSystem::makeDir( mThemesPath );
FileSystem::dirAddSlashAtEnd( mThemesPath );
mLogsPath = mConfigPath + "ecode.log";
#ifndef EE_DEBUG
Log::create( mConfigPath + "ecode.log", logLevel, stdOutLogs, !disableFileLogs );
Log::create( mLogsPath, logLevel, stdOutLogs, !disableFileLogs );
#else
Log::create( mConfigPath + "ecode.log", logLevel, stdOutLogs, !disableFileLogs );
Log::create( mLogsPath, logLevel, stdOutLogs, !disableFileLogs );
#endif
Log::instance()->setKeepLog( true );
@@ -3480,7 +3482,7 @@ void App::init( const LogLevel& logLevel, std::string file, const Float& pidelDe
#if EE_PLATFORM != EE_PLATFORM_EMSCRIPTEN
mFileWatcher = new efsw::FileWatcher();
mFileSystemListener = new FileSystemListener( mSplitter, mFileSystemModel );
mFileSystemListener = new FileSystemListener( mSplitter, mFileSystemModel, { mLogsPath } );
mFileWatcher->addWatch( mPluginsPath, mFileSystemListener );
mFileWatcher->watch();
mPluginManager->setFileSystemListener( mFileSystemListener );