citra_qt: Fix remaining build errors

This commit is contained in:
Reg Tiangha
2024-11-07 16:19:37 +00:00
committed by OpenSauce04
parent 9ca3c5699f
commit 29a6f0e059
14 changed files with 27 additions and 15 deletions

View File

@@ -6,6 +6,7 @@
#include <cmath>
#include <QPainter>
#include "citra_qt/util/util.h"
#include "common/logging/log.h"
#include "core/loader/smdh.h"
#ifdef _WIN32
@@ -43,7 +44,7 @@ QPixmap CreateCirclePixmapFromColor(const QColor& color) {
return circle_pixmap;
}
QPixmap GetQPixmapFromSMDH(std::vector<u8>& smdh_data) {
QPixmap GetQPixmapFromSMDH(const std::vector<u8>& smdh_data) {
Loader::SMDH smdh;
std::memcpy(&smdh, smdh_data.data(), sizeof(Loader::SMDH));

View File

@@ -7,6 +7,7 @@
#include <filesystem>
#include <QFont>
#include <QString>
#include "common/common_types.h"
/// Returns a QFont object appropriate to use as a monospace font for debugging widgets, etc.
QFont GetMonospaceFont();
@@ -26,7 +27,7 @@ QPixmap CreateCirclePixmapFromColor(const QColor& color);
* @param smdh_data SMDH data
* @return QPixmap game icon
*/
QPixmap GetQPixmapFromSMDH(std::vector<u8>& smdh_data);
QPixmap GetQPixmapFromSMDH(const std::vector<u8>& smdh_data);
/**
* Saves a windows icon to a file
@@ -34,4 +35,4 @@ QPixmap GetQPixmapFromSMDH(std::vector<u8>& smdh_data);
* @param image The image to save
* @return bool If the operation succeeded
*/
[[nodiscard]] bool SaveIconToFile(const std::filesystem::path& icon_path, const QImage& image);
[[nodiscard]] bool SaveIconToFile(const std::filesystem::path& icon_path, const QImage& image);