Skip to content

Commit

Permalink
Update shaders
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Aug 17, 2023
1 parent 7ee0728 commit 231f903
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,5 @@ endif()

add_subdirectory(src/core)
add_subdirectory(src/app)
add_subdirectory(src/plugins/shaders)

4 changes: 2 additions & 2 deletions src/core/appsupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ const QString AppSupport::getAppShaderPresetsPath()
{
QString path1 = QApplication::applicationDirPath();
QString path2 = path1;
path1.append(QString::fromUtf8("/presets/shaders"));
path2.append(QString::fromUtf8("/../share/friction/presets/shaders"));
path1.append(QString::fromUtf8("/plugins/shaders"));
path2.append(QString::fromUtf8("/../share/friction/plugins/shaders"));
if (QFile::exists(path1)) { return path1; }
if (QFile::exists(path2)) { return path2; }
return QString();
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/shaders
Submodule shaders updated 2 files
+1 −0 .gitignore
+33 −0 CMakeLists.txt

0 comments on commit 231f903

Please sign in to comment.