- Adding "connected cards" color rendering

- Made "booster" check mod-dependent in test suite
This commit is contained in:
wagic.the.homebrew
2011-09-23 07:24:24 +00:00
parent 0b66caebf2
commit c633dc805f
6 changed files with 66 additions and 2 deletions

View File

@@ -576,6 +576,7 @@ TestSuite::TestSuite(const char * filename)
{
if (!s.size()) continue;
if (s[s.size() - 1] == '\r') s.erase(s.size() - 1); //Handle DOS files
if (!s.size()) continue;
if (s[0] == '/' && s[1] == '*') comment = 1;
if (s[0] && s[0] != '#' && !comment)
{
@@ -616,7 +617,15 @@ int TestSuite::loadNext()
if (!nbfiles) return 0;
if (currentfile >= nbfiles) return 0;
currentfile++;
if (!load(files[currentfile - 1].c_str()))
string currFilename = files[currentfile - 1];
if (currFilename == "+pregametests")
{
pregameTests();
return loadNext();
}
if (!load(currFilename.c_str()))
return loadNext();
else
cout << "Starting test : " << files[currentfile - 1] << endl;