mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-23 03:45:00 +00:00
Move game_data to RW directory inside user folder for linux
This commit is contained in:
parent
83c8204d23
commit
a1fbab5de7
5 changed files with 14 additions and 13 deletions
|
@ -99,8 +99,8 @@ void GameListFrame::SetListBackgroundImage(QTableWidgetItem* item) {
|
|||
|
||||
QString pic1Path = QString::fromStdString(m_game_info->m_games[item->row()].pic_path);
|
||||
QString blurredPic1Path =
|
||||
qApp->applicationDirPath() +
|
||||
QString::fromStdString("/game_data/" + m_game_info->m_games[item->row()].serial +
|
||||
QDir::currentPath() +
|
||||
QString::fromStdString("/user/game_data/" + m_game_info->m_games[item->row()].serial +
|
||||
"/pic1.png");
|
||||
|
||||
backgroundImage = QImage(blurredPic1Path);
|
||||
|
@ -109,7 +109,7 @@ void GameListFrame::SetListBackgroundImage(QTableWidgetItem* item) {
|
|||
backgroundImage = m_game_list_utils.BlurImage(image, image.rect(), 16);
|
||||
|
||||
std::filesystem::path img_path =
|
||||
std::filesystem::path("game_data/") / m_game_info->m_games[item->row()].serial;
|
||||
std::filesystem::path("user/game_data/") / m_game_info->m_games[item->row()].serial;
|
||||
std::filesystem::create_directories(img_path);
|
||||
if (!backgroundImage.save(blurredPic1Path, "PNG")) {
|
||||
// qDebug() << "Error: Unable to save image.";
|
||||
|
@ -206,4 +206,4 @@ void GameListFrame::SetRegionFlag(int row, int column, QString itemStr) {
|
|||
widget->setLayout(layout);
|
||||
this->setItem(row, column, item);
|
||||
this->setCellWidget(row, column, widget);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue