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=7f3eec5e981bf0bd28bd513e155f7c55f1e22bc9;p=supertux.git Revert some of binki's evil machinations from bugs 691 and 745 git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6680 837edb03-e0f3-0310-88ca-d4d4e8b29345 --- 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; }