mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-24 12:25:00 +00:00
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>
This commit is contained in:
parent
eac1daa5f7
commit
15d10e47ea
8 changed files with 13 additions and 18 deletions
|
@ -33,13 +33,13 @@ TrophyUI::TrophyUI(const std::filesystem::path& trophyIconPath, const std::strin
|
|||
|
||||
std::string pathString;
|
||||
if (trophy_type == "P") {
|
||||
pathString = "Resources/platinum.png";
|
||||
pathString = "src/images/platinum.png";
|
||||
} else if (trophy_type == "G") {
|
||||
pathString = "Resources/gold.png";
|
||||
pathString = "src/images/gold.png";
|
||||
} else if (trophy_type == "S") {
|
||||
pathString = "Resources/silver.png";
|
||||
pathString = "src/images/silver.png";
|
||||
} else if (trophy_type == "B") {
|
||||
pathString = "Resources/bronze.png";
|
||||
pathString = "src/images/bronze.png";
|
||||
}
|
||||
|
||||
auto resource = cmrc::res::get_filesystem();
|
||||
|
|
BIN
src/images/bronze.png
Normal file
BIN
src/images/bronze.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 40 KiB |
BIN
src/images/gold.png
Normal file
BIN
src/images/gold.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 43 KiB |
BIN
src/images/platinum.png
Normal file
BIN
src/images/platinum.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 44 KiB |
BIN
src/images/silver.png
Normal file
BIN
src/images/silver.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 33 KiB |
|
@ -123,7 +123,7 @@ void TrophyViewer::PopulateTrophyWidget(QString title) {
|
|||
QTableWidgetItem* typeitem = new QTableWidgetItem();
|
||||
|
||||
auto resource = cmrc::res::get_filesystem();
|
||||
std::string resourceString = "Resources/" + filename;
|
||||
std::string resourceString = "src/images/" + filename;
|
||||
auto file = resource.open(resourceString);
|
||||
std::vector<char> imgdata(file.begin(), file.end());
|
||||
QImage type_icon = QImage::fromData(imgdata).scaled(QSize(64, 64), Qt::KeepAspectRatio,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue