mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-29 03:33:48 +00:00
very slightly more verbose loading
This commit is contained in:
parent
263bff3659
commit
d740aa06e1
2 changed files with 10 additions and 0 deletions
|
@ -853,6 +853,7 @@ void Continuity::loadTreasureData()
|
||||||
if(!found)
|
if(!found)
|
||||||
file = "data/treasures.txt";
|
file = "data/treasures.txt";
|
||||||
|
|
||||||
|
debugLog("Load treasures: " + file);
|
||||||
InStream in2(file.c_str());
|
InStream in2(file.c_str());
|
||||||
while (std::getline(in2, line))
|
while (std::getline(in2, line))
|
||||||
{
|
{
|
||||||
|
@ -916,6 +917,8 @@ void Continuity::loadIngredientData()
|
||||||
|
|
||||||
void Continuity::loadIngredientData(const std::string &file)
|
void Continuity::loadIngredientData(const std::string &file)
|
||||||
{
|
{
|
||||||
|
debugLog("Load ingredient data: " + file);
|
||||||
|
|
||||||
std::string line, name, gfx, type, effects;
|
std::string line, name, gfx, type, effects;
|
||||||
|
|
||||||
clearIngredientData();
|
clearIngredientData();
|
||||||
|
@ -1144,6 +1147,7 @@ void Continuity::loadIngredientData(const std::string &file)
|
||||||
|
|
||||||
void Continuity::loadIngredientDisplayNames(const std::string& file)
|
void Continuity::loadIngredientDisplayNames(const std::string& file)
|
||||||
{
|
{
|
||||||
|
debugLog("Load ingredient display names: " + file);
|
||||||
InStream in(file);
|
InStream in(file);
|
||||||
if (!in)
|
if (!in)
|
||||||
return;
|
return;
|
||||||
|
@ -1199,6 +1203,7 @@ std::string Continuity::getInternalFormName()
|
||||||
|
|
||||||
void Continuity::loadIntoSongBank(const std::string &file)
|
void Continuity::loadIntoSongBank(const std::string &file)
|
||||||
{
|
{
|
||||||
|
debugLog("Load songbank: " + file);
|
||||||
if(!exists(file))
|
if(!exists(file))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -1327,6 +1332,7 @@ void Continuity::loadEatBank()
|
||||||
if(!found)
|
if(!found)
|
||||||
file = "data/eats.txt";
|
file = "data/eats.txt";
|
||||||
|
|
||||||
|
debugLog("Load eats: " + file);
|
||||||
InStream inf(file.c_str());
|
InStream inf(file.c_str());
|
||||||
|
|
||||||
EatData curData;
|
EatData curData;
|
||||||
|
@ -2194,6 +2200,7 @@ void Continuity::setFlag(std::string flag, int v)
|
||||||
|
|
||||||
void Continuity::loadPetData()
|
void Continuity::loadPetData()
|
||||||
{
|
{
|
||||||
|
debugLog("Load pet data...");
|
||||||
petData.clear();
|
petData.clear();
|
||||||
InStream in("data/pets.txt");
|
InStream in("data/pets.txt");
|
||||||
std::string read;
|
std::string read;
|
||||||
|
@ -3500,6 +3507,7 @@ void Continuity::reset()
|
||||||
health = maxHealth;
|
health = maxHealth;
|
||||||
|
|
||||||
speedTypes.clear();
|
speedTypes.clear();
|
||||||
|
debugLog("Load speedtypes...");
|
||||||
InStream inFile("data/speedtypes.txt");
|
InStream inFile("data/speedtypes.txt");
|
||||||
int n;
|
int n;
|
||||||
float spd;
|
float spd;
|
||||||
|
|
|
@ -20,6 +20,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
#include "StringBank.h"
|
#include "StringBank.h"
|
||||||
#include "ttvfs_stdio.h"
|
#include "ttvfs_stdio.h"
|
||||||
|
#include "Base.h"
|
||||||
|
|
||||||
StringBank stringbank;
|
StringBank stringbank;
|
||||||
static const std::string emptyStr;
|
static const std::string emptyStr;
|
||||||
|
@ -40,6 +41,7 @@ bool StringBank::empty() const
|
||||||
|
|
||||||
bool StringBank::load(const std::string &file)
|
bool StringBank::load(const std::string &file)
|
||||||
{
|
{
|
||||||
|
debugLog("Load stringbank: " + file);
|
||||||
InStream in(file.c_str());
|
InStream in(file.c_str());
|
||||||
if(!in)
|
if(!in)
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue