Erwan
-Fixed bug with fountain of youth -New alternate format for decks
This commit is contained in:
@@ -2,13 +2,6 @@
|
||||
#include "../include/utils.h"
|
||||
|
||||
|
||||
int lowercase(string sBuffer) {
|
||||
std::transform( sBuffer.begin(), sBuffer.end(), sBuffer.begin(),
|
||||
::tolower );
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -35,26 +28,6 @@ int filesize(const char * filename){
|
||||
}
|
||||
|
||||
|
||||
|
||||
int readfile_to_ints(const char * filename, int * out_buffer){
|
||||
std::ifstream fichier(filename);
|
||||
std::string s;
|
||||
unsigned int count = 0;
|
||||
if(fichier){
|
||||
while(std::getline(fichier,s)){
|
||||
int value = atoi(s.c_str());
|
||||
if (value){
|
||||
out_buffer[count] = value;
|
||||
++count;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
fichier.close();
|
||||
return count;
|
||||
|
||||
}
|
||||
|
||||
int fileExists(const char * filename){
|
||||
std::ifstream fichier(filename);
|
||||
if(fichier){
|
||||
|
||||
Reference in New Issue
Block a user