Added SPDX license identifiers to all source files.

This commit is contained in:
Leon Styhre 2020-09-21 19:17:34 +02:00
parent 1c831249da
commit 8db04c5fcb
154 changed files with 343 additions and 115 deletions

View file

@ -5,7 +5,6 @@
// Version and build information.
//
#pragma once
#ifndef ES_APP_EMULATION_STATION_H
#define ES_APP_EMULATION_STATION_H

View file

@ -1,4 +1,6 @@
// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// FileFilterIndex.cpp
//
// Gamelist filters.

View file

@ -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

View file

@ -1,4 +1,6 @@
// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// FileSorts.cpp
//
// Gamelist sorting functions.

View file

@ -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 <vector>
namespace FileSorts

View file

@ -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 <chrono>
#include "utils/FileSystemUtil.h"
#include "utils/StringUtil.h"
#include "FileData.h"
@ -16,6 +16,7 @@
#include "Settings.h"
#include "SystemData.h"
#include <chrono>
#include <pugixml.hpp>
FileData* findOrCreateFile(SystemData* system, const std::string& path, FileType type)

View file

@ -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

View file

@ -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 <pugixml.hpp>
MetaDataDecl gameDecls[] = {

View file

@ -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

View file

@ -1,4 +1,6 @@
// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// PlatformId.cpp
//
// Index of all supported systems/platforms.

View file

@ -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

View file

@ -13,6 +13,7 @@
#define ES_APP_SYSTEM_DATA_H
#include "PlatformId.h"
#include <algorithm>
#include <memory>
#include <string>

View file

@ -23,8 +23,8 @@
#include "Sound.h"
#include "SystemData.h"
#include <unordered_map>
#include <time.h>
#include <unordered_map>
#if defined(_WIN64)
#include <cstring>

View file

@ -14,9 +14,9 @@
#if defined(__APPLE__)
//#error TODO: Not implemented for MacOS yet!!!
#elif defined(__linux__)
#include <unistd.h>
#include <fcntl.h>
#include <alsa/asoundlib.h>
#include <fcntl.h>
#include <unistd.h>
#elif defined(_WIN64)
#include <Windows.h>
#include <endpointvolume.h>

View file

@ -1,4 +1,6 @@
// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// GuiCollectionSystemsOptions.cpp
//
// User interface for the game collection settings.

View file

@ -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

View file

@ -1,4 +1,6 @@
// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// GuiGameScraper.cpp
//
// Single game scraping user interface.

View file

@ -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

View file

@ -1,4 +1,6 @@
// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// GuiGamelistFilter.cpp
//
// User interface for the gamelist filters.

View file

@ -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

View file

@ -1,4 +1,6 @@
// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// GuiGeneralScreensaverOptions.cpp
//
// User interface for the screensaver options.

View file

@ -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

View file

@ -1,4 +1,6 @@
// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// GuiInfoPopup.cpp
//
// Popup window used for user notifications.

View file

@ -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

View file

@ -1,4 +1,6 @@
// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// GuiMetaDataEd.cpp
//
// Game metadata edit user interface.

View file

@ -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

View file

@ -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.

View file

@ -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

View file

@ -1,4 +1,6 @@
// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// GuiScraperMulti.cpp
//
// Multiple game scraping user interface.

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -1,4 +1,6 @@
// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// GuiScreensaverOptions.cpp
//
// User interface template for the screensaver option GUIs.

View file

@ -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

View file

@ -1,4 +1,6 @@
// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// GuiSettings.cpp
//
// User interface template for a settings GUI.

View file

@ -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

View file

@ -1,4 +1,6 @@
// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// GuiSlideshowScreensaverOptions.cpp
//
// User interface for the slideshow screensaver options.

View file

@ -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

View file

@ -1,4 +1,6 @@
// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// GuiVideoScreensaverOptions.cpp
//
// User interface for the video screensaver options.

View file

@ -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

View file

@ -1,23 +1,25 @@
// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// GamesDBJSONScraper.cpp
//
// Functions specifically for scraping from thegamesdb.net
// Called from Scraper.
//
#include <exception>
#include <map>
#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 <exception>
#include <map>
#include <pugixml.hpp>
// When raspbian will get an up to date version of rapidjson we'll be

View file

@ -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

View file

@ -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 <rapidjson/document.h>
#include <rapidjson/error/en.h>
#include <chrono>
#include <fstream>
#include <memory>
#include <thread>
#include "Log.h"
#include "scrapers/GamesDBJSONScraperResources.h"
#include "utils/FileSystemUtil.h"
#include <rapidjson/document.h>
#include <rapidjson/error/en.h>
using namespace rapidjson;
namespace {

View file

@ -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 <fstream>
#include <memory>
#include <string>
#include <unordered_map>
#include "HttpReq.h"
struct TheGamesDBJSONRequestResources {
TheGamesDBJSONRequestResources() = default;

View file

@ -1,4 +1,6 @@
// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// Scraper.cpp
//
// Main scraper logic.

View file

@ -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 <assert.h>
#include <functional>
#include <memory>
#include <queue>
#include <utility>
#include <assert.h>
#define MAX_SCRAPER_RESULTS 7

View file

@ -1,4 +1,6 @@
// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// ScreenScraper.cpp
//
// Functions specifically for scraping from screenscraper.fr

View file

@ -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

View file

@ -10,8 +10,8 @@
#ifndef ES_APP_VIEWS_UI_MODE_CONTROLLER_H
#define ES_APP_VIEWS_UI_MODE_CONTROLLER_H
#include <vector>
#include <string>
#include <vector>
class FileData;
class InputConfig;

View file

@ -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

View file

@ -1,4 +1,6 @@
// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// AudioManager.cpp
//
// Low-level audio functions (using SDL2).

View file

@ -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 <SDL2/SDL_audio.h>
#include <memory>
#include <vector>

View file

@ -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"

View file

@ -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

View file

@ -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

View file

@ -1,4 +1,6 @@
// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// HelpStyle.cpp
//
// Style (default colors, position and origin) for the help system.

View file

@ -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 <memory>
#include <string>

View file

@ -1,4 +1,6 @@
// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// HttpReq.cpp
//
// HTTP request functions.

View file

@ -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

View file

@ -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 <FreeImage.h>
#include <string.h>

View file

@ -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

View file

@ -1,4 +1,6 @@
// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// InputConfig.cpp
//
// Input device configuration functions.

View file

@ -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

View file

@ -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 <SDL2/SDL.h>
#include <pugixml.hpp>
#include <assert.h>
#include <iostream>
#include <pugixml.hpp>
#define KEYBOARD_GUID_STRING "-1"
#define CEC_GUID_STRING "-2"

View file

@ -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

View file

@ -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 <fstream>
#include <iostream>
#include <iomanip>
#include <fstream>
LogLevel Log::reportingLevel = LogInfo;
std::ofstream file;

View file

@ -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 <sstream>
#include <map>
#include <sstream>
#define LOG(level) \
if (level > Log::getReportingLevel()); \

View file

@ -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 <pugixml.hpp>
#include <string.h>

View file

@ -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

View file

@ -1,4 +1,6 @@
// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// PowerSaver.cpp
//
// Power saving functions.

View file

@ -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

View file

@ -1,4 +1,6 @@
// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// Scripting.cpp
//
// Executes custom scripts for various events in EmulationStation.

View file

@ -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

View file

@ -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 <pugixml.hpp>
#include <algorithm>
#include <pugixml.hpp>
#include <vector>
Settings* Settings::sInstance = nullptr;

View file

@ -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

View file

@ -1,4 +1,6 @@
// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// Sound.cpp
//
// Higher-level audio functions.

View file

@ -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

View file

@ -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 <pugixml.hpp>
#include <algorithm>
#include <pugixml.hpp>
std::vector<std::string> ThemeData::sSupportedViews {
{ "all" }, { "system" }, { "basic" }, { "detailed" }, { "grid" }, { "video" } };

View file

@ -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

View file

@ -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

View file

@ -1,4 +1,6 @@
// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// AnimationController.cpp
//
// Basic animation controls.

View file

@ -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

View file

@ -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

View file

@ -1,4 +1,6 @@
// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// AnimatedImageComponent.cpp
//
// Creates animation from multiple images files.

View file

@ -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

View file

@ -1,4 +1,6 @@
// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// BusyComponent.cpp
//
// Animated busy indicator.

View file

@ -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

View file

@ -1,4 +1,6 @@
// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// ButtonComponent.cpp
//
// Basic on/off button.

View file

@ -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

View file

@ -1,4 +1,6 @@
// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// ComponentGrid.cpp
//
// Provides basic layout of components in an X*Y grid.

View file

@ -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

View file

@ -1,4 +1,6 @@
// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// ComponentList.cpp
//
// Used to lay out and navigate lists in GUI menus.

View file

@ -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

View file

@ -1,4 +1,6 @@
// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// DateTimeComponent.cpp
//
// Provides the date and time, in absolute (actual date) or relative

View file

@ -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

View file

@ -1,4 +1,6 @@
// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// DateTimeEditComponent.cpp
//
// Date and time edit component.

View file

@ -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

View file

@ -1,4 +1,6 @@
// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// GridTileComponent.cpp
//
// X*Y grid.

View file

@ -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;

View file

@ -1,4 +1,6 @@
// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// HelpComponent.cpp
//
// Help information in icon and text pairs.

Some files were not shown because too many files have changed in this diff Show more