summaryrefslogtreecommitdiff
path: root/src/yuzu/util/util.h
diff options
context:
space:
mode:
authorboludoz <francomaro@gmail.com>2023-10-15 02:02:22 -0300
committerboludoz <francomaro@gmail.com>2023-10-15 02:02:22 -0300
commit3062a35eb1297067446156c43e9d0df2f684edff (patch)
treef2ca58e0b8a6c413f3c6783a1501204729e0394c /src/yuzu/util/util.h
parent1a4abd184f8085f29a18453bdc4aabb3c038907a (diff)
Improved shortcut: add games in applist for Windows, question for start game at fullscreen & better unicode support for some Windows path funcs.
Diffstat (limited to 'src/yuzu/util/util.h')
-rw-r--r--src/yuzu/util/util.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/yuzu/util/util.h b/src/yuzu/util/util.h
index 09c14ce3f..8839e160a 100644
--- a/src/yuzu/util/util.h
+++ b/src/yuzu/util/util.h
@@ -3,26 +3,36 @@
#pragma once
+#include <filesystem>
#include <QFont>
#include <QString>
/// Returns a QFont object appropriate to use as a monospace font for debugging widgets, etc.
+
[[nodiscard]] QFont GetMonospaceFont();
/// Convert a size in bytes into a readable format (KiB, MiB, etc.)
+
[[nodiscard]] QString ReadableByteSize(qulonglong size);
/**
* Creates a circle pixmap from a specified color
+ *
* @param color The color the pixmap shall have
+ *
* @return QPixmap circle pixmap
*/
+
[[nodiscard]] QPixmap CreateCirclePixmapFromColor(const QColor& color);
/**
* Saves a windows icon to a file
- * @param path The icons path
+ *
* @param image The image to save
+ *
+ * @param path The icons path
+ *
* @return bool If the operation succeeded
*/
-[[nodiscard]] bool SaveIconToFile(const std::string_view path, const QImage& image);
+
+[[nodiscard]] bool SaveIconToFile(const QImage& image, const std::filesystem::path& icon_path);