mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 02:32:36 +01:00
Make out of source builds get copy of /GuiConfigs/, /git/, etc.
Reduce quality of kot-bg.jpg.
This commit is contained in:
parent
cb32fd15ee
commit
25827c12a3
Binary file not shown.
Before Width: | Height: | Size: 1.9 MiB After Width: | Height: | Size: 331 KiB |
@ -134,11 +134,19 @@ if(APPLE)
|
||||
${CMAKE_SOURCE_DIR}/bin/Icons $<TARGET_FILE_DIR:rpcs3>/../Resources/Icons
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
||||
${CMAKE_SOURCE_DIR}/bin/GuiConfigs $<TARGET_FILE_DIR:rpcs3>/../Resources/GuiConfigs
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
||||
${CMAKE_SOURCE_DIR}/bin/git $<TARGET_FILE_DIR:rpcs3>/../Resources/git
|
||||
COMMAND "${Qt5_DIR}/../../../bin/macdeployqt" "${PROJECT_BINARY_DIR}/bin/rpcs3.app")
|
||||
elseif(UNIX)
|
||||
add_custom_command(TARGET rpcs3 POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
||||
${CMAKE_SOURCE_DIR}/bin/Icons $<TARGET_FILE_DIR:rpcs3>/Icons)
|
||||
add_custom_command(TARGET rpcs3 POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
||||
${CMAKE_SOURCE_DIR}/bin/GuiConfigs $<TARGET_FILE_DIR:rpcs3>/GuiConfigs)
|
||||
add_custom_command(TARGET rpcs3 POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
||||
${CMAKE_SOURCE_DIR}/bin/git $<TARGET_FILE_DIR:rpcs3>/git)
|
||||
elseif(WIN32)
|
||||
add_custom_command(TARGET rpcs3 POST_BUILD
|
||||
COMMAND "${CMAKE_COMMAND}" -E copy_directory "${CMAKE_SOURCE_DIR}/bin" "$<TARGET_FILE_DIR:rpcs3>"
|
||||
@ -163,4 +171,6 @@ if(UNIX AND NOT APPLE)
|
||||
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/rpcs3)
|
||||
install(DIRECTORY ../bin/GuiConfigs
|
||||
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/rpcs3)
|
||||
install(DIRECTORY ../bin/git
|
||||
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/rpcs3)
|
||||
endif()
|
||||
|
@ -334,10 +334,11 @@ QStringList gui_settings::GetStylesheetEntries()
|
||||
#else
|
||||
QDir platformStylesheetDir = QCoreApplication::applicationDirPath() + "/../share/rpcs3/GuiConfigs/";
|
||||
#endif
|
||||
res.append(gui::utils::get_dir_entries(QCoreApplication::applicationDirPath() + "/GuiConfigs/", name_filter));
|
||||
res.append(gui::utils::get_dir_entries(platformStylesheetDir, name_filter));
|
||||
res.removeDuplicates();
|
||||
#endif
|
||||
res.sort(Qt::CaseInsensitive);
|
||||
res.sort();
|
||||
return res;
|
||||
}
|
||||
|
||||
@ -356,7 +357,29 @@ QString gui_settings::GetCurrentStylesheetPath()
|
||||
return "-";
|
||||
}
|
||||
|
||||
return m_settings_dir.absoluteFilePath(stylesheet + ".qss");
|
||||
QList<QDir> locs;
|
||||
locs += m_settings_dir;
|
||||
|
||||
#if !defined(_WIN32)
|
||||
#ifdef __APPLE__
|
||||
QDir platformStylesheetDir = QCoreApplication::applicationDirPath() + "/../Resources/GuiConfigs/";
|
||||
#else
|
||||
QDir platformStylesheetDir = QCoreApplication::applicationDirPath() + "/../share/rpcs3/GuiConfigs/";
|
||||
#endif
|
||||
QDir appDir = QCoreApplication::applicationDirPath() + "/GuiConfigs/";
|
||||
locs += platformStylesheetDir;
|
||||
locs += appDir;
|
||||
#endif
|
||||
|
||||
for (auto&& dir : locs)
|
||||
{
|
||||
QString path = dir.absoluteFilePath(stylesheet + ".qss");
|
||||
QFile test(path);
|
||||
if (test.exists())
|
||||
return path;
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
QSize gui_settings::SizeFromSlider(int pos)
|
||||
|
Loading…
Reference in New Issue
Block a user