Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
camdenorrb committed Dec 14, 2024
1 parent 9898ab4 commit 9078674
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 39 deletions.
4 changes: 1 addition & 3 deletions Source/Core/Common/Logging/Log.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,12 @@ enum class LogLevel : int
LDEBUG = 5, // Detailed debugging - might make things slow.
};

constexpr auto MAX_LOGLEVEL = Common::Log::LogLevel::LDEBUG;
/*
#if defined(_DEBUG) || defined(DEBUGFAST)
constexpr auto MAX_LOGLEVEL = Common::Log::LogLevel::LDEBUG;
#else
constexpr auto MAX_LOGLEVEL = Common::Log::LogLevel::LINFO;
#endif // logging
*/

static const char LOG_LEVEL_TO_CHAR[7] = "-NEWID";

void GenericLogFmtImpl(LogLevel level, LogType type, const char* file, int line,
Expand Down
6 changes: 3 additions & 3 deletions Source/Core/Common/Logging/LogManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const Config::Info<bool> LOGGER_WRITE_TO_CONSOLE{
const Config::Info<bool> LOGGER_WRITE_TO_WINDOW{
{Config::System::Logger, "Options", "WriteToWindow"}, true};
const Config::Info<LogLevel> LOGGER_VERBOSITY{{Config::System::Logger, "Options", "Verbosity"},
LogLevel::LDEBUG};
LogLevel::LNOTICE};

class FileLogListener : public LogListener
{
Expand Down Expand Up @@ -165,7 +165,7 @@ LogManager::LogManager()
for (auto& container : m_log)
{
container.m_enable = Config::Get(
Config::Info<bool>{{Config::System::Logger, "Logs", container.m_short_name}, true});
Config::Info<bool>{{Config::System::Logger, "Logs", container.m_short_name}, false});
}

m_path_cutoff_point = DeterminePathCutOffPoint();
Expand All @@ -191,7 +191,7 @@ void LogManager::SaveSettings()

for (const auto& container : m_log)
{
const Config::Info<bool> info{{Config::System::Logger, "Logs", container.m_short_name}, true};
const Config::Info<bool> info{{Config::System::Logger, "Logs", container.m_short_name}, false};
Config::SetBaseOrCurrent(info, container.m_enable);
}

Expand Down
33 changes: 0 additions & 33 deletions Source/Core/DolphinNoGUI/PlatformDRM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,45 +23,12 @@ namespace
class PlatformDRM : public Platform
{
public:
~PlatformDRM() override;

bool Init() override;
void SetTitle(const std::string& string) override;
void MainLoop() override;

WindowSystemInfo GetWindowSystemInfo() const override;

private:
bool OpenFramebuffer();

int m_fb_fd = -1;
};

PlatformDRM::~PlatformDRM()
{
if (m_fb_fd >= 0)
close(m_fb_fd);
}

bool PlatformDRM::Init()
{
if (!OpenFramebuffer())
return false;

return true;
}

bool PlatformDRM::OpenFramebuffer()
{
m_fb_fd = open("/dev/fb0", O_RDWR);
if (m_fb_fd < 0)
{
std::fprintf(stderr, "open(/dev/fb0) failed\n");
return false;
}

return true;
}

void PlatformDRM::SetTitle(const std::string& string)
{
Expand Down

0 comments on commit 9078674

Please sign in to comment.