diff --git a/resources/shaders/glsl/blur_horizontal.glsl b/resources/shaders/glsl/blur_horizontal.glsl index 67644dc33..be0da5559 100644 --- a/resources/shaders/glsl/blur_horizontal.glsl +++ b/resources/shaders/glsl/blur_horizontal.glsl @@ -1,10 +1,10 @@ // -// Implementation based on the article "Efficient Gaussian blur with linear sampling" -// http://rastergrid.com/blog/2010/09/efficient-gaussian-blur-with-linear-sampling/ -// A version for MasterEffect Reborn, a standalone version, and a custom shader version for SweetFX -// can be found at http://reshade.me/forum/shader-presentation/27-gaussian-blur-bloom-unsharpmask +// Implementation based on the article "Efficient Gaussian blur with linear sampling" +// http://rastergrid.com/blog/2010/09/efficient-gaussian-blur-with-linear-sampling/ +// A version for MasterEffect Reborn, a standalone version, and a custom shader version for SweetFX +// can be found at http://reshade.me/forum/shader-presentation/27-gaussian-blur-bloom-unsharpmask // -// Borrowed from the RetroArch project and modified for ES-DE by Leon Styhre. +// Taken from the RetroArch project and modified for ES-DE. // #define HW 1.00 diff --git a/resources/shaders/glsl/blur_vertical.glsl b/resources/shaders/glsl/blur_vertical.glsl index cd780b2c4..ad59a4c21 100644 --- a/resources/shaders/glsl/blur_vertical.glsl +++ b/resources/shaders/glsl/blur_vertical.glsl @@ -1,10 +1,10 @@ // -// Implementation based on the article "Efficient Gaussian blur with linear sampling" -// http://rastergrid.com/blog/2010/09/efficient-gaussian-blur-with-linear-sampling/ -// A version for MasterEffect Reborn, a standalone version, and a custom shader version for SweetFX -// can be found at http://reshade.me/forum/shader-presentation/27-gaussian-blur-bloom-unsharpmask +// Implementation based on the article "Efficient Gaussian blur with linear sampling" +// http://rastergrid.com/blog/2010/09/efficient-gaussian-blur-with-linear-sampling/ +// A version for MasterEffect Reborn, a standalone version, and a custom shader version for SweetFX +// can be found at http://reshade.me/forum/shader-presentation/27-gaussian-blur-bloom-unsharpmask // -// Borrowed from the RetroArch project and modified for ES-DE by Leon Styhre. +// Taken from the RetroArch project and modified for ES-DE. // #define VW 1.00 diff --git a/resources/shaders/glsl/desaturate.glsl b/resources/shaders/glsl/desaturate.glsl index d6e4ba67c..6c88cd58a 100644 --- a/resources/shaders/glsl/desaturate.glsl +++ b/resources/shaders/glsl/desaturate.glsl @@ -1,9 +1,11 @@ +// SPDX-License-Identifier: MIT // -// desaturate.glsl +// EmulationStation Desktop Edition +// desaturate.glsl // -// Desaturates textures. -// The uniform variable 'saturation' sets the saturation intensity. -// Setting this to the value 0 results in complete desaturation (grayscale). +// Desaturates textures. +// The uniform variable 'saturation' sets the saturation intensity. +// Setting this to the value 0 results in complete desaturation (grayscale). // #if defined(VERTEX) diff --git a/resources/shaders/glsl/dim.glsl b/resources/shaders/glsl/dim.glsl index 6f85d60b2..47060cf4c 100644 --- a/resources/shaders/glsl/dim.glsl +++ b/resources/shaders/glsl/dim.glsl @@ -1,9 +1,11 @@ +// SPDX-License-Identifier: MIT // -// dim.glsl +// EmulationStation Desktop Edition +// dim.glsl // -// Dims textures. -// The uniform variable 'dimValue' sets the amount of dimming. -// Setting this to the value 0 results in a completely black screen. +// Dims textures. +// The uniform variable 'dimValue' sets the amount of dimming. +// Setting this to the value 0 results in a completely black screen. // #if defined(VERTEX) diff --git a/resources/shaders/glsl/opacity.glsl b/resources/shaders/glsl/opacity.glsl index 5e71d3b34..08b74c9d3 100644 --- a/resources/shaders/glsl/opacity.glsl +++ b/resources/shaders/glsl/opacity.glsl @@ -1,9 +1,11 @@ +// SPDX-License-Identifier: MIT // -// opacity.glsl +// EmulationStation Desktop Edition +// opacity.glsl // -// Changes the opacity of textures. -// The uniform variable 'opacity' sets the opacity. -// Setting this to the value 0 results in an invisible texture. +// Changes the opacity of textures. +// The uniform variable 'opacity' sets the opacity. +// Setting this to the value 0 results in an invisible texture. // #if defined(VERTEX) diff --git a/resources/shaders/glsl/scanlines.glsl b/resources/shaders/glsl/scanlines.glsl index 994106a34..3d92c4e58 100644 --- a/resources/shaders/glsl/scanlines.glsl +++ b/resources/shaders/glsl/scanlines.glsl @@ -3,21 +3,21 @@ // // Ported by Hyllian. // -// This program is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License -// as published by the Free Software Foundation; either version 2 -// of the License, or (at your option) any later version. +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. // -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. // -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // -// Borrowed from the RetroArch project and modified for ES-DE by Leon Styhre. +// Taken from the RetroArch project and modified for ES-DE. // #if defined(VERTEX) @@ -138,7 +138,6 @@ void main() vec2 texture_coords = pixel_center * SourceSize.zw; vec4 color = TEX2D(texture_coords); - float dx = coords.x - pixel_center.x; float h_weight_00 = dx / SPOT_WIDTH; diff --git a/tools/generate_man_page.sh b/tools/generate_man_page.sh index 2ea5ed5bf..ea9a8df57 100755 --- a/tools/generate_man_page.sh +++ b/tools/generate_man_page.sh @@ -1,17 +1,16 @@ #!/usr/bin/bash +# SPDX-License-Identifier: MIT # -# generate_man_page.sh -# Generate a Unix manual page for EmulationStation Desktop Edition. +# EmulationStation Desktop Edition +# generate_man_page.sh # -# The script takes no arguments and replaces the man page file es-app/assets/emulationstation.6.gz -# It has to be run from within the tools directory. +# Generates the Unix manual page. +# The script takes no arguments and replaces the man page file es-app/assets/emulationstation.6.gz +# It has to be run from within the tools directory. # -# The command help2man must be installed, or the script will fail. +# The command help2man must be installed, or the script will fail. # -# This script is intended to only be used on Linux systems. -# -# Leon Styhre -# 2020-07-16 +# This script is only intended to be used on Linux systems. # if [ ! -f ../es-app/CMakeLists.txt ]; then diff --git a/tools/macOS_change_dylib_rpaths.sh b/tools/macOS_change_dylib_rpaths.sh index 83bfb25bf..9eff58c7c 100755 --- a/tools/macOS_change_dylib_rpaths.sh +++ b/tools/macOS_change_dylib_rpaths.sh @@ -1,14 +1,13 @@ #!/bin/sh +# SPDX-License-Identifier: MIT # -# macOS_change_dylib_rpaths.sh -# Update the dylib paths to use rpaths instead of absolute paths. +# EmulationStation Desktop Edition +# macOS_change_dylib_rpaths.sh # -# This script does not do much error checking so the results should be verified manually -# afterwards using the "otool -L" command. -# Changes are needed to this script when moving to a new version for any of the libraries. -# -# Leon Styhre -# 2021-05-13 +# Updates the dylib paths to use rpaths instead of absolute paths. +# This script does not do much error checking so the results should be verified manually +# afterwards using the "otool -L" command. +# Changes are needed to this script when moving to a new version for any of the libraries. # export FREETYPE_FILENAME=libfreetype.6.dylib diff --git a/tools/mame_create_index_files.sh b/tools/mame_create_index_files.sh index 054efd29c..f114d18b8 100755 --- a/tools/mame_create_index_files.sh +++ b/tools/mame_create_index_files.sh @@ -1,24 +1,22 @@ #!/usr/bin/bash +# SPDX-License-Identifier: MIT # -# mame_create_index_files.sh -# EmulationStation MAME index files creation. +# EmulationStation Desktop Edition +# mame_create_index_files.sh # -# As input, this script takes the MAME driver information XML file from the official -# MAME release and generates the files mamebioses.xml, mamedevices.xml and mamenames.xml. +# As input, this script takes the MAME driver information XML file from the official +# MAME release and generates the files mamebioses.xml, mamedevices.xml and mamenames.xml. # -# There is not much error checking going on here, this script is not intended to be -# used by the end user. +# There is not much error checking going on here, this script is not intended to be run +# by the end user. # -# xmlstarlet must be installed or this script will fail. +# xmlstarlet must be installed or this script will fail. # -# Download the driver file from here: -# https://www.mamedev.org/release.php -# It's enough to download the driver information, not the complete emulator. +# Download the driver file from here: +# https://www.mamedev.org/release.php +# It's enough to download the driver information, not the complete emulator. # -# This script is intended to only be used on Linux systems. -# -# Leon Styhre -# 2020-06-16 +# This script is only intended to be used on Linux systems. # if [ $# -ne 1 ]; then diff --git a/tools/mame_merge_index_files.sh b/tools/mame_merge_index_files.sh index 9d4fedb2b..71a844445 100755 --- a/tools/mame_merge_index_files.sh +++ b/tools/mame_merge_index_files.sh @@ -1,20 +1,18 @@ #!/usr/bin/bash +# SPDX-License-Identifier: MIT # -# mame_merge_index_files.sh -# EmulationStation MAME ROM index files merging. +# EmulationStation Desktop Edition +# mame_merge_index_files.sh # -# This script merges older ROM index files with newly generated ones. -# As the MAME project drops and renames ROM files from time to time, we need to -# include the old ROM names as well even if not supported by the newest MAME version. -# The user may very well run an older MAME version and may therefore have an old ROM set. +# This script merges older ROM index files with newly generated ones. +# As the MAME project drops and renames ROM files from time to time, we need to +# include the old ROM names as well even if not supported by the newest MAME version. +# The user may very well run an older MAME version and may therefore have an old ROM set. # -# There is not much error checking going on here, this script is not intended to be -# used by the end user. +# There is not much error checking going on here, this script is not intended to be run +# by the end user. # -# This script is intended to only be used on Linux systems. -# -# Leon Styhre -# 2020-06-16 +# This script is only intended to be used on Linux systems. # if [ $# -ne 3 ]; then diff --git a/tools/update_theme_formatversion.sh b/tools/update_theme_formatversion.sh index b2d132f7d..da461b38c 100755 --- a/tools/update_theme_formatversion.sh +++ b/tools/update_theme_formatversion.sh @@ -1,12 +1,12 @@ #!/usr/bin/bash +# SPDX-License-Identifier: MIT # -# update_theme_formatversion.sh -# Update the format version of all the XML files in a theme set. +# EmulationStation Desktop Edition +# update_theme_formatversion.sh # -# This script is intended to only be used on Linux systems. +# Updates the format version of all the XML files in a theme set. # -# Leon Styhre -# 2020-06-22 +# This script is only intended to be used on Linux systems. # if [ $# -ne 2 ]; then diff --git a/tools/update_version_string.sh b/tools/update_version_string.sh index ef5c90659..23b213752 100755 --- a/tools/update_version_string.sh +++ b/tools/update_version_string.sh @@ -1,25 +1,25 @@ #!/usr/bin/bash +# SPDX-License-Identifier: MIT # -# update_version_string.sh -# Updates the version string for EmulationStation Desktop Edition. +# EmulationStation Desktop Edition +# update_version_string.sh # -# This script takes as arguments the major, minor and patch numbers as well as an optional -# alphanumeric suffix and updates all the necessary files to indicate a new software version. -# The script has to be run from within the tools directory. +# Updates the version string for EmulationStation Desktop Edition. +# This script takes as arguments the major, minor and patch numbers as well as an optional +# alphanumeric suffix and updates all the necessary files to indicate a new software version. +# The script has to be run from within the tools directory. # -# Example use: -# ./update_version_string.sh 1 0 0 beta1 +# Example use: +# ./update_version_string.sh 1 0 0 beta1 # -# The following files are updated by this script: -# es-app/CMakeLists.txt -# es-app/src/EmulationStation.h -# es-app/assets/EmulationStation-DE_Info.plist -# es-app/assets/emulationstation.desktop +# The following files are updated by this script: +# es-app/CMakeLists.txt +# es-app/src/EmulationStation.h +# es-app/assets/EmulationStation-DE_Info.plist +# es-app/assets/emulationstation.desktop # -# This script is intended to only be used on Linux systems. +# This script is only intended to be used on Linux systems. # -# Leon Styhre -# 2020-12-30 # if [ ! -f ../es-app/CMakeLists.txt ]; then