Skip to content

Commit 0aec4e3

Browse files
committed
DEBUG
1 parent 6149a43 commit 0aec4e3

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

libs/libGamedata/lua/GameDataLoader.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <kaguya/kaguya.hpp>
1717
#include <boost/filesystem.hpp>
1818
#include <stdexcept>
19+
#include <iostream>
1920

2021
namespace bfs = boost::filesystem;
2122

@@ -42,13 +43,16 @@ bool GameDataLoader::Load()
4243
errorInIncludeFile_ = false;
4344
try
4445
{
45-
if(!loadScript(curFile_))
46+
bool res = loadScript(curFile_);
47+
std::cerr << "Loaded " << curFile_ << ':' << res << std::endl;
48+
if(!res)
4649
return false;
4750
} catch(const std::exception& e)
4851
{
4952
LOG.write("Failed to load game data!\nReason: %1%\nCurrent file being processed: %2%\n") % e.what() % curFile_;
5053
return false;
5154
}
55+
std::cerr << "Loade2d " << curFile_ << ':' << !errorInIncludeFile_ << std::endl;
5256
return !errorInIncludeFile_;
5357
}
5458

0 commit comments

Comments
 (0)