J :
* Fix a warning on linux & PSP.
This commit is contained in:
@@ -242,7 +242,7 @@ void TestSuite::initGame(){
|
|||||||
p->game->putInZone(card,p->game->library,zone);
|
p->game->putInZone(card,p->game->library,zone);
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
if (!card) LOG ("ERROR, card is NULL\n");
|
if (!card) { LOG ("ERROR, card is NULL\n"); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -412,11 +412,13 @@ void TestSuite::cleanup(){
|
|||||||
void TestSuite::load(const char * _filename){
|
void TestSuite::load(const char * _filename){
|
||||||
char filename[4096];
|
char filename[4096];
|
||||||
sprintf(filename, RESPATH"/test/%s", _filename);
|
sprintf(filename, RESPATH"/test/%s", _filename);
|
||||||
|
printf(filename);
|
||||||
std::ifstream file(filename);
|
std::ifstream file(filename);
|
||||||
std::string s;
|
std::string s;
|
||||||
|
|
||||||
int state = -1;
|
int state = -1;
|
||||||
|
|
||||||
|
std::cout << std::endl << std::endl << "!!!" << file << std::endl << std::endl;
|
||||||
if(file){
|
if(file){
|
||||||
cleanup();
|
cleanup();
|
||||||
while(std::getline(file,s)){
|
while(std::getline(file,s)){
|
||||||
|
|||||||
Reference in New Issue
Block a user