-Lugaru is free software; you can redistribute it and/or
-modify it under the terms of the GNU General Public License
-as published by the Free Software Foundation; either version 2
-of the License, or (at your option) any later version.
+Lugaru is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
-See the GNU General Public License for more details.
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
-along with this program; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+along with Lugaru. If not, see <http://www.gnu.org/licenses/>.
funpackf(tfile, "Bi", &(acc->progress));
int nbCampaigns;
funpackf(tfile, "Bi", &nbCampaigns);
funpackf(tfile, "Bi", &(acc->progress));
int nbCampaigns;
funpackf(tfile, "Bi", &nbCampaigns);
funpackf(tfile, "Bb", &c);
campaignName.append(1, c);
}
funpackf(tfile, "Bb", &c);
campaignName.append(1, c);
}
funpackf(tfile, "Bf", &(acc->campaignProgress[campaignName].time));
funpackf(tfile, "Bf", &(acc->campaignProgress[campaignName].score));
funpackf(tfile, "Bf", &(acc->campaignProgress[campaignName].fasttime));
funpackf(tfile, "Bf", &(acc->campaignProgress[campaignName].time));
funpackf(tfile, "Bf", &(acc->campaignProgress[campaignName].score));
funpackf(tfile, "Bf", &(acc->campaignProgress[campaignName].fasttime));
fpackf(tfile, "Bi", getNbAccounts());
fpackf(tfile, "Bi", indice(accountactive));
for (int i = 0; i < getNbAccounts(); i++) {
Account* a = Account::get(i);
fpackf(tfile, "Bi", getNbAccounts());
fpackf(tfile, "Bi", indice(accountactive));
for (int i = 0; i < getNbAccounts(); i++) {
Account* a = Account::get(i);
- printf("writing account %d/%d (%s)\n", i + 1, getNbAccounts(), a->getName());
+ printf("writing account %d/%d (%s)\n", i + 1, getNbAccounts(), a->getName().c_str());
fpackf(tfile, "Bi", a->difficulty);
fpackf(tfile, "Bi", a->progress);
fpackf(tfile, "Bi", a->campaignProgress.size());
map<string, CampaignProgress>::const_iterator it;
fpackf(tfile, "Bi", a->difficulty);
fpackf(tfile, "Bi", a->progress);
fpackf(tfile, "Bi", a->campaignProgress.size());
map<string, CampaignProgress>::const_iterator it;
fpackf(tfile, "Bb", it->first[j]);
}
fpackf(tfile, "Bf", it->second.time);
fpackf(tfile, "Bb", it->first[j]);
}
fpackf(tfile, "Bf", it->second.time);
fpackf(tfile, "Bf", it->second.fasttime);
fpackf(tfile, "Bf", it->second.highscore);
fpackf(tfile, "Bi", it->second.choices.size());
fpackf(tfile, "Bf", it->second.fasttime);
fpackf(tfile, "Bf", it->second.highscore);
fpackf(tfile, "Bi", it->second.choices.size());
fpackf(tfile, "Bi", it->second.choices[j]);
}
}
fpackf(tfile, "Bi", a->getCurrentCampaign().size());
fpackf(tfile, "Bi", it->second.choices[j]);
}
}
fpackf(tfile, "Bi", a->getCurrentCampaign().size());
fpackf(tfile, "Bb", a->getCurrentCampaign()[j]);
}
fpackf(tfile, "Bf", a->points);
fpackf(tfile, "Bb", a->getCurrentCampaign()[j]);
}
fpackf(tfile, "Bf", a->points);
fpackf(tfile, "Bf", a->highscore[j]);
fpackf(tfile, "Bf", a->fasttime[j]);
}
fpackf(tfile, "Bf", a->highscore[j]);
fpackf(tfile, "Bf", a->fasttime[j]);
}
fpackf(tfile, "Bb", a->unlocked[j]);
}
fpackf(tfile, "Bi", a->name.size());
fpackf(tfile, "Bb", a->unlocked[j]);
}
fpackf(tfile, "Bi", a->name.size());