From: Mathnerd314 Date: Tue, 8 Mar 2011 00:14:40 +0000 (+0000) Subject: Revert some of binki's evil machinations from bugs 691 and 745 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9bba08654b2c3d5ae07efbaf8f1eddbc54c1914d;p=supertux.git Revert some of binki's evil machinations from bugs 691 and 745 SVN-Revision: 6680 --- diff --git a/src/supertux/main.cpp b/src/supertux/main.cpp index bb0a8297e..41dc6227d 100644 --- a/src/supertux/main.cpp +++ b/src/supertux/main.cpp @@ -23,7 +23,6 @@ #include #include #include -#include #include "supertux/main.hpp" @@ -277,25 +276,11 @@ Main::pre_parse_commandline(int argc, char** argv) * line. Then exit. Intended for use by the supertux-editor. */ char **sp; - char *writeptr; - ssize_t write_ret; size_t sp_index; sp = PHYSFS_getSearchPath(); if (sp) - for (sp_index = 0; sp[sp_index]; sp_index ++) - { - writeptr = sp[sp_index]; - write_ret = 0; - while (*writeptr) - { - write_ret = write(STDOUT_FILENO, writeptr, strlen(writeptr)); - if (write_ret == -1) - break; - writeptr += write_ret; - } - write(STDOUT_FILENO, "\n", 1); - /* std::cout << sp[sp_index] << std::endl; */ - } + for (sp_index = 0; sp[sp_index]; sp_index++) + std::cout << sp[sp_index] << std::endl; PHYSFS_freeList(sp); return true; }