citra_qt: Fix remaining build errors
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user