renombrades extensions .h a .hpp
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#include "options.h"
|
||||
#include "options.hpp"
|
||||
|
||||
#include <SDL3/SDL.h> // Para SDL_ScaleMode, SDL_GamepadButton, SDL_LogCategory, SDL_LogInfo, SDL_LogError, SDL_LogWarn
|
||||
|
||||
@@ -6,18 +6,18 @@
|
||||
#include <cstddef> // Para size_t
|
||||
#include <fstream> // Para basic_ostream, operator<<, basic_ostream::operator<<, basic_ofstream, basic_istream, basic_ifstream, ifstream, ofstream
|
||||
#include <functional> // Para function
|
||||
#include <sstream> // Para istringstream
|
||||
#include <map> // Para map, operator==, _Rb_tree_const_iterator
|
||||
#include <ranges> // Para std::ranges::any_of
|
||||
#include <sstream> // Para istringstream
|
||||
#include <stdexcept> // Para invalid_argument, out_of_range
|
||||
#include <string> // Para char_traits, stoi, operator==, operator<<, allocator, string, basic_string, operator<=>, getline
|
||||
#include <utility> // Para swap, pair
|
||||
#include <vector> // Para vector
|
||||
|
||||
#include "difficulty.h" // Para Code, init
|
||||
#include "input.h" // Para InputDevice
|
||||
#include "lang.h" // Para Code
|
||||
#include "utils.h" // Para boolToString, stringToBool, getFileName
|
||||
#include "difficulty.hpp" // Para Code, init
|
||||
#include "input.hpp" // Para InputDevice
|
||||
#include "lang.hpp" // Para Code
|
||||
#include "utils.hpp" // Para boolToString, stringToBool, getFileName
|
||||
|
||||
namespace Options {
|
||||
// --- Variables globales ---
|
||||
@@ -59,7 +59,7 @@ auto loadFromFile() -> bool {
|
||||
init();
|
||||
|
||||
std::ifstream file(settings.config_file);
|
||||
bool file_exists = file.is_open(); // Guardamos si el fichero existía al abrirlo
|
||||
bool file_exists = file.is_open(); // Guardamos si el fichero existía al abrirlo
|
||||
|
||||
// 2. Si el fichero existe, lo leemos para obtener los nombres de los mandos.
|
||||
if (file_exists) {
|
||||
@@ -105,7 +105,6 @@ auto loadFromFile() -> bool {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// Guarda el fichero de configuración
|
||||
auto saveToFile() -> bool {
|
||||
std::ofstream file(settings.config_file);
|
||||
|
||||
Reference in New Issue
Block a user