summaryrefslogtreecommitdiff
path: root/plugins/probe.cpp
diff options
context:
space:
mode:
authorPetr Mrázek2011-08-04 04:04:46 +0200
committerPetr Mrázek2011-08-04 04:04:46 +0200
commita8543f5ef034774e026cf434c11055783a68c9d9 (patch)
tree5c90de5546a604e3c080bf152ddf080b33c7f146 /plugins/probe.cpp
parentff4d545ae71eaf732afdb4200f6c409aebe91280 (diff)
downloaddfhack-a8543f5ef034774e026cf434c11055783a68c9d9.tar.gz
dfhack-a8543f5ef034774e026cf434c11055783a68c9d9.tar.bz2
dfhack-a8543f5ef034774e026cf434c11055783a68c9d9.tar.xz
Ported autodump tool
Diffstat (limited to 'plugins/probe.cpp')
-rw-r--r--plugins/probe.cpp78
1 files changed, 0 insertions, 78 deletions
diff --git a/plugins/probe.cpp b/plugins/probe.cpp
index dc1812eb..916989a9 100644
--- a/plugins/probe.cpp
+++ b/plugins/probe.cpp
@@ -46,85 +46,7 @@ DFhackCExport command_result plugin_shutdown ( Core * c )
{
return CR_OK;
}
-/*
-bool parseOptions(vector<string> &params, bool &showBlock, bool &showDesig,
- bool &showOccup, bool &showTile, bool &showMisc)
-{
- // With no options set, show everything.
- showBlock = true;
- showDesig = true;
- showOccup = true;
- showTile = true;
- showMisc = true;
-
- bool _showBlock = false;
- bool _showDesig = false;
- bool _showOccup = false;
- bool _showTile = false;
- bool _showMisc = false;
-
- char c;
- xgetopt opt(params, "bdotm");
- opt.opterr = 0;
- while ((c = opt()) != -1)
- {
- switch (c)
- {
- case 'b':
- _showBlock = true;
- break;
- case 'd':
- _showDesig = true;
- break;
- case 'o':
- _showOccup = true;
- break;
- case 't':
- _showTile = true;
- break;
- case 'm':
- _showMisc = true;
- break;
-
- case '?':
- switch (opt.optopt)
- {
- // For when we take arguments
- default:
- if (isprint(opt.optopt))
- std::cerr << "Unknown option -" << opt.optopt << "!"
- << std::endl;
- else
- std::cerr << "Unknown option character " << (int) opt.optopt << "!"
- << std::endl;
- }
- default:
- // Um.....
- return false;
- }
- }
-
- // If any options set, show only those requested via options.
- if(_showBlock || _showDesig || _showOccup || _showTile || _showMisc)
- {
- showBlock = false;
- showDesig = false;
- showOccup = false;
- showTile = false;
- showMisc = false;
-
- showBlock = _showBlock;
- showDesig = _showDesig;
- showOccup = _showOccup;
- showTile = _showTile;
- showMisc = _showMisc;
- }
-
- return true;
-}
-*/
-using namespace DFHack;
DFhackCExport command_result df_probe (Core * c, vector <string> & parameters)
{
//bool showBlock, showDesig, showOccup, showTile, showMisc;