fix: move trophy pngs to src/images (#2519)
* fix: move trophy pngs to src/images * Fix pointers to trophy files --------- Co-authored-by: rainmakerv2 <30595646+jpau02@users.noreply.github.com>
|
@ -954,12 +954,6 @@ set(QT_GUI src/qt_gui/about_dialog.cpp
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(RESOURCEFOLDER Resources/bronze.png
|
|
||||||
Resources/gold.png
|
|
||||||
Resources/platinum.png
|
|
||||||
Resources/silver.png
|
|
||||||
)
|
|
||||||
|
|
||||||
if (ENABLE_QT_GUI)
|
if (ENABLE_QT_GUI)
|
||||||
qt_add_executable(shadps4
|
qt_add_executable(shadps4
|
||||||
${AUDIO_CORE}
|
${AUDIO_CORE}
|
||||||
|
@ -971,7 +965,6 @@ if (ENABLE_QT_GUI)
|
||||||
${SHADER_RECOMPILER}
|
${SHADER_RECOMPILER}
|
||||||
${VIDEO_CORE}
|
${VIDEO_CORE}
|
||||||
${EMULATOR}
|
${EMULATOR}
|
||||||
${RESOURCEFOLDER}
|
|
||||||
src/images/shadPS4.icns
|
src/images/shadPS4.icns
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
|
@ -984,7 +977,6 @@ else()
|
||||||
${SHADER_RECOMPILER}
|
${SHADER_RECOMPILER}
|
||||||
${VIDEO_CORE}
|
${VIDEO_CORE}
|
||||||
${EMULATOR}
|
${EMULATOR}
|
||||||
${RESOURCEFOLDER}
|
|
||||||
src/main.cpp
|
src/main.cpp
|
||||||
src/emulator.cpp
|
src/emulator.cpp
|
||||||
src/emulator.h
|
src/emulator.h
|
||||||
|
@ -1117,7 +1109,10 @@ include(CMakeRC)
|
||||||
cmrc_add_resource_library(embedded-resources
|
cmrc_add_resource_library(embedded-resources
|
||||||
ALIAS res::embedded
|
ALIAS res::embedded
|
||||||
NAMESPACE res
|
NAMESPACE res
|
||||||
${RESOURCEFOLDER})
|
src/images/bronze.png
|
||||||
|
src/images/gold.png
|
||||||
|
src/images/platinum.png
|
||||||
|
src/images/silver.png)
|
||||||
|
|
||||||
target_link_libraries(shadps4 PRIVATE res::embedded)
|
target_link_libraries(shadps4 PRIVATE res::embedded)
|
||||||
|
|
||||||
|
|
|
@ -19,11 +19,11 @@ path = [
|
||||||
"documents/Screenshots/*",
|
"documents/Screenshots/*",
|
||||||
"documents/Screenshots/Linux/*",
|
"documents/Screenshots/Linux/*",
|
||||||
"externals/MoltenVK/MoltenVK_icd.json",
|
"externals/MoltenVK/MoltenVK_icd.json",
|
||||||
"Resources/bronze.png",
|
|
||||||
"Resources/gold.png",
|
|
||||||
"Resources/platinum.png",
|
|
||||||
"Resources/silver.png",
|
|
||||||
"scripts/ps4_names.txt",
|
"scripts/ps4_names.txt",
|
||||||
|
"src/images/bronze.png",
|
||||||
|
"src/images/gold.png",
|
||||||
|
"src/images/platinum.png",
|
||||||
|
"src/images/silver.png",
|
||||||
"src/images/about_icon.png",
|
"src/images/about_icon.png",
|
||||||
"src/images/controller_icon.png",
|
"src/images/controller_icon.png",
|
||||||
"src/images/discord.png",
|
"src/images/discord.png",
|
||||||
|
|
|
@ -33,13 +33,13 @@ TrophyUI::TrophyUI(const std::filesystem::path& trophyIconPath, const std::strin
|
||||||
|
|
||||||
std::string pathString;
|
std::string pathString;
|
||||||
if (trophy_type == "P") {
|
if (trophy_type == "P") {
|
||||||
pathString = "Resources/platinum.png";
|
pathString = "src/images/platinum.png";
|
||||||
} else if (trophy_type == "G") {
|
} else if (trophy_type == "G") {
|
||||||
pathString = "Resources/gold.png";
|
pathString = "src/images/gold.png";
|
||||||
} else if (trophy_type == "S") {
|
} else if (trophy_type == "S") {
|
||||||
pathString = "Resources/silver.png";
|
pathString = "src/images/silver.png";
|
||||||
} else if (trophy_type == "B") {
|
} else if (trophy_type == "B") {
|
||||||
pathString = "Resources/bronze.png";
|
pathString = "src/images/bronze.png";
|
||||||
}
|
}
|
||||||
|
|
||||||
auto resource = cmrc::res::get_filesystem();
|
auto resource = cmrc::res::get_filesystem();
|
||||||
|
|
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 43 KiB |
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
|
@ -123,7 +123,7 @@ void TrophyViewer::PopulateTrophyWidget(QString title) {
|
||||||
QTableWidgetItem* typeitem = new QTableWidgetItem();
|
QTableWidgetItem* typeitem = new QTableWidgetItem();
|
||||||
|
|
||||||
auto resource = cmrc::res::get_filesystem();
|
auto resource = cmrc::res::get_filesystem();
|
||||||
std::string resourceString = "Resources/" + filename;
|
std::string resourceString = "src/images/" + filename;
|
||||||
auto file = resource.open(resourceString);
|
auto file = resource.open(resourceString);
|
||||||
std::vector<char> imgdata(file.begin(), file.end());
|
std::vector<char> imgdata(file.begin(), file.end());
|
||||||
QImage type_icon = QImage::fromData(imgdata).scaled(QSize(64, 64), Qt::KeepAspectRatio,
|
QImage type_icon = QImage::fromData(imgdata).scaled(QSize(64, 64), Qt::KeepAspectRatio,
|
||||||
|
|