forked from jaildesigner-jailgames/jaildoctors_dilemma
Eliminados todos los std:: del código
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#include <iostream>
|
||||
|
||||
// Constructor
|
||||
Cheevos::Cheevos(Screen *screen, options_t *options, std::string file)
|
||||
Cheevos::Cheevos(Screen *screen, options_t *options, string file)
|
||||
{
|
||||
// Copia la dirección de los objetos
|
||||
this->options = options;
|
||||
@@ -169,7 +169,7 @@ void Cheevos::loadFromFile()
|
||||
{
|
||||
if (options->console)
|
||||
{
|
||||
std::cout << "Warning: Unable to open file! SDL Error: " << SDL_GetError() << std::endl;
|
||||
cout << "Warning: Unable to open file! SDL Error: " << SDL_GetError() << endl;
|
||||
}
|
||||
|
||||
// Crea el fichero en modo escritura
|
||||
@@ -179,7 +179,7 @@ void Cheevos::loadFromFile()
|
||||
{
|
||||
if (options->console)
|
||||
{
|
||||
std::cout << "New file created!" << std::endl;
|
||||
cout << "New file created!" << endl;
|
||||
}
|
||||
|
||||
// Guarda la información
|
||||
@@ -195,7 +195,7 @@ void Cheevos::loadFromFile()
|
||||
{
|
||||
if (options->console)
|
||||
{
|
||||
std::cout << "Error: Unable to create file! SDL Error: " << SDL_GetError() << std::endl;
|
||||
cout << "Error: Unable to create file! SDL Error: " << SDL_GetError() << endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -205,7 +205,7 @@ void Cheevos::loadFromFile()
|
||||
// Carga los datos
|
||||
if (options->console)
|
||||
{
|
||||
std::cout << "Reading file...!" << std::endl;
|
||||
cout << "Reading file...!" << endl;
|
||||
}
|
||||
for (int i = 0; i < (int)cheevos.size(); ++i)
|
||||
{
|
||||
@@ -237,13 +237,13 @@ void Cheevos::saveToFile()
|
||||
{
|
||||
if (options->console)
|
||||
{
|
||||
std::cout << "Error: Unable to save file! " << SDL_GetError() << std::endl;
|
||||
cout << "Error: Unable to save file! " << SDL_GetError() << endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Lista los logros
|
||||
std::vector<cheevos_t> Cheevos::list()
|
||||
vector<cheevos_t> Cheevos::list()
|
||||
{
|
||||
return cheevos;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user