From 8db04c5fcb4b1b1a31532b059d5bd7723d6f6ff1 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Mon, 21 Sep 2020 19:17:34 +0200 Subject: [PATCH] Added SPDX license identifiers to all source files. --- es-app/src/EmulationStation.h | 1 - es-app/src/FileFilterIndex.cpp | 2 ++ es-app/src/FileFilterIndex.h | 3 ++- es-app/src/FileSorts.cpp | 2 ++ es-app/src/FileSorts.h | 4 +++- es-app/src/Gamelist.cpp | 5 +++-- es-app/src/Gamelist.h | 3 ++- es-app/src/MetaData.cpp | 3 +++ es-app/src/MetaData.h | 3 ++- es-app/src/PlatformId.cpp | 2 ++ es-app/src/PlatformId.h | 3 ++- es-app/src/SystemData.h | 1 + es-app/src/SystemScreenSaver.cpp | 2 +- es-app/src/VolumeControl.h | 4 ++-- .../src/guis/GuiCollectionSystemsOptions.cpp | 2 ++ es-app/src/guis/GuiCollectionSystemsOptions.h | 3 ++- es-app/src/guis/GuiGameScraper.cpp | 2 ++ es-app/src/guis/GuiGameScraper.h | 3 ++- es-app/src/guis/GuiGamelistFilter.cpp | 2 ++ es-app/src/guis/GuiGamelistFilter.h | 3 ++- .../src/guis/GuiGeneralScreensaverOptions.cpp | 2 ++ es-app/src/guis/GuiGeneralScreensaverOptions.h | 3 ++- es-app/src/guis/GuiInfoPopup.cpp | 2 ++ es-app/src/guis/GuiInfoPopup.h | 3 ++- es-app/src/guis/GuiMetaDataEd.cpp | 2 ++ es-app/src/guis/GuiMetaDataEd.h | 3 ++- es-app/src/guis/GuiScraperMenu.cpp | 2 ++ es-app/src/guis/GuiScraperMenu.h | 3 ++- es-app/src/guis/GuiScraperMulti.cpp | 2 ++ es-app/src/guis/GuiScraperMulti.h | 3 ++- es-app/src/guis/GuiScraperSearch.cpp | 2 ++ es-app/src/guis/GuiScraperSearch.h | 3 ++- es-app/src/guis/GuiScreensaverOptions.cpp | 2 ++ es-app/src/guis/GuiScreensaverOptions.h | 3 ++- es-app/src/guis/GuiSettings.cpp | 2 ++ es-app/src/guis/GuiSettings.h | 3 ++- .../guis/GuiSlideshowScreensaverOptions.cpp | 2 ++ .../src/guis/GuiSlideshowScreensaverOptions.h | 3 ++- es-app/src/guis/GuiVideoScreensaverOptions.cpp | 2 ++ es-app/src/guis/GuiVideoScreensaverOptions.h | 3 ++- es-app/src/scrapers/GamesDBJSONScraper.cpp | 12 +++++++----- es-app/src/scrapers/GamesDBJSONScraper.h | 3 ++- .../scrapers/GamesDBJSONScraperResources.cpp | 18 ++++++++++-------- .../src/scrapers/GamesDBJSONScraperResources.h | 7 ++++--- es-app/src/scrapers/Scraper.cpp | 2 ++ es-app/src/scrapers/Scraper.h | 6 ++++-- es-app/src/scrapers/ScreenScraper.cpp | 2 ++ es-app/src/scrapers/ScreenScraper.h | 3 ++- es-app/src/views/UIModeController.h | 2 +- es-core/src/AsyncHandle.h | 3 ++- es-core/src/AudioManager.cpp | 2 ++ es-core/src/AudioManager.h | 4 ++-- es-core/src/CECInput.cpp | 4 +++- es-core/src/CECInput.h | 5 +++-- es-core/src/HelpPrompt.h | 3 ++- es-core/src/HelpStyle.cpp | 2 ++ es-core/src/HelpStyle.h | 4 +++- es-core/src/HttpReq.cpp | 2 ++ es-core/src/HttpReq.h | 3 ++- es-core/src/ImageIO.cpp | 3 +++ es-core/src/ImageIO.h | 3 ++- es-core/src/InputConfig.cpp | 2 ++ es-core/src/InputConfig.h | 3 ++- es-core/src/InputManager.cpp | 4 +++- es-core/src/InputManager.h | 3 ++- es-core/src/Log.cpp | 4 +++- es-core/src/Log.h | 5 +++-- es-core/src/MameNames.cpp | 3 +++ es-core/src/MameNames.h | 3 ++- es-core/src/PowerSaver.cpp | 2 ++ es-core/src/PowerSaver.h | 3 ++- es-core/src/Scripting.cpp | 2 ++ es-core/src/Scripting.h | 3 ++- es-core/src/Settings.cpp | 6 ++++-- es-core/src/Settings.h | 3 ++- es-core/src/Sound.cpp | 2 ++ es-core/src/Sound.h | 3 ++- es-core/src/ThemeData.cpp | 5 ++++- es-core/src/ThemeData.h | 3 ++- es-core/src/animations/Animation.h | 3 ++- es-core/src/animations/AnimationController.cpp | 2 ++ es-core/src/animations/AnimationController.h | 3 ++- es-core/src/animations/LambdaAnimation.h | 3 ++- .../src/components/AnimatedImageComponent.cpp | 2 ++ .../src/components/AnimatedImageComponent.h | 3 ++- es-core/src/components/BusyComponent.cpp | 2 ++ es-core/src/components/BusyComponent.h | 3 ++- es-core/src/components/ButtonComponent.cpp | 2 ++ es-core/src/components/ButtonComponent.h | 3 ++- es-core/src/components/ComponentGrid.cpp | 2 ++ es-core/src/components/ComponentGrid.h | 3 ++- es-core/src/components/ComponentList.cpp | 2 ++ es-core/src/components/ComponentList.h | 3 ++- es-core/src/components/DateTimeComponent.cpp | 2 ++ es-core/src/components/DateTimeComponent.h | 3 ++- .../src/components/DateTimeEditComponent.cpp | 2 ++ es-core/src/components/DateTimeEditComponent.h | 3 ++- es-core/src/components/GridTileComponent.cpp | 2 ++ es-core/src/components/GridTileComponent.h | 5 +++-- es-core/src/components/HelpComponent.cpp | 2 ++ es-core/src/components/HelpComponent.h | 3 ++- es-core/src/components/ImageGridComponent.h | 3 ++- es-core/src/components/MenuComponent.cpp | 2 ++ es-core/src/components/MenuComponent.h | 3 ++- es-core/src/components/NinePatchComponent.cpp | 2 ++ es-core/src/components/NinePatchComponent.h | 3 ++- es-core/src/components/OptionListComponent.h | 5 +++-- es-core/src/components/RatingComponent.cpp | 2 ++ es-core/src/components/RatingComponent.h | 3 ++- es-core/src/components/SliderComponent.cpp | 2 ++ es-core/src/components/SliderComponent.h | 3 ++- es-core/src/components/SwitchComponent.cpp | 2 ++ es-core/src/components/SwitchComponent.h | 3 ++- es-core/src/components/TextComponent.cpp | 2 ++ es-core/src/components/TextComponent.h | 3 ++- .../src/components/VideoPlayerComponent.cpp | 2 ++ es-core/src/components/VideoPlayerComponent.h | 3 ++- es-core/src/components/VideoVlcComponent.cpp | 4 +++- es-core/src/components/VideoVlcComponent.h | 3 ++- es-core/src/guis/GuiDetectDevice.cpp | 2 ++ es-core/src/guis/GuiDetectDevice.h | 3 ++- es-core/src/guis/GuiInputConfig.cpp | 2 ++ es-core/src/guis/GuiInputConfig.h | 3 ++- es-core/src/guis/GuiMsgBox.cpp | 2 ++ es-core/src/guis/GuiMsgBox.h | 3 ++- es-core/src/math/Misc.cpp | 2 ++ es-core/src/math/Misc.h | 3 ++- es-core/src/math/Transform4x4f.cpp | 4 +++- es-core/src/math/Transform4x4f.h | 5 +++-- es-core/src/math/Vector2f.cpp | 2 ++ es-core/src/math/Vector2f.h | 3 ++- es-core/src/math/Vector2i.cpp | 2 ++ es-core/src/math/Vector2i.h | 3 ++- es-core/src/math/Vector3f.cpp | 2 ++ es-core/src/math/Vector3f.h | 3 ++- es-core/src/math/Vector4f.cpp | 2 ++ es-core/src/math/Vector4f.h | 3 ++- es-core/src/renderers/Renderer_GLES10.cpp | 2 ++ es-core/src/resources/Font.cpp | 2 ++ es-core/src/resources/Font.h | 3 ++- es-core/src/resources/ResourceManager.cpp | 2 ++ es-core/src/resources/ResourceManager.h | 3 ++- es-core/src/resources/TextureData.cpp | 3 +++ es-core/src/resources/TextureData.h | 3 ++- es-core/src/resources/TextureDataManager.cpp | 2 ++ es-core/src/resources/TextureDataManager.h | 3 ++- es-core/src/resources/TextureResource.cpp | 2 ++ es-core/src/resources/TextureResource.h | 4 +++- es-core/src/utils/FileSystemUtil.cpp | 4 +++- es-core/src/utils/FileSystemUtil.h | 3 ++- es-core/src/utils/StringUtil.cpp | 2 ++ es-core/src/utils/StringUtil.h | 3 ++- es-core/src/utils/TimeUtil.cpp | 2 ++ es-core/src/utils/TimeUtil.h | 3 ++- 154 files changed, 343 insertions(+), 115 deletions(-) diff --git a/es-app/src/EmulationStation.h b/es-app/src/EmulationStation.h index 1a0ecc2cf..e9cfa8e39 100644 --- a/es-app/src/EmulationStation.h +++ b/es-app/src/EmulationStation.h @@ -5,7 +5,6 @@ // Version and build information. // -#pragma once #ifndef ES_APP_EMULATION_STATION_H #define ES_APP_EMULATION_STATION_H diff --git a/es-app/src/FileFilterIndex.cpp b/es-app/src/FileFilterIndex.cpp index 883c340c9..13b434079 100644 --- a/es-app/src/FileFilterIndex.cpp +++ b/es-app/src/FileFilterIndex.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // FileFilterIndex.cpp // // Gamelist filters. diff --git a/es-app/src/FileFilterIndex.h b/es-app/src/FileFilterIndex.h index 08d6fd231..4e1483600 100644 --- a/es-app/src/FileFilterIndex.h +++ b/es-app/src/FileFilterIndex.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // FileFilterIndex.h // // Gamelist filters. // -#pragma once #ifndef ES_APP_FILE_FILTER_INDEX_H #define ES_APP_FILE_FILTER_INDEX_H diff --git a/es-app/src/FileSorts.cpp b/es-app/src/FileSorts.cpp index f1f8d0145..7f70dccbf 100644 --- a/es-app/src/FileSorts.cpp +++ b/es-app/src/FileSorts.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // FileSorts.cpp // // Gamelist sorting functions. diff --git a/es-app/src/FileSorts.h b/es-app/src/FileSorts.h index aef046645..42f1cc237 100644 --- a/es-app/src/FileSorts.h +++ b/es-app/src/FileSorts.h @@ -1,15 +1,17 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // FileSorts.h // // Gamelist sorting functions. // Actual sorting takes place in FileData. // -#pragma once #ifndef ES_APP_FILE_SORTS_H #define ES_APP_FILE_SORTS_H #include "FileData.h" + #include namespace FileSorts diff --git a/es-app/src/Gamelist.cpp b/es-app/src/Gamelist.cpp index aa3b62476..43b614094 100644 --- a/es-app/src/Gamelist.cpp +++ b/es-app/src/Gamelist.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // Gamelist.cpp // // Parses and updates the gamelist.xml files. @@ -6,8 +8,6 @@ #include "Gamelist.h" -#include - #include "utils/FileSystemUtil.h" #include "utils/StringUtil.h" #include "FileData.h" @@ -16,6 +16,7 @@ #include "Settings.h" #include "SystemData.h" +#include #include FileData* findOrCreateFile(SystemData* system, const std::string& path, FileType type) diff --git a/es-app/src/Gamelist.h b/es-app/src/Gamelist.h index ca9051b84..a8f91a027 100644 --- a/es-app/src/Gamelist.h +++ b/es-app/src/Gamelist.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // Gamelist.h // // Parses and updates the gamelist.xml files. // -#pragma once #ifndef ES_APP_GAME_LIST_H #define ES_APP_GAME_LIST_H diff --git a/es-app/src/MetaData.cpp b/es-app/src/MetaData.cpp index 128aeeb95..7d7fb7848 100644 --- a/es-app/src/MetaData.cpp +++ b/es-app/src/MetaData.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // MetaData.cpp // // Static data for default metadata values as well as functions @@ -9,6 +11,7 @@ #include "utils/FileSystemUtil.h" #include "Log.h" + #include MetaDataDecl gameDecls[] = { diff --git a/es-app/src/MetaData.h b/es-app/src/MetaData.h index 400677907..e1a47ed43 100644 --- a/es-app/src/MetaData.h +++ b/es-app/src/MetaData.h @@ -1,11 +1,12 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // MetaData.h // // Static data for default metadata values as well as functions // to read and write metadata from the gamelist files. // -#pragma once #ifndef ES_APP_META_DATA_H #define ES_APP_META_DATA_H diff --git a/es-app/src/PlatformId.cpp b/es-app/src/PlatformId.cpp index d178724f0..602f695af 100644 --- a/es-app/src/PlatformId.cpp +++ b/es-app/src/PlatformId.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // PlatformId.cpp // // Index of all supported systems/platforms. diff --git a/es-app/src/PlatformId.h b/es-app/src/PlatformId.h index b8d9d35fe..84fbbe257 100644 --- a/es-app/src/PlatformId.h +++ b/es-app/src/PlatformId.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // PlatformId.h // // Index of all supported systems/platforms. // -#pragma once #ifndef ES_APP_PLATFORM_ID_H #define ES_APP_PLATFORM_ID_H diff --git a/es-app/src/SystemData.h b/es-app/src/SystemData.h index d65437cc3..26f276d08 100644 --- a/es-app/src/SystemData.h +++ b/es-app/src/SystemData.h @@ -13,6 +13,7 @@ #define ES_APP_SYSTEM_DATA_H #include "PlatformId.h" + #include #include #include diff --git a/es-app/src/SystemScreenSaver.cpp b/es-app/src/SystemScreenSaver.cpp index 6084a81e1..b525fa8a1 100644 --- a/es-app/src/SystemScreenSaver.cpp +++ b/es-app/src/SystemScreenSaver.cpp @@ -23,8 +23,8 @@ #include "Sound.h" #include "SystemData.h" -#include #include +#include #if defined(_WIN64) #include diff --git a/es-app/src/VolumeControl.h b/es-app/src/VolumeControl.h index 449a1d0d1..106e01a53 100644 --- a/es-app/src/VolumeControl.h +++ b/es-app/src/VolumeControl.h @@ -14,9 +14,9 @@ #if defined(__APPLE__) //#error TODO: Not implemented for MacOS yet!!! #elif defined(__linux__) -#include -#include #include +#include +#include #elif defined(_WIN64) #include #include diff --git a/es-app/src/guis/GuiCollectionSystemsOptions.cpp b/es-app/src/guis/GuiCollectionSystemsOptions.cpp index d40b93960..38555e296 100644 --- a/es-app/src/guis/GuiCollectionSystemsOptions.cpp +++ b/es-app/src/guis/GuiCollectionSystemsOptions.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GuiCollectionSystemsOptions.cpp // // User interface for the game collection settings. diff --git a/es-app/src/guis/GuiCollectionSystemsOptions.h b/es-app/src/guis/GuiCollectionSystemsOptions.h index 96da01de9..3116d18de 100644 --- a/es-app/src/guis/GuiCollectionSystemsOptions.h +++ b/es-app/src/guis/GuiCollectionSystemsOptions.h @@ -1,11 +1,12 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GuiCollectionSystemsOptions.h // // User interface for the game collection settings. // Submenu to the GuiMenu main menu. // -#pragma once #ifndef ES_APP_GUIS_GUI_COLLECTION_SYSTEM_OPTIONS_H #define ES_APP_GUIS_GUI_COLLECTION_SYSTEM_OPTIONS_H diff --git a/es-app/src/guis/GuiGameScraper.cpp b/es-app/src/guis/GuiGameScraper.cpp index 01ee822ff..3d88c1d87 100644 --- a/es-app/src/guis/GuiGameScraper.cpp +++ b/es-app/src/guis/GuiGameScraper.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GuiGameScraper.cpp // // Single game scraping user interface. diff --git a/es-app/src/guis/GuiGameScraper.h b/es-app/src/guis/GuiGameScraper.h index a957eed11..d7507b040 100644 --- a/es-app/src/guis/GuiGameScraper.h +++ b/es-app/src/guis/GuiGameScraper.h @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GuiGameScraper.h // // Single game scraping user interface. @@ -6,7 +8,6 @@ // GuiScraperSearch is called from here. // -#pragma once #ifndef ES_APP_GUIS_GUI_GAME_SCRAPER_H #define ES_APP_GUIS_GUI_GAME_SCRAPER_H diff --git a/es-app/src/guis/GuiGamelistFilter.cpp b/es-app/src/guis/GuiGamelistFilter.cpp index 8842e7b1e..c7065c5e3 100644 --- a/es-app/src/guis/GuiGamelistFilter.cpp +++ b/es-app/src/guis/GuiGamelistFilter.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GuiGamelistFilter.cpp // // User interface for the gamelist filters. diff --git a/es-app/src/guis/GuiGamelistFilter.h b/es-app/src/guis/GuiGamelistFilter.h index e4ada95fd..c2ade8037 100644 --- a/es-app/src/guis/GuiGamelistFilter.h +++ b/es-app/src/guis/GuiGamelistFilter.h @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GuiGamelistFilter.h // // User interface for the gamelist filters. @@ -6,7 +8,6 @@ // Actual filter logic is covered by FileFilterIndex. // -#pragma once #ifndef ES_APP_GUIS_GUI_GAME_LIST_FILTER_H #define ES_APP_GUIS_GUI_GAME_LIST_FILTER_H diff --git a/es-app/src/guis/GuiGeneralScreensaverOptions.cpp b/es-app/src/guis/GuiGeneralScreensaverOptions.cpp index 6189449e7..3dc978fd2 100644 --- a/es-app/src/guis/GuiGeneralScreensaverOptions.cpp +++ b/es-app/src/guis/GuiGeneralScreensaverOptions.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GuiGeneralScreensaverOptions.cpp // // User interface for the screensaver options. diff --git a/es-app/src/guis/GuiGeneralScreensaverOptions.h b/es-app/src/guis/GuiGeneralScreensaverOptions.h index bcdeae517..9bf94412d 100644 --- a/es-app/src/guis/GuiGeneralScreensaverOptions.h +++ b/es-app/src/guis/GuiGeneralScreensaverOptions.h @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GuiGeneralScreensaverOptions.h // // User interface for the screensaver options. @@ -6,7 +8,6 @@ // Submenu to the GuiMenu main menu. // -#pragma once #ifndef ES_APP_GUIS_GUI_GENERAL_SCREENSAVER_OPTIONS_H #define ES_APP_GUIS_GUI_GENERAL_SCREENSAVER_OPTIONS_H diff --git a/es-app/src/guis/GuiInfoPopup.cpp b/es-app/src/guis/GuiInfoPopup.cpp index 05429a26d..1cc64d49b 100644 --- a/es-app/src/guis/GuiInfoPopup.cpp +++ b/es-app/src/guis/GuiInfoPopup.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GuiInfoPopup.cpp // // Popup window used for user notifications. diff --git a/es-app/src/guis/GuiInfoPopup.h b/es-app/src/guis/GuiInfoPopup.h index cb29cfa15..e24194522 100644 --- a/es-app/src/guis/GuiInfoPopup.h +++ b/es-app/src/guis/GuiInfoPopup.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GuiInfoPopup.h // // Popup window used for user notifications. // -#pragma once #ifndef ES_APP_GUIS_GUI_INFO_POPUP_H #define ES_APP_GUIS_GUI_INFO_POPUP_H diff --git a/es-app/src/guis/GuiMetaDataEd.cpp b/es-app/src/guis/GuiMetaDataEd.cpp index cf4c33944..898e6d8b3 100644 --- a/es-app/src/guis/GuiMetaDataEd.cpp +++ b/es-app/src/guis/GuiMetaDataEd.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GuiMetaDataEd.cpp // // Game metadata edit user interface. diff --git a/es-app/src/guis/GuiMetaDataEd.h b/es-app/src/guis/GuiMetaDataEd.h index d9aae66b7..8a4662271 100644 --- a/es-app/src/guis/GuiMetaDataEd.h +++ b/es-app/src/guis/GuiMetaDataEd.h @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GuiMetaDataEd.h // // Game metadata edit user interface. @@ -7,7 +9,6 @@ // GuiScraperSearch. // -#pragma once #ifndef ES_APP_GUIS_GUI_META_DATA_ED_H #define ES_APP_GUIS_GUI_META_DATA_ED_H diff --git a/es-app/src/guis/GuiScraperMenu.cpp b/es-app/src/guis/GuiScraperMenu.cpp index 2919127d9..8904d0582 100644 --- a/es-app/src/guis/GuiScraperMenu.cpp +++ b/es-app/src/guis/GuiScraperMenu.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GuiScraperMenu.cpp // // Game media scraper, including settings as well as the scraping start button. diff --git a/es-app/src/guis/GuiScraperMenu.h b/es-app/src/guis/GuiScraperMenu.h index 7e034677b..3d6fa80e0 100644 --- a/es-app/src/guis/GuiScraperMenu.h +++ b/es-app/src/guis/GuiScraperMenu.h @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GuiScraperMenu.h // // Game media scraper, including settings as well as the scraping start button. @@ -6,7 +8,6 @@ // Will call GuiScraperMulti to perform the actual scraping. // -#pragma once #ifndef ES_APP_GUIS_GUI_SCRAPER_MENU_H #define ES_APP_GUIS_GUI_SCRAPER_MENU_H diff --git a/es-app/src/guis/GuiScraperMulti.cpp b/es-app/src/guis/GuiScraperMulti.cpp index 8a21bd6cb..54d58124a 100644 --- a/es-app/src/guis/GuiScraperMulti.cpp +++ b/es-app/src/guis/GuiScraperMulti.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GuiScraperMulti.cpp // // Multiple game scraping user interface. diff --git a/es-app/src/guis/GuiScraperMulti.h b/es-app/src/guis/GuiScraperMulti.h index a84a9c611..26964910d 100644 --- a/es-app/src/guis/GuiScraperMulti.h +++ b/es-app/src/guis/GuiScraperMulti.h @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GuiScraperMulti.h // // Multiple game scraping user interface. @@ -7,7 +9,6 @@ // GuiScraperSearch is called from here. // -#pragma once #ifndef ES_APP_GUIS_GUI_SCRAPER_MULTI_H #define ES_APP_GUIS_GUI_SCRAPER_MULTI_H diff --git a/es-app/src/guis/GuiScraperSearch.cpp b/es-app/src/guis/GuiScraperSearch.cpp index f9764fd2e..56f338627 100644 --- a/es-app/src/guis/GuiScraperSearch.cpp +++ b/es-app/src/guis/GuiScraperSearch.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GuiScraperSearch.cpp // // User interface for the scraper where the user is able to see an overview diff --git a/es-app/src/guis/GuiScraperSearch.h b/es-app/src/guis/GuiScraperSearch.h index e87a2147a..e6e980ced 100644 --- a/es-app/src/guis/GuiScraperSearch.h +++ b/es-app/src/guis/GuiScraperSearch.h @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GuiScraperSearch.h // // User interface for the scraper where the user is able to see an overview @@ -11,7 +13,6 @@ // from GuiScraperMulti for multi-game scraping. // -#pragma once #ifndef ES_APP_GUIS_GUI_SCRAPER_SEARCH_H #define ES_APP_GUIS_GUI_SCRAPER_SEARCH_H diff --git a/es-app/src/guis/GuiScreensaverOptions.cpp b/es-app/src/guis/GuiScreensaverOptions.cpp index 46fd7ae9f..88f9e01a6 100644 --- a/es-app/src/guis/GuiScreensaverOptions.cpp +++ b/es-app/src/guis/GuiScreensaverOptions.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GuiScreensaverOptions.cpp // // User interface template for the screensaver option GUIs. diff --git a/es-app/src/guis/GuiScreensaverOptions.h b/es-app/src/guis/GuiScreensaverOptions.h index a3815b864..c3cb6bbe8 100644 --- a/es-app/src/guis/GuiScreensaverOptions.h +++ b/es-app/src/guis/GuiScreensaverOptions.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GuiScreensaverOptions.h // // User interface template for the screensaver option GUIs. // -#pragma once #ifndef ES_APP_GUIS_GUI_SCREENSAVER_OPTIONS_H #define ES_APP_GUIS_GUI_SCREENSAVER_OPTIONS_H diff --git a/es-app/src/guis/GuiSettings.cpp b/es-app/src/guis/GuiSettings.cpp index ebfd5e0e2..3e9887216 100644 --- a/es-app/src/guis/GuiSettings.cpp +++ b/es-app/src/guis/GuiSettings.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GuiSettings.cpp // // User interface template for a settings GUI. diff --git a/es-app/src/guis/GuiSettings.h b/es-app/src/guis/GuiSettings.h index 5d700c35c..5739a7702 100644 --- a/es-app/src/guis/GuiSettings.h +++ b/es-app/src/guis/GuiSettings.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GuiSettings.h // // User interface template for a settings GUI. // -#pragma once #ifndef ES_APP_GUIS_GUI_SETTINGS_H #define ES_APP_GUIS_GUI_SETTINGS_H diff --git a/es-app/src/guis/GuiSlideshowScreensaverOptions.cpp b/es-app/src/guis/GuiSlideshowScreensaverOptions.cpp index 4bc755b4e..fa81c932f 100644 --- a/es-app/src/guis/GuiSlideshowScreensaverOptions.cpp +++ b/es-app/src/guis/GuiSlideshowScreensaverOptions.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GuiSlideshowScreensaverOptions.cpp // // User interface for the slideshow screensaver options. diff --git a/es-app/src/guis/GuiSlideshowScreensaverOptions.h b/es-app/src/guis/GuiSlideshowScreensaverOptions.h index 7aa9d71ae..b729b388e 100644 --- a/es-app/src/guis/GuiSlideshowScreensaverOptions.h +++ b/es-app/src/guis/GuiSlideshowScreensaverOptions.h @@ -1,11 +1,12 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GuiSlideshowScreensaverOptions.h // // User interface for the slideshow screensaver options. // Submenu to GuiGeneralScreensaverOptions. // -#pragma once #ifndef ES_APP_GUIS_GUI_SLIDESHOW_SCREENSAVER_OPTIONS_H #define ES_APP_GUIS_GUI_SLIDESHOW_SCREENSAVER_OPTIONS_H diff --git a/es-app/src/guis/GuiVideoScreensaverOptions.cpp b/es-app/src/guis/GuiVideoScreensaverOptions.cpp index 73d65bf9d..343763082 100644 --- a/es-app/src/guis/GuiVideoScreensaverOptions.cpp +++ b/es-app/src/guis/GuiVideoScreensaverOptions.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GuiVideoScreensaverOptions.cpp // // User interface for the video screensaver options. diff --git a/es-app/src/guis/GuiVideoScreensaverOptions.h b/es-app/src/guis/GuiVideoScreensaverOptions.h index ecd269207..24cb92fd7 100644 --- a/es-app/src/guis/GuiVideoScreensaverOptions.h +++ b/es-app/src/guis/GuiVideoScreensaverOptions.h @@ -1,11 +1,12 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GuiVideoScreensaverOptions.h // // User interface for the video screensaver options. // Submenu to GuiGeneralScreensaverOptions. // -#pragma once #ifndef ES_APP_GUIS_GUI_VIDEO_SCREENSAVER_OPTIONS_H #define ES_APP_GUIS_GUI_VIDEO_SCREENSAVER_OPTIONS_H diff --git a/es-app/src/scrapers/GamesDBJSONScraper.cpp b/es-app/src/scrapers/GamesDBJSONScraper.cpp index 347a08c1c..8a3ac7018 100644 --- a/es-app/src/scrapers/GamesDBJSONScraper.cpp +++ b/es-app/src/scrapers/GamesDBJSONScraper.cpp @@ -1,23 +1,25 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GamesDBJSONScraper.cpp // // Functions specifically for scraping from thegamesdb.net // Called from Scraper. // -#include -#include - #include "scrapers/GamesDBJSONScraper.h" #include "scrapers/GamesDBJSONScraperResources.h" +#include "utils/TimeUtil.h" #include "FileData.h" #include "Log.h" +#include "MameNames.h" #include "PlatformId.h" #include "Settings.h" #include "SystemData.h" -#include "MameNames.h" -#include "utils/TimeUtil.h" + +#include +#include #include // When raspbian will get an up to date version of rapidjson we'll be diff --git a/es-app/src/scrapers/GamesDBJSONScraper.h b/es-app/src/scrapers/GamesDBJSONScraper.h index 5ca272363..abe120d71 100644 --- a/es-app/src/scrapers/GamesDBJSONScraper.h +++ b/es-app/src/scrapers/GamesDBJSONScraper.h @@ -1,11 +1,12 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GamesDBJSONScraper.h // // Functions specifically for scraping from thegamesdb.net // Called from Scraper. // -#pragma once #ifndef ES_APP_SCRAPERS_GAMES_DB_JSON_SCRAPER_H #define ES_APP_SCRAPERS_GAMES_DB_JSON_SCRAPER_H diff --git a/es-app/src/scrapers/GamesDBJSONScraperResources.cpp b/es-app/src/scrapers/GamesDBJSONScraperResources.cpp index 29593b76a..6cd0b85c1 100644 --- a/es-app/src/scrapers/GamesDBJSONScraperResources.cpp +++ b/es-app/src/scrapers/GamesDBJSONScraperResources.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GamesDBJSONScraperResources.cpp // // Functions specifically for scraping from thegamesdb.net @@ -10,19 +12,19 @@ // gamesdb_publishers.json // +#include "scrapers/GamesDBJSONScraperResources.h" + +#include "utils/FileSystemUtil.h" +#include "Log.h" + +#include +#include + #include #include #include #include -#include "Log.h" - -#include "scrapers/GamesDBJSONScraperResources.h" -#include "utils/FileSystemUtil.h" - -#include -#include - using namespace rapidjson; namespace { diff --git a/es-app/src/scrapers/GamesDBJSONScraperResources.h b/es-app/src/scrapers/GamesDBJSONScraperResources.h index e82862f05..ba6e7e614 100644 --- a/es-app/src/scrapers/GamesDBJSONScraperResources.h +++ b/es-app/src/scrapers/GamesDBJSONScraperResources.h @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GamesDBJSONScraperResources.h // // Functions specifically for scraping from thegamesdb.net @@ -10,17 +12,16 @@ // gamesdb_publishers.json // -#pragma once #ifndef ES_APP_SCRAPERS_GAMES_DB_JSON_SCRAPER_RESOURCES_H #define ES_APP_SCRAPERS_GAMES_DB_JSON_SCRAPER_RESOURCES_H +#include "HttpReq.h" + #include #include #include #include -#include "HttpReq.h" - struct TheGamesDBJSONRequestResources { TheGamesDBJSONRequestResources() = default; diff --git a/es-app/src/scrapers/Scraper.cpp b/es-app/src/scrapers/Scraper.cpp index 2fae09678..f63475be1 100644 --- a/es-app/src/scrapers/Scraper.cpp +++ b/es-app/src/scrapers/Scraper.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // Scraper.cpp // // Main scraper logic. diff --git a/es-app/src/scrapers/Scraper.h b/es-app/src/scrapers/Scraper.h index afda1547d..d2e34a77b 100644 --- a/es-app/src/scrapers/Scraper.h +++ b/es-app/src/scrapers/Scraper.h @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // Scraper.h // // Main scraper logic. @@ -6,18 +8,18 @@ // Calls either GamesDBJSONScraper or ScreenScraper. // -#pragma once #ifndef ES_APP_SCRAPERS_SCRAPER_H #define ES_APP_SCRAPERS_SCRAPER_H #include "AsyncHandle.h" #include "HttpReq.h" #include "MetaData.h" + +#include #include #include #include #include -#include #define MAX_SCRAPER_RESULTS 7 diff --git a/es-app/src/scrapers/ScreenScraper.cpp b/es-app/src/scrapers/ScreenScraper.cpp index 962fb9278..34590bdf8 100644 --- a/es-app/src/scrapers/ScreenScraper.cpp +++ b/es-app/src/scrapers/ScreenScraper.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // ScreenScraper.cpp // // Functions specifically for scraping from screenscraper.fr diff --git a/es-app/src/scrapers/ScreenScraper.h b/es-app/src/scrapers/ScreenScraper.h index ffd4ff475..f84ef839f 100644 --- a/es-app/src/scrapers/ScreenScraper.h +++ b/es-app/src/scrapers/ScreenScraper.h @@ -1,11 +1,12 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // ScreenScraper.h // // Functions specifically for scraping from screenscraper.fr // Called from Scraper. // -#pragma once #ifndef ES_APP_SCRAPERS_SCREEN_SCRAPER_H #define ES_APP_SCRAPERS_SCREEN_SCRAPER_H diff --git a/es-app/src/views/UIModeController.h b/es-app/src/views/UIModeController.h index 7314e0c77..e4a97f680 100644 --- a/es-app/src/views/UIModeController.h +++ b/es-app/src/views/UIModeController.h @@ -10,8 +10,8 @@ #ifndef ES_APP_VIEWS_UI_MODE_CONTROLLER_H #define ES_APP_VIEWS_UI_MODE_CONTROLLER_H -#include #include +#include class FileData; class InputConfig; diff --git a/es-core/src/AsyncHandle.h b/es-core/src/AsyncHandle.h index f0cdab0da..4ea5a5482 100644 --- a/es-core/src/AsyncHandle.h +++ b/es-core/src/AsyncHandle.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // AsyncHandle.h // // Asynchronous operations used by GuiScraperSearch and Scraper. // -#pragma once #ifndef ES_CORE_ASYNC_HANDLE_H #define ES_CORE_ASYNC_HANDLE_H diff --git a/es-core/src/AudioManager.cpp b/es-core/src/AudioManager.cpp index 06441869b..78bec00f2 100644 --- a/es-core/src/AudioManager.cpp +++ b/es-core/src/AudioManager.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // AudioManager.cpp // // Low-level audio functions (using SDL2). diff --git a/es-core/src/AudioManager.h b/es-core/src/AudioManager.h index 79d83267a..28ce16c8c 100644 --- a/es-core/src/AudioManager.h +++ b/es-core/src/AudioManager.h @@ -1,15 +1,15 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // AudioManager.h // // Low-level audio functions (using SDL2). // -#pragma once #ifndef ES_CORE_AUDIO_MANAGER_H #define ES_CORE_AUDIO_MANAGER_H #include - #include #include diff --git a/es-core/src/CECInput.cpp b/es-core/src/CECInput.cpp index 05af0ad7e..a6afaeb30 100644 --- a/es-core/src/CECInput.cpp +++ b/es-core/src/CECInput.cpp @@ -1,7 +1,9 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // CECInput.cpp // -// CEC (Consumer Electronics Control). +// CEC (Consumer Electronics Control) input. // #include "CECInput.h" diff --git a/es-core/src/CECInput.h b/es-core/src/CECInput.h index fe2a4f704..4172f911b 100644 --- a/es-core/src/CECInput.h +++ b/es-core/src/CECInput.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // CECInput.h // -// CEC (Consumer Electronics Control). +// CEC (Consumer Electronics Control) input. // -#pragma once #ifndef ES_CORE_CECINPUT_H #define ES_CORE_CECINPUT_H diff --git a/es-core/src/HelpPrompt.h b/es-core/src/HelpPrompt.h index 081827958..ec7ad0626 100644 --- a/es-core/src/HelpPrompt.h +++ b/es-core/src/HelpPrompt.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // HelpPrompt.h // // Definition of the pair used by help prompts to display a button and its mapped function. // -#pragma once #ifndef ES_CORE_HELP_PROMPT_H #define ES_CORE_HELP_PROMPT_H diff --git a/es-core/src/HelpStyle.cpp b/es-core/src/HelpStyle.cpp index 8f5df3dd3..032927ee8 100644 --- a/es-core/src/HelpStyle.cpp +++ b/es-core/src/HelpStyle.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // HelpStyle.cpp // // Style (default colors, position and origin) for the help system. diff --git a/es-core/src/HelpStyle.h b/es-core/src/HelpStyle.h index 529b895fe..b82b86e96 100644 --- a/es-core/src/HelpStyle.h +++ b/es-core/src/HelpStyle.h @@ -1,15 +1,17 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // HelpStyle.h // // Style (default colors, position and origin) for the help system. // Also theme handling. // -#pragma once #ifndef ES_CORE_HELP_STYLE_H #define ES_CORE_HELP_STYLE_H #include "math/Vector2f.h" + #include #include diff --git a/es-core/src/HttpReq.cpp b/es-core/src/HttpReq.cpp index b6cc07276..9da613668 100644 --- a/es-core/src/HttpReq.cpp +++ b/es-core/src/HttpReq.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // HttpReq.cpp // // HTTP request functions. diff --git a/es-core/src/HttpReq.h b/es-core/src/HttpReq.h index 14132ad10..28b6841fd 100644 --- a/es-core/src/HttpReq.h +++ b/es-core/src/HttpReq.h @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // HttpReq.h // // HTTP request functions. @@ -6,7 +8,6 @@ // ScreenScraper to download game information and media files. // -#pragma once #ifndef ES_CORE_HTTP_REQ_H #define ES_CORE_HTTP_REQ_H diff --git a/es-core/src/ImageIO.cpp b/es-core/src/ImageIO.cpp index b4ce3bfbf..a287e4df4 100644 --- a/es-core/src/ImageIO.cpp +++ b/es-core/src/ImageIO.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // ImageIO.cpp // // Image I/O functions. @@ -7,6 +9,7 @@ #include "ImageIO.h" #include "Log.h" + #include #include diff --git a/es-core/src/ImageIO.h b/es-core/src/ImageIO.h index 1c6d2496d..afa548bdd 100644 --- a/es-core/src/ImageIO.h +++ b/es-core/src/ImageIO.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // ImageIO.h // // Image I/O functions. // -#pragma once #ifndef ES_CORE_IMAGE_IO #define ES_CORE_IMAGE_IO diff --git a/es-core/src/InputConfig.cpp b/es-core/src/InputConfig.cpp index 6e55bd5ad..7b9ef1b5d 100644 --- a/es-core/src/InputConfig.cpp +++ b/es-core/src/InputConfig.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // InputConfig.cpp // // Input device configuration functions. diff --git a/es-core/src/InputConfig.h b/es-core/src/InputConfig.h index d9d10041b..e80c116b5 100644 --- a/es-core/src/InputConfig.h +++ b/es-core/src/InputConfig.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // InputConfig.h // // Input device configuration functions. // -#pragma once #ifndef ES_CORE_INPUT_CONFIG_H #define ES_CORE_INPUT_CONFIG_H diff --git a/es-core/src/InputManager.cpp b/es-core/src/InputManager.cpp index 063fcc4e3..a67e83b05 100644 --- a/es-core/src/InputManager.cpp +++ b/es-core/src/InputManager.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // InputManager.cpp // // Low-level input handling. @@ -17,9 +19,9 @@ #include "Window.h" #include -#include #include #include +#include #define KEYBOARD_GUID_STRING "-1" #define CEC_GUID_STRING "-2" diff --git a/es-core/src/InputManager.h b/es-core/src/InputManager.h index ce8a82300..e0dbf84c2 100644 --- a/es-core/src/InputManager.h +++ b/es-core/src/InputManager.h @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // InputManager.h // // Low-level input handling. @@ -6,7 +8,6 @@ // Reads and writes the es_input.cfg configuration file. // -#pragma once #ifndef ES_CORE_INPUT_MANAGER_H #define ES_CORE_INPUT_MANAGER_H diff --git a/es-core/src/Log.cpp b/es-core/src/Log.cpp index 6c249dad8..fe6585e81 100644 --- a/es-core/src/Log.cpp +++ b/es-core/src/Log.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // Log.cpp // // Log handling. @@ -10,9 +12,9 @@ #include "utils/StringUtil.h" #include "Platform.h" +#include #include #include -#include LogLevel Log::reportingLevel = LogInfo; std::ofstream file; diff --git a/es-core/src/Log.h b/es-core/src/Log.h index b100c4a05..d12f58934 100644 --- a/es-core/src/Log.h +++ b/es-core/src/Log.h @@ -1,15 +1,16 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // Log.h // // Log handling. // -#pragma once #ifndef ES_CORE_LOG_H #define ES_CORE_LOG_H -#include #include +#include #define LOG(level) \ if (level > Log::getReportingLevel()); \ diff --git a/es-core/src/MameNames.cpp b/es-core/src/MameNames.cpp index 2d82a110e..736bd29f7 100644 --- a/es-core/src/MameNames.cpp +++ b/es-core/src/MameNames.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // MameNames.cpp // // Provides expanded game names based on short MAME name arguments. Also contains @@ -13,6 +15,7 @@ #include "utils/FileSystemUtil.h" #include "utils/StringUtil.h" #include "Log.h" + #include #include diff --git a/es-core/src/MameNames.h b/es-core/src/MameNames.h index e456f7367..9cbeee670 100644 --- a/es-core/src/MameNames.h +++ b/es-core/src/MameNames.h @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // MameNames.h // // Provides expanded game names based on short MAME name arguments. Also contains @@ -7,7 +9,6 @@ // as the files mamebioses.xml, mamedevices.xml and mamenames.xml. // -#pragma once #ifndef ES_CORE_MAMENAMES_H #define ES_CORE_MAMENAMES_H diff --git a/es-core/src/PowerSaver.cpp b/es-core/src/PowerSaver.cpp index c55dcfcfc..14b94955c 100644 --- a/es-core/src/PowerSaver.cpp +++ b/es-core/src/PowerSaver.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // PowerSaver.cpp // // Power saving functions. diff --git a/es-core/src/PowerSaver.h b/es-core/src/PowerSaver.h index a2ce51a1a..67c1c0459 100644 --- a/es-core/src/PowerSaver.h +++ b/es-core/src/PowerSaver.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // PowerSaver.h // // Power saving functions. // -#pragma once #ifndef ES_CORE_POWER_SAVER_H #define ES_CORE_POWER_SAVER_H diff --git a/es-core/src/Scripting.cpp b/es-core/src/Scripting.cpp index 1d79378c8..b2909b6b3 100644 --- a/es-core/src/Scripting.cpp +++ b/es-core/src/Scripting.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // Scripting.cpp // // Executes custom scripts for various events in EmulationStation. diff --git a/es-core/src/Scripting.h b/es-core/src/Scripting.h index 3582f5081..d115a81aa 100644 --- a/es-core/src/Scripting.h +++ b/es-core/src/Scripting.h @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // Scripting.h // // Executes custom scripts for various events in EmulationStation. @@ -10,7 +12,6 @@ // $HOME/.emulationstation/scripts/game-start/ will be executed. // -#pragma once #ifndef ES_CORE_SCRIPTING_H #define ES_CORE_SCRIPTING_H diff --git a/es-core/src/Settings.cpp b/es-core/src/Settings.cpp index ea06100ea..57a8a34f1 100644 --- a/es-core/src/Settings.cpp +++ b/es-core/src/Settings.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // Settings.cpp // // Functions to read from and write to the configuration file es_settings.cfg. @@ -10,11 +12,11 @@ #include "utils/FileSystemUtil.h" #include "utils/StringUtil.h" #include "Log.h" -#include "Scripting.h" #include "Platform.h" +#include "Scripting.h" -#include #include +#include #include Settings* Settings::sInstance = nullptr; diff --git a/es-core/src/Settings.h b/es-core/src/Settings.h index ffc6196e7..e9d6434ab 100644 --- a/es-core/src/Settings.h +++ b/es-core/src/Settings.h @@ -1,11 +1,12 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // Settings.h // // Functions to read from and write to the configuration file es_settings.cfg. // The default values for the application settings are defined here as well. // -#pragma once #ifndef ES_CORE_SETTINGS_H #define ES_CORE_SETTINGS_H diff --git a/es-core/src/Sound.cpp b/es-core/src/Sound.cpp index eb6355e04..ed901adf4 100644 --- a/es-core/src/Sound.cpp +++ b/es-core/src/Sound.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // Sound.cpp // // Higher-level audio functions. diff --git a/es-core/src/Sound.h b/es-core/src/Sound.h index 851dcc9dd..12a75ddee 100644 --- a/es-core/src/Sound.h +++ b/es-core/src/Sound.h @@ -1,11 +1,12 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // Sound.h // // Higher-level audio functions. // Reading theme sound setings, playing audio samples etc. // -#pragma once #ifndef ES_CORE_SOUND_H #define ES_CORE_SOUND_H diff --git a/es-core/src/ThemeData.cpp b/es-core/src/ThemeData.cpp index afdeade9e..b678ed647 100644 --- a/es-core/src/ThemeData.cpp +++ b/es-core/src/ThemeData.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // ThemeData.cpp // // Finds available themes on the file system and loads these, @@ -15,8 +17,9 @@ #include "Log.h" #include "Platform.h" #include "Settings.h" -#include + #include +#include std::vector ThemeData::sSupportedViews { { "all" }, { "system" }, { "basic" }, { "detailed" }, { "grid" }, { "video" } }; diff --git a/es-core/src/ThemeData.h b/es-core/src/ThemeData.h index ef9b46cdd..472fadcda 100644 --- a/es-core/src/ThemeData.h +++ b/es-core/src/ThemeData.h @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // ThemeData.h // // Finds available themes on the file system and loads these, @@ -6,7 +8,6 @@ // (includes, features, variables, views, elements). // -#pragma once #ifndef ES_CORE_THEME_DATA_H #define ES_CORE_THEME_DATA_H diff --git a/es-core/src/animations/Animation.h b/es-core/src/animations/Animation.h index 913e8932b..b2eaf28d0 100644 --- a/es-core/src/animations/Animation.h +++ b/es-core/src/animations/Animation.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // Animation.h // // Animation base class. // -#pragma once #ifndef ES_CORE_ANIMATIONS_ANIMATION_H #define ES_CORE_ANIMATIONS_ANIMATION_H diff --git a/es-core/src/animations/AnimationController.cpp b/es-core/src/animations/AnimationController.cpp index f76d5f175..57c2b04a2 100644 --- a/es-core/src/animations/AnimationController.cpp +++ b/es-core/src/animations/AnimationController.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // AnimationController.cpp // // Basic animation controls. diff --git a/es-core/src/animations/AnimationController.h b/es-core/src/animations/AnimationController.h index 637ac4f48..786d44503 100644 --- a/es-core/src/animations/AnimationController.h +++ b/es-core/src/animations/AnimationController.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // AnimationController.h // // Basic animation controls. // -#pragma once #ifndef ES_CORE_ANIMATIONS_ANIMATION_CONTROLLER_H #define ES_CORE_ANIMATIONS_ANIMATION_CONTROLLER_H diff --git a/es-core/src/animations/LambdaAnimation.h b/es-core/src/animations/LambdaAnimation.h index faa476522..82055a492 100644 --- a/es-core/src/animations/LambdaAnimation.h +++ b/es-core/src/animations/LambdaAnimation.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // LambdaAnimation.h // // Basic animation controls, to be used in lambda expressions. // -#pragma once #ifndef ES_CORE_ANIMATIONS_LAMBDA_ANIMATION_H #define ES_CORE_ANIMATIONS_LAMBDA_ANIMATION_H diff --git a/es-core/src/components/AnimatedImageComponent.cpp b/es-core/src/components/AnimatedImageComponent.cpp index 16bc040f0..4b998e675 100644 --- a/es-core/src/components/AnimatedImageComponent.cpp +++ b/es-core/src/components/AnimatedImageComponent.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // AnimatedImageComponent.cpp // // Creates animation from multiple images files. diff --git a/es-core/src/components/AnimatedImageComponent.h b/es-core/src/components/AnimatedImageComponent.h index cf156b55c..268a52ae7 100644 --- a/es-core/src/components/AnimatedImageComponent.h +++ b/es-core/src/components/AnimatedImageComponent.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // AnimatedImageComponent.h // // Creates animation from multiple images files. // -#pragma once #ifndef ES_CORE_COMPONENTS_ANIMATED_IMAGE_COMPONENT_H #define ES_CORE_COMPONENTS_ANIMATED_IMAGE_COMPONENT_H diff --git a/es-core/src/components/BusyComponent.cpp b/es-core/src/components/BusyComponent.cpp index a17294581..456a13b6f 100644 --- a/es-core/src/components/BusyComponent.cpp +++ b/es-core/src/components/BusyComponent.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // BusyComponent.cpp // // Animated busy indicator. diff --git a/es-core/src/components/BusyComponent.h b/es-core/src/components/BusyComponent.h index 9f9daca24..0dd634e4c 100644 --- a/es-core/src/components/BusyComponent.h +++ b/es-core/src/components/BusyComponent.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // BusyComponent.h // // Animated busy indicator. // -#pragma once #ifndef ES_CORE_COMPONENTS_BUSY_COMPONENT_H #define ES_CORE_COMPONENTS_BUSY_COMPONENT_H diff --git a/es-core/src/components/ButtonComponent.cpp b/es-core/src/components/ButtonComponent.cpp index 8f5b4e327..db21215d8 100644 --- a/es-core/src/components/ButtonComponent.cpp +++ b/es-core/src/components/ButtonComponent.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // ButtonComponent.cpp // // Basic on/off button. diff --git a/es-core/src/components/ButtonComponent.h b/es-core/src/components/ButtonComponent.h index 5ad5eb041..cf85fa058 100644 --- a/es-core/src/components/ButtonComponent.h +++ b/es-core/src/components/ButtonComponent.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // ButtonComponent.h // // Basic on/off button. // -#pragma once #ifndef ES_CORE_COMPONENTS_BUTTON_COMPONENT_H #define ES_CORE_COMPONENTS_BUTTON_COMPONENT_H diff --git a/es-core/src/components/ComponentGrid.cpp b/es-core/src/components/ComponentGrid.cpp index cdebcd049..2b65caa7f 100644 --- a/es-core/src/components/ComponentGrid.cpp +++ b/es-core/src/components/ComponentGrid.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // ComponentGrid.cpp // // Provides basic layout of components in an X*Y grid. diff --git a/es-core/src/components/ComponentGrid.h b/es-core/src/components/ComponentGrid.h index 9b72a31c0..e7732b140 100644 --- a/es-core/src/components/ComponentGrid.h +++ b/es-core/src/components/ComponentGrid.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // ComponentGrid.h // // Provides basic layout of components in an X*Y grid. // -#pragma once #ifndef ES_CORE_COMPONENTS_COMPONENT_GRID_H #define ES_CORE_COMPONENTS_COMPONENT_GRID_H diff --git a/es-core/src/components/ComponentList.cpp b/es-core/src/components/ComponentList.cpp index 7aa38ed96..3dd76fa2d 100644 --- a/es-core/src/components/ComponentList.cpp +++ b/es-core/src/components/ComponentList.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // ComponentList.cpp // // Used to lay out and navigate lists in GUI menus. diff --git a/es-core/src/components/ComponentList.h b/es-core/src/components/ComponentList.h index 590a73b4b..2d57739d0 100644 --- a/es-core/src/components/ComponentList.h +++ b/es-core/src/components/ComponentList.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // ComponentList.h // // Used to lay out and navigate lists in GUI menus. // -#pragma once #ifndef ES_CORE_COMPONENTS_COMPONENT_LIST_H #define ES_CORE_COMPONENTS_COMPONENT_LIST_H diff --git a/es-core/src/components/DateTimeComponent.cpp b/es-core/src/components/DateTimeComponent.cpp index 307ba4bcf..12550a0a9 100644 --- a/es-core/src/components/DateTimeComponent.cpp +++ b/es-core/src/components/DateTimeComponent.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // DateTimeComponent.cpp // // Provides the date and time, in absolute (actual date) or relative diff --git a/es-core/src/components/DateTimeComponent.h b/es-core/src/components/DateTimeComponent.h index 22c9bf531..8d48f97fd 100644 --- a/es-core/src/components/DateTimeComponent.h +++ b/es-core/src/components/DateTimeComponent.h @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // DateTimeComponent.h // // Provides the date and time, in absolute (actual date) or relative @@ -6,7 +8,6 @@ // Used by the gamelist views. // -#pragma once #ifndef ES_CORE_COMPONENTS_DATE_TIME_COMPONENT_H #define ES_CORE_COMPONENTS_DATE_TIME_COMPONENT_H diff --git a/es-core/src/components/DateTimeEditComponent.cpp b/es-core/src/components/DateTimeEditComponent.cpp index 5b3d9c9c4..2960489d4 100644 --- a/es-core/src/components/DateTimeEditComponent.cpp +++ b/es-core/src/components/DateTimeEditComponent.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // DateTimeEditComponent.cpp // // Date and time edit component. diff --git a/es-core/src/components/DateTimeEditComponent.h b/es-core/src/components/DateTimeEditComponent.h index 8dce7a1a7..8f918eb71 100644 --- a/es-core/src/components/DateTimeEditComponent.h +++ b/es-core/src/components/DateTimeEditComponent.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // DateTimeEditComponent.h // // Date and time edit component. // -#pragma once #ifndef ES_CORE_COMPONENTS_DATE_TIME_EDIT_COMPONENT_H #define ES_CORE_COMPONENTS_DATE_TIME_EDIT_COMPONENT_H diff --git a/es-core/src/components/GridTileComponent.cpp b/es-core/src/components/GridTileComponent.cpp index 5d02aa273..6d84d2ee3 100644 --- a/es-core/src/components/GridTileComponent.cpp +++ b/es-core/src/components/GridTileComponent.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GridTileComponent.cpp // // X*Y grid. diff --git a/es-core/src/components/GridTileComponent.h b/es-core/src/components/GridTileComponent.h index 2d97a4f59..f638dab78 100644 --- a/es-core/src/components/GridTileComponent.h +++ b/es-core/src/components/GridTileComponent.h @@ -1,15 +1,16 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GridTileComponent.h // // X*Y grid. // -#pragma once #ifndef ES_CORE_COMPONENTS_GRID_TILE_COMPONENT_H #define ES_CORE_COMPONENTS_GRID_TILE_COMPONENT_H -#include "NinePatchComponent.h" #include "ImageComponent.h" +#include "NinePatchComponent.h" struct GridTileProperties { Vector2f mSize; diff --git a/es-core/src/components/HelpComponent.cpp b/es-core/src/components/HelpComponent.cpp index ce43e3584..b19eee01d 100644 --- a/es-core/src/components/HelpComponent.cpp +++ b/es-core/src/components/HelpComponent.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // HelpComponent.cpp // // Help information in icon and text pairs. diff --git a/es-core/src/components/HelpComponent.h b/es-core/src/components/HelpComponent.h index 80b4ed5e9..4c1055481 100644 --- a/es-core/src/components/HelpComponent.h +++ b/es-core/src/components/HelpComponent.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // HelpComponent.h // // Help information in icon and text pairs. // -#pragma once #ifndef ES_CORE_COMPONENTS_HELP_COMPONENT_H #define ES_CORE_COMPONENTS_HELP_COMPONENT_H diff --git a/es-core/src/components/ImageGridComponent.h b/es-core/src/components/ImageGridComponent.h index 309a22135..3198637fb 100644 --- a/es-core/src/components/ImageGridComponent.h +++ b/es-core/src/components/ImageGridComponent.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // ImageGridComponent.cpp // // X*Y image grid, used by GridGameListView. // -#pragma once #ifndef ES_CORE_COMPONENTS_IMAGE_GRID_COMPONENT_H #define ES_CORE_COMPONENTS_IMAGE_GRID_COMPONENT_H diff --git a/es-core/src/components/MenuComponent.cpp b/es-core/src/components/MenuComponent.cpp index 0fbc6bca8..0e9a48b71 100644 --- a/es-core/src/components/MenuComponent.cpp +++ b/es-core/src/components/MenuComponent.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // MenuComponent.cpp // // Basic component for building a menu. diff --git a/es-core/src/components/MenuComponent.h b/es-core/src/components/MenuComponent.h index 46f233332..e5ddb9e27 100644 --- a/es-core/src/components/MenuComponent.h +++ b/es-core/src/components/MenuComponent.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // MenuComponent.h // // Basic component for building a menu. // -#pragma once #ifndef ES_CORE_COMPONENTS_MENU_COMPONENT_H #define ES_CORE_COMPONENTS_MENU_COMPONENT_H diff --git a/es-core/src/components/NinePatchComponent.cpp b/es-core/src/components/NinePatchComponent.cpp index b4bf5cecd..5322ab38b 100644 --- a/es-core/src/components/NinePatchComponent.cpp +++ b/es-core/src/components/NinePatchComponent.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // NinePatchComponent.cpp // // Breaks up an image into 3x3 patches to accomodate resizing without distortions. diff --git a/es-core/src/components/NinePatchComponent.h b/es-core/src/components/NinePatchComponent.h index 62bc89040..f05fcfef8 100644 --- a/es-core/src/components/NinePatchComponent.h +++ b/es-core/src/components/NinePatchComponent.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // NinePatchComponent.h // // Breaks up an image into 3x3 patches to accomodate resizing without distortions. // -#pragma once #ifndef ES_CORE_COMPONENTS_NINE_PATCH_COMPONENT_H #define ES_CORE_COMPONENTS_NINE_PATCH_COMPONENT_H diff --git a/es-core/src/components/OptionListComponent.h b/es-core/src/components/OptionListComponent.h index e7967a125..62d95bb30 100644 --- a/es-core/src/components/OptionListComponent.h +++ b/es-core/src/components/OptionListComponent.h @@ -1,11 +1,12 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // OptionListComponent.h // -// Provides a list of options. +// Provides a list of option components. // Supports various types using templates. // -#pragma once #ifndef ES_CORE_COMPONENTS_OPTION_LIST_COMPONENT_H #define ES_CORE_COMPONENTS_OPTION_LIST_COMPONENT_H diff --git a/es-core/src/components/RatingComponent.cpp b/es-core/src/components/RatingComponent.cpp index 2a18a6a64..b5de06926 100644 --- a/es-core/src/components/RatingComponent.cpp +++ b/es-core/src/components/RatingComponent.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // RatingComponent.cpp // // Game rating icons. diff --git a/es-core/src/components/RatingComponent.h b/es-core/src/components/RatingComponent.h index 260b81c97..a3f1cbd04 100644 --- a/es-core/src/components/RatingComponent.h +++ b/es-core/src/components/RatingComponent.h @@ -1,11 +1,12 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // RatingComponent.h // // Game rating icons. // Used by gamelist views, metadata editor and scraper. // -#pragma once #ifndef ES_APP_COMPONENTS_RATING_COMPONENT_H #define ES_APP_COMPONENTS_RATING_COMPONENT_H diff --git a/es-core/src/components/SliderComponent.cpp b/es-core/src/components/SliderComponent.cpp index 86d48fbcf..4c96e2bd1 100644 --- a/es-core/src/components/SliderComponent.cpp +++ b/es-core/src/components/SliderComponent.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // SliderComponent.cpp // // Slider to set value in a predefined range. diff --git a/es-core/src/components/SliderComponent.h b/es-core/src/components/SliderComponent.h index d1e883324..e10c3d913 100644 --- a/es-core/src/components/SliderComponent.h +++ b/es-core/src/components/SliderComponent.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // SliderComponent.h // // Slider to set value in a predefined range. // -#pragma once #ifndef ES_CORE_COMPONENTS_SLIDER_COMPONENT_H #define ES_CORE_COMPONENTS_SLIDER_COMPONENT_H diff --git a/es-core/src/components/SwitchComponent.cpp b/es-core/src/components/SwitchComponent.cpp index 79968d179..6565234e5 100644 --- a/es-core/src/components/SwitchComponent.cpp +++ b/es-core/src/components/SwitchComponent.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // SwitchComponent.cpp // // Basic switch used in the menus. diff --git a/es-core/src/components/SwitchComponent.h b/es-core/src/components/SwitchComponent.h index 1e3f4c75b..1236e52d1 100644 --- a/es-core/src/components/SwitchComponent.h +++ b/es-core/src/components/SwitchComponent.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // SwitchComponent.h // // Basic switch used in the menus. // -#pragma once #ifndef ES_CORE_COMPONENTS_SWITCH_COMPONENT_H #define ES_CORE_COMPONENTS_SWITCH_COMPONENT_H diff --git a/es-core/src/components/TextComponent.cpp b/es-core/src/components/TextComponent.cpp index 251a21558..70a274963 100644 --- a/es-core/src/components/TextComponent.cpp +++ b/es-core/src/components/TextComponent.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // TextComponent.cpp // // Displays text. diff --git a/es-core/src/components/TextComponent.h b/es-core/src/components/TextComponent.h index b458344ee..c81454636 100644 --- a/es-core/src/components/TextComponent.h +++ b/es-core/src/components/TextComponent.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // TextComponent.h // // Displays text. // -#pragma once #ifndef ES_CORE_COMPONENTS_TEXT_COMPONENT_H #define ES_CORE_COMPONENTS_TEXT_COMPONENT_H diff --git a/es-core/src/components/VideoPlayerComponent.cpp b/es-core/src/components/VideoPlayerComponent.cpp index 940e8edf4..0ff8b94ef 100644 --- a/es-core/src/components/VideoPlayerComponent.cpp +++ b/es-core/src/components/VideoPlayerComponent.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // VideoPlayerComponent.cpp // // OMXPlayer video playing for Raspberry Pi. diff --git a/es-core/src/components/VideoPlayerComponent.h b/es-core/src/components/VideoPlayerComponent.h index 2cac10afe..d3bc43ec9 100644 --- a/es-core/src/components/VideoPlayerComponent.h +++ b/es-core/src/components/VideoPlayerComponent.h @@ -1,11 +1,12 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // VideoPlayerComponent.h // // OMXPlayer video playing for Raspberry Pi. // #if defined(_RPI_) -#pragma once #ifndef ES_CORE_COMPONENTS_VIDEO_PLAYER_COMPONENT_H #define ES_CORE_COMPONENTS_VIDEO_PLAYER_COMPONENT_H diff --git a/es-core/src/components/VideoVlcComponent.cpp b/es-core/src/components/VideoVlcComponent.cpp index 265ea4812..9c8f396a2 100644 --- a/es-core/src/components/VideoVlcComponent.cpp +++ b/es-core/src/components/VideoVlcComponent.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // VideoVlcComponent.cpp // // Video playing using libVLC. @@ -21,8 +23,8 @@ #include #if defined(_WIN64) -#include #include +#include #endif libvlc_instance_t* VideoVlcComponent::mVLC = nullptr; diff --git a/es-core/src/components/VideoVlcComponent.h b/es-core/src/components/VideoVlcComponent.h index e860c0c62..e062b69f8 100644 --- a/es-core/src/components/VideoVlcComponent.h +++ b/es-core/src/components/VideoVlcComponent.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // VideoVlcComponent.h // // Video playing using libVLC. // -#pragma once #ifndef ES_CORE_COMPONENTS_VIDEO_VLC_COMPONENT_H #define ES_CORE_COMPONENTS_VIDEO_VLC_COMPONENT_H diff --git a/es-core/src/guis/GuiDetectDevice.cpp b/es-core/src/guis/GuiDetectDevice.cpp index 4b8d24dbd..9a90a7dca 100644 --- a/es-core/src/guis/GuiDetectDevice.cpp +++ b/es-core/src/guis/GuiDetectDevice.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GuiDetectDevice.cpp // // Detect input devices (keyboards, joysticks and gamepads). diff --git a/es-core/src/guis/GuiDetectDevice.h b/es-core/src/guis/GuiDetectDevice.h index 273339907..d482491d4 100644 --- a/es-core/src/guis/GuiDetectDevice.h +++ b/es-core/src/guis/GuiDetectDevice.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GuiDetectDevice.h // // Detect input devices (keyboards, joysticks and gamepads). // -#pragma once #ifndef ES_CORE_GUIS_GUI_DETECT_DEVICE_H #define ES_CORE_GUIS_GUI_DETECT_DEVICE_H diff --git a/es-core/src/guis/GuiInputConfig.cpp b/es-core/src/guis/GuiInputConfig.cpp index 9bf5ee7e5..bf357b300 100755 --- a/es-core/src/guis/GuiInputConfig.cpp +++ b/es-core/src/guis/GuiInputConfig.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GuiInputConfig.cpp // // Input device configuration GUI (for keyboards, joysticks and gamepads). diff --git a/es-core/src/guis/GuiInputConfig.h b/es-core/src/guis/GuiInputConfig.h index 0be3f1eb3..f5ee1ddbc 100644 --- a/es-core/src/guis/GuiInputConfig.h +++ b/es-core/src/guis/GuiInputConfig.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GuiInputConfig.h // // Input device configuration GUI (for keyboards, joysticks and gamepads). // -#pragma once #ifndef ES_CORE_GUIS_GUI_INPUT_CONFIG_H #define ES_CORE_GUIS_GUI_INPUT_CONFIG_H diff --git a/es-core/src/guis/GuiMsgBox.cpp b/es-core/src/guis/GuiMsgBox.cpp index 54bbc09fb..24d4d7bcb 100644 --- a/es-core/src/guis/GuiMsgBox.cpp +++ b/es-core/src/guis/GuiMsgBox.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GuiMsgBox.cpp // // Popup message dialog with a notification text and a choice of one, diff --git a/es-core/src/guis/GuiMsgBox.h b/es-core/src/guis/GuiMsgBox.h index 7a368b3d0..14f51de02 100644 --- a/es-core/src/guis/GuiMsgBox.h +++ b/es-core/src/guis/GuiMsgBox.h @@ -1,11 +1,12 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // GuiMsgBox.h // // Popup message dialog with a notification text and a choice of one, // two or three buttons. // -#pragma once #ifndef ES_CORE_GUIS_GUI_MSG_BOX_H #define ES_CORE_GUIS_GUI_MSG_BOX_H diff --git a/es-core/src/math/Misc.cpp b/es-core/src/math/Misc.cpp index 2442bb139..d5bdeefcb 100644 --- a/es-core/src/math/Misc.cpp +++ b/es-core/src/math/Misc.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // Misc.cpp // // Miscellaneous math functions. diff --git a/es-core/src/math/Misc.h b/es-core/src/math/Misc.h index f683351b3..01ee10719 100644 --- a/es-core/src/math/Misc.h +++ b/es-core/src/math/Misc.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // Misc.h // // Miscellaneous math functions. // -#pragma once #ifndef ES_CORE_MATH_MISC_H #define ES_CORE_MATH_MISC_H diff --git a/es-core/src/math/Transform4x4f.cpp b/es-core/src/math/Transform4x4f.cpp index 71d37b704..56ad716d9 100644 --- a/es-core/src/math/Transform4x4f.cpp +++ b/es-core/src/math/Transform4x4f.cpp @@ -1,7 +1,9 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // Transform4x4f.cpp // -// 4x4 transform functions. +// 4x4 matrix functions. // #include "math/Transform4x4f.h" diff --git a/es-core/src/math/Transform4x4f.h b/es-core/src/math/Transform4x4f.h index aab03b890..dd49bdc37 100644 --- a/es-core/src/math/Transform4x4f.h +++ b/es-core/src/math/Transform4x4f.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // Transform4x4f.h // -// 4x4 transform functions. +// 4x4 matrix functions. // -#pragma once #ifndef ES_CORE_MATH_TRANSFORM4X4F_H #define ES_CORE_MATH_TRANSFORM4X4F_H diff --git a/es-core/src/math/Vector2f.cpp b/es-core/src/math/Vector2f.cpp index 42106f6c9..28d15b1c9 100644 --- a/es-core/src/math/Vector2f.cpp +++ b/es-core/src/math/Vector2f.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // Vector2f.cpp // // 2-dimensional floating point vector functions. diff --git a/es-core/src/math/Vector2f.h b/es-core/src/math/Vector2f.h index e2fb4a465..a33f58cd4 100644 --- a/es-core/src/math/Vector2f.h +++ b/es-core/src/math/Vector2f.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // Vector2f.h // // 2-dimensional floating point vector functions. // -#pragma once #ifndef ES_CORE_MATH_VECTOR2F_H #define ES_CORE_MATH_VECTOR2F_H diff --git a/es-core/src/math/Vector2i.cpp b/es-core/src/math/Vector2i.cpp index 5f59ce471..db183bf17 100644 --- a/es-core/src/math/Vector2i.cpp +++ b/es-core/src/math/Vector2i.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // Vector2i.cpp // // 2-dimensional integer vector functions. diff --git a/es-core/src/math/Vector2i.h b/es-core/src/math/Vector2i.h index f7a384058..55c47d0e7 100644 --- a/es-core/src/math/Vector2i.h +++ b/es-core/src/math/Vector2i.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // Vector2i.h // // 2-dimensional integer vector functions. // -#pragma once #ifndef ES_CORE_MATH_VECTOR2I_H #define ES_CORE_MATH_VECTOR2I_H diff --git a/es-core/src/math/Vector3f.cpp b/es-core/src/math/Vector3f.cpp index 803f5ae4c..2c341e5ee 100644 --- a/es-core/src/math/Vector3f.cpp +++ b/es-core/src/math/Vector3f.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // Vector3f.cpp // // 3-dimensional floating point vector functions. diff --git a/es-core/src/math/Vector3f.h b/es-core/src/math/Vector3f.h index 4c81836d4..2142eaaed 100644 --- a/es-core/src/math/Vector3f.h +++ b/es-core/src/math/Vector3f.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // Vector3f.h // // 3-dimensional floating point vector functions. // -#pragma once #ifndef ES_CORE_MATH_VECTOR3F_H #define ES_CORE_MATH_VECTOR3F_H diff --git a/es-core/src/math/Vector4f.cpp b/es-core/src/math/Vector4f.cpp index a209a685f..6ead02e9e 100644 --- a/es-core/src/math/Vector4f.cpp +++ b/es-core/src/math/Vector4f.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // Vector4f.cpp // // 4-dimensional floating point vector functions. diff --git a/es-core/src/math/Vector4f.h b/es-core/src/math/Vector4f.h index cc0d9e197..97c943121 100644 --- a/es-core/src/math/Vector4f.h +++ b/es-core/src/math/Vector4f.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // Vector4f.h // // 4-dimensional floating point vector functions. // -#pragma once #ifndef ES_CORE_MATH_VECTOR4F_H #define ES_CORE_MATH_VECTOR4F_H diff --git a/es-core/src/renderers/Renderer_GLES10.cpp b/es-core/src/renderers/Renderer_GLES10.cpp index 8a4dcf10d..f1ff1c5a4 100644 --- a/es-core/src/renderers/Renderer_GLES10.cpp +++ b/es-core/src/renderers/Renderer_GLES10.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // Renderer_GLES10.cpp // // OpenGL ES 1.0 rendering functions. diff --git a/es-core/src/resources/Font.cpp b/es-core/src/resources/Font.cpp index c20da0086..2e769c961 100644 --- a/es-core/src/resources/Font.cpp +++ b/es-core/src/resources/Font.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // Font.h // // Loading, unloading, caching and rendering of fonts. diff --git a/es-core/src/resources/Font.h b/es-core/src/resources/Font.h index f0c6e707f..e0f7f2ead 100644 --- a/es-core/src/resources/Font.h +++ b/es-core/src/resources/Font.h @@ -1,11 +1,12 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // Font.h // // Loading, unloading, caching and rendering of fonts. // Also functions for word wrapping and similar. // -#pragma once #ifndef ES_CORE_RESOURCES_FONT_H #define ES_CORE_RESOURCES_FONT_H diff --git a/es-core/src/resources/ResourceManager.cpp b/es-core/src/resources/ResourceManager.cpp index 4cccf410c..db2dcb909 100644 --- a/es-core/src/resources/ResourceManager.cpp +++ b/es-core/src/resources/ResourceManager.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // ResourceManager.cpp // // Handles the application resources (fonts, graphics, sounds etc.). diff --git a/es-core/src/resources/ResourceManager.h b/es-core/src/resources/ResourceManager.h index 0c9734b8f..a18f29454 100644 --- a/es-core/src/resources/ResourceManager.h +++ b/es-core/src/resources/ResourceManager.h @@ -1,11 +1,12 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // ResourceManager.h // // Handles the application resources (fonts, graphics, sounds etc.). // Loading and unloading of these files are done here. // -#pragma once #ifndef ES_CORE_RESOURCES_RESOURCE_MANAGER_H #define ES_CORE_RESOURCES_RESOURCE_MANAGER_H diff --git a/es-core/src/resources/TextureData.cpp b/es-core/src/resources/TextureData.cpp index 49517cfb5..7d109c70b 100644 --- a/es-core/src/resources/TextureData.cpp +++ b/es-core/src/resources/TextureData.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // TextureData.cpp // // Low-level texture data functions. @@ -11,6 +13,7 @@ #include "resources/ResourceManager.h" #include "ImageIO.h" #include "Log.h" + #include #include #include diff --git a/es-core/src/resources/TextureData.h b/es-core/src/resources/TextureData.h index fa9dcf359..b28fc8ea9 100644 --- a/es-core/src/resources/TextureData.h +++ b/es-core/src/resources/TextureData.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // TextureData.h // // Low-level texture data functions. // -#pragma once #ifndef ES_CORE_RESOURCES_TEXTURE_DATA_H #define ES_CORE_RESOURCES_TEXTURE_DATA_H diff --git a/es-core/src/resources/TextureDataManager.cpp b/es-core/src/resources/TextureDataManager.cpp index 8bdabe050..32345869c 100644 --- a/es-core/src/resources/TextureDataManager.cpp +++ b/es-core/src/resources/TextureDataManager.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // TextureDataManager.cpp // // Loading and unloading of texture data. diff --git a/es-core/src/resources/TextureDataManager.h b/es-core/src/resources/TextureDataManager.h index 0b2a17340..027f33094 100644 --- a/es-core/src/resources/TextureDataManager.h +++ b/es-core/src/resources/TextureDataManager.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // TextureDataManager.h // // Loading and unloading of texture data. // -#pragma once #ifndef ES_CORE_RESOURCES_TEXTURE_DATA_MANAGER_H #define ES_CORE_RESOURCES_TEXTURE_DATA_MANAGER_H diff --git a/es-core/src/resources/TextureResource.cpp b/es-core/src/resources/TextureResource.cpp index 874606b70..4ed47de47 100644 --- a/es-core/src/resources/TextureResource.cpp +++ b/es-core/src/resources/TextureResource.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // TextureResource.cpp // // Handles OpenGL textures. diff --git a/es-core/src/resources/TextureResource.h b/es-core/src/resources/TextureResource.h index 80f29ee7f..dc1ad4ffa 100644 --- a/es-core/src/resources/TextureResource.h +++ b/es-core/src/resources/TextureResource.h @@ -1,10 +1,11 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // TextureResource.h // // Handles OpenGL textures. // -#pragma once #ifndef ES_CORE_RESOURCES_TEXTURE_RESOURCE_H #define ES_CORE_RESOURCES_TEXTURE_RESOURCE_H @@ -12,6 +13,7 @@ #include "math/Vector2f.h" #include "resources/ResourceManager.h" #include "resources/TextureDataManager.h" + #include #include diff --git a/es-core/src/utils/FileSystemUtil.cpp b/es-core/src/utils/FileSystemUtil.cpp index 3c70adc9c..f168a6b3d 100644 --- a/es-core/src/utils/FileSystemUtil.cpp +++ b/es-core/src/utils/FileSystemUtil.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // FileSystemUtil.cpp // // Low-level filesystem functions. @@ -17,9 +19,9 @@ #include "utils/StringUtil.h" #include "Log.h" -#include #include #include +#include #if defined(_WIN64) #include diff --git a/es-core/src/utils/FileSystemUtil.h b/es-core/src/utils/FileSystemUtil.h index 234d34602..a11c1e4a9 100644 --- a/es-core/src/utils/FileSystemUtil.h +++ b/es-core/src/utils/FileSystemUtil.h @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // FileSystemUtil.h // // Low-level filesystem functions. @@ -6,7 +8,6 @@ // remove files etc. // -#pragma once #ifndef ES_CORE_UTILS_FILE_SYSTEM_UTIL_H #define ES_CORE_UTILS_FILE_SYSTEM_UTIL_H diff --git a/es-core/src/utils/StringUtil.cpp b/es-core/src/utils/StringUtil.cpp index 54786137f..3ec9a1728 100644 --- a/es-core/src/utils/StringUtil.cpp +++ b/es-core/src/utils/StringUtil.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // StringUtil.cpp // // Low-level string functions. diff --git a/es-core/src/utils/StringUtil.h b/es-core/src/utils/StringUtil.h index da8d5e508..873d92c99 100644 --- a/es-core/src/utils/StringUtil.h +++ b/es-core/src/utils/StringUtil.h @@ -1,11 +1,12 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // StringUtil.h // // Low-level string functions. // Convert characters to Unicode, upper-/lowercase conversion, string formatting etc. // -#pragma once #ifndef ES_CORE_UTILS_STRING_UTIL_H #define ES_CORE_UTILS_STRING_UTIL_H diff --git a/es-core/src/utils/TimeUtil.cpp b/es-core/src/utils/TimeUtil.cpp index af6a5dab3..7b3911911 100644 --- a/es-core/src/utils/TimeUtil.cpp +++ b/es-core/src/utils/TimeUtil.cpp @@ -1,4 +1,6 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // TimeUtil.cpp // // Low-level date and time functions. diff --git a/es-core/src/utils/TimeUtil.h b/es-core/src/utils/TimeUtil.h index d2160a867..f84e95fdb 100644 --- a/es-core/src/utils/TimeUtil.h +++ b/es-core/src/utils/TimeUtil.h @@ -1,11 +1,12 @@ +// SPDX-License-Identifier: MIT // +// EmulationStation Desktop Edition // TimeUtil.h // // Low-level date and time functions. // Set and get time, format to string formats, count days and months etc. // -#pragma once #ifndef ES_CORE_UTILS_TIME_UTIL_H #define ES_CORE_UTILS_TIME_UTIL_H