diff options
| author | jacob1 <jfu614@gmail.com> | 2013-06-02 01:57:03 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2013-06-02 01:57:03 (GMT) |
| commit | 8d7ab7f5e27b9b5ba71b4ef13e4cbb9f7e5a4641 (patch) | |
| tree | d3bf71c04abc24aa014dbc403421d1821a8c96be /src/client/Client.cpp | |
| parent | b16524292e2d8c640e0e4e0801d5cb4e512e4707 (diff) | |
| download | powder-8d7ab7f5e27b9b5ba71b4ef13e4cbb9f7e5a4641.zip powder-8d7ab7f5e27b9b5ba71b4ef13e4cbb9f7e5a4641.tar.gz | |
allow creating WIND lines from lua
Diffstat (limited to 'src/client/Client.cpp')
| -rw-r--r-- | src/client/Client.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/Client.cpp b/src/client/Client.cpp index 367aa70..1e76ade 100644 --- a/src/client/Client.cpp +++ b/src/client/Client.cpp @@ -444,7 +444,9 @@ std::vector<std::string> Client::DirectorySearch(std::string directory, std::str findFileHandle = _findfirst(fileMatch.c_str(), ¤tFile); if (findFileHandle == -1L) { +#ifdef DEBUG printf("Unable to open directory: %s\n", directory.c_str()); +#endif return std::vector<std::string>(); } do @@ -461,7 +463,9 @@ std::vector<std::string> Client::DirectorySearch(std::string directory, std::str DIR *directoryHandle = opendir(directory.c_str()); if(!directoryHandle) { +#ifdef DEBUG printf("Unable to open directory: %s\n", directory.c_str()); +#endif return std::vector<std::string>(); } while(directoryEntry = readdir(directoryHandle)) |
