mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 22:09:19 -07:00
e149ad4f0a
SPDX standardizes how source code conveys its copyright and licensing information. See https://spdx.github.io/spdx-spec/1-rationale/ . SPDX tags are adopted in many large projects, including things like the Linux kernel.
36 lines
776 B
C++
36 lines
776 B
C++
// Copyright 2014 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
namespace UICommon
|
|
{
|
|
void Init();
|
|
void Shutdown();
|
|
|
|
#ifdef HAVE_X11
|
|
void InhibitScreenSaver(unsigned long win, bool enable);
|
|
#else
|
|
void InhibitScreenSaver(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, int decimals = 2);
|
|
} // namespace UICommon
|