Mercurial > fife-parpg
view utils/dat_extract/usage.cpp @ 353:91474309de1a
Win32 installer:
* Added instructions
* Shortcuts for clients
* Added SDK as an own component
* Ignores *.svn, *.o and *.pyc files
author | cheesesucker@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Sun, 20 Sep 2009 14:18:59 +0000 |
parents | 90005975cdbb |
children |
line wrap: on
line source
/*************************************************************************** * Copyright (C) 2005-2008 by the FIFE team * * http://www.fifengine.de * * This file is part of FIFE. * * * * FIFE is free software; you can redistribute it and/or * * modify it under the terms of the GNU Lesser General Public * * License as published by the Free Software Foundation; either * * version 2.1 of the License, or (at your option) any later version. * * * * This library is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * * Lesser General Public License for more details. * * * * You should have received a copy of the GNU Lesser General Public * * License along with this library; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * ***************************************************************************/ #include <iostream> int print_usage(const char* prg_name, int exit_code) { std::cout << "USAGE: " << prg_name; std::cout << " [-s DAT_source] [-f 1|2] -t target_file" << std::endl; std::cout << "" << std::endl; std::cout << "This is a very limited DAT extraction utility that can read" << std::endl; std::cout << "Fo1 and Fo2 DAT files and extract a single file." << std::endl; std::cout << "" << std::endl; std::cout << "The DAT source _has to be_ in the same directory, furthermore" << std::endl; std::cout << "the program needs the 'content' directory (otherwise the engine" << std::endl; std::cout << "will not start)." << std::endl; std::cout << "" << std::endl; std::cout << "The default DAT file is critter.dat, the default format is" << std::endl; std::cout << "FO1; you have to specify '-f 2' if you work on Fo2 DAT files!" << std::endl; std::cout << "" << std::endl; std::cout << "The target_file has to be the full path inside the DAT file" << std::endl; std::cout << "(using / as directory separator); the output file will have" << std::endl; std::cout << "the same filename (in the current directory)." << std::endl; exit(exit_code); }