mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
2f22c76db1
Xlib has really terrible headers that declare non-namespaced macros and typedefs for common words. Just wasted 10 minutes trying to figure out why a unit test failed to build before I remembered it was Xrandr.h conflicting with our enum class members again. To fix the issue, this removes the Display* parameter from the EnableScreensaver function (which was unused) so we don't have to include Xrandr.h anymore.
37 lines
803 B
C++
37 lines
803 B
C++
// Copyright 2014 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
namespace UICommon
|
|
{
|
|
void Init();
|
|
void Shutdown();
|
|
|
|
#if defined(HAVE_XRANDR) && HAVE_XRANDR
|
|
void EnableScreenSaver(unsigned long win, bool enable);
|
|
#else
|
|
void EnableScreenSaver(bool enable);
|
|
#endif
|
|
|
|
// Calls std::locale::global, selecting a fallback locale if the
|
|
// requested locale isn't available
|
|
void SetLocale(std::string locale_name);
|
|
|
|
void CreateDirectories();
|
|
void SetUserDirectory(const std::string& custom_path);
|
|
|
|
bool TriggerSTMPowerEvent();
|
|
|
|
void SaveWiimoteSources();
|
|
|
|
// Return a pretty file size string from byte count.
|
|
// e.g. 1134278 -> "1.08 MiB"
|
|
std::string FormatSize(u64 bytes);
|
|
} // namespace UICommon
|