Mercurial > hg > forks > yadex
comparison src/cfgfile.cc @ 83:002bc70a3982
More cleanups. Mostly variable renames.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 26 Sep 2011 18:06:30 +0300 |
parents | 2f1ecc1c5f72 |
children | 5652866f31eb |
comparison
equal
deleted
inserted
replaced
82:154714f3ab2e | 83:002bc70a3982 |
---|---|
112 } OptionDesc; | 112 } OptionDesc; |
113 | 113 |
114 /* The first option has neither long name nor short name. | 114 /* The first option has neither long name nor short name. |
115 It is used for "lonely" arguments (i.e. file names). */ | 115 It is used for "lonely" arguments (i.e. file names). */ |
116 OptionDesc options[] = { | 116 OptionDesc options[] = { |
117 {NULL, NULL, OPT_STRINGPTRACC, NULL, "Patch wad file", &cfg.PatchWads }, | 117 {NULL, NULL, OPT_STRINGPTRACC, NULL, "Patch wad file", &cfg.patchwads }, |
118 {"autoscroll", NULL, OPT_BOOLEAN, NULL, "Enable autoscrolling", &cfg.autoscroll }, | 118 {"autoscroll", NULL, OPT_BOOLEAN, NULL, "Enable autoscrolling", &cfg.autoscroll }, |
119 {"autoscroll_amp", NULL, OPT_UNSIGNED, NULL, "Amp. of scrolling (% of screen size)", &cfg.autoscroll_amp}, | 119 {"autoscroll_amp", NULL, OPT_UNSIGNED, NULL, "Amp. of scrolling (% of screen size)", &cfg.autoscroll_amp}, |
120 {"autoscroll_edge", NULL, OPT_UNSIGNED, NULL, "Max. dist. to edge (pixels)", &cfg.autoscroll_edge}, | 120 {"autoscroll_edge", NULL, OPT_UNSIGNED, NULL, "Max. dist. to edge (pixels)", &cfg.autoscroll_edge}, |
121 {NULL, "b", OPT_STRINGPTR, NULL, "Run benchmark and exit successfully", &cfg.bench}, | 121 {NULL, "b", OPT_STRINGPTR, NULL, "Run benchmark and exit successfully", &cfg.bench}, |
122 {"blindly_swap_sidedefs", NULL, OPT_BOOLEAN, NULL, "Blindly swap sidedefs on a linedef", &cfg.blindly_swap_sidedefs}, | 122 {"blindly_swap_sidedefs", NULL, OPT_BOOLEAN, NULL, "Blindly swap sidedefs on a linedef", &cfg.blindly_swap_sidedefs}, |
123 {"config_file", "f", OPT_STRINGPTR, "1", "Config file", &cfg.config_file}, | 123 {"config_file", "f", OPT_STRINGPTR, "1", "Config file", &cfg.config_file}, |
124 {"copy_linedef_reuse_sidedefs",NULL,OPT_BOOLEAN, NULL, "Use same sidedefs as original linedef", &cfg.copy_linedef_reuse_sidedefs}, | 124 {"copy_linedef_reuse_sidedefs",NULL,OPT_BOOLEAN, NULL, "Use same sidedefs as original linedef", &cfg.copy_linedef_reuse_sidedefs}, |
125 {"debug", "d", OPT_BOOLEAN, NULL, "Debug mode", &cfg.Debug}, | 125 {"debug", "d", OPT_BOOLEAN, NULL, "Debug mode", &cfg.debug}, |
126 | 126 |
127 {"default_ceiling_height", NULL, OPT_INTEGER, NULL, "Default ceiling height", &cfg.def.ceiling_height}, | 127 {"default_ceiling_height", NULL, OPT_INTEGER, NULL, "Default ceiling height", &cfg.def.ceiling_height}, |
128 {"default_ceiling_texture", NULL, OPT_STRINGBUF8, NULL, "Default ceiling texture", cfg.def.ceiling_texture}, | 128 {"default_ceiling_texture", NULL, OPT_STRINGBUF8, NULL, "Default ceiling texture", cfg.def.ceiling_texture}, |
129 {"default_floor_height", NULL, OPT_INTEGER, NULL, "Default floor height", &cfg.def.floor_height}, | 129 {"default_floor_height", NULL, OPT_INTEGER, NULL, "Default floor height", &cfg.def.floor_height}, |
130 {"default_floor_texture", NULL, OPT_STRINGBUF8, NULL, "Default floor texture", cfg.def.floor_texture}, | 130 {"default_floor_texture", NULL, OPT_STRINGBUF8, NULL, "Default floor texture", cfg.def.floor_texture}, |
135 | 135 |
136 {"cfg.def.upper_texture", NULL, OPT_STRINGBUF8, NULL, "Default upper texture", cfg.def.upper_texture}, | 136 {"cfg.def.upper_texture", NULL, OPT_STRINGBUF8, NULL, "Default upper texture", cfg.def.upper_texture}, |
137 {"digit_zoom_base", NULL, OPT_INTEGER, NULL, "[0]-[9]: base zoom factor (in %)", &cfg.digit_zoom_base}, | 137 {"digit_zoom_base", NULL, OPT_INTEGER, NULL, "[0]-[9]: base zoom factor (in %)", &cfg.digit_zoom_base}, |
138 {"digit_zoom_step", NULL, OPT_INTEGER, NULL, "[0]-[9]: step between factors (in %)", &cfg.digit_zoom_step}, | 138 {"digit_zoom_step", NULL, OPT_INTEGER, NULL, "[0]-[9]: step between factors (in %)", &cfg.digit_zoom_step}, |
139 {"double_click_timeout", NULL, OPT_INTEGER, NULL, "Max delay in ms between clicks", &cfg.double_click_timeout}, | 139 {"double_click_timeout", NULL, OPT_INTEGER, NULL, "Max delay in ms between clicks", &cfg.double_click_timeout}, |
140 {"expert", NULL, OPT_BOOLEAN, NULL, "Expert mode", &cfg.Expert}, | 140 {"expert", NULL, OPT_BOOLEAN, NULL, "Expert mode", &cfg.expert}, |
141 {"file", NULL, OPT_STRINGPTRLIST, NULL, "Patch wad file", &cfg.PatchWads}, | 141 {"file", NULL, OPT_STRINGPTRLIST, NULL, "Patch wad file", &cfg.patchwads}, |
142 {"font", "fn", OPT_STRINGPTR, NULL, "(X11 only) Font name", &font_name}, | 142 {"font", "fn", OPT_STRINGPTR, NULL, "(X11 only) Font name", &font_name}, |
143 {"game", "g", OPT_STRINGPTR, NULL, "Game", &cfg.Game}, | 143 {"game", "g", OPT_STRINGPTR, NULL, "Game", &cfg.Game}, |
144 {"grid_max", NULL, OPT_INTEGER, NULL, "Max grid step (map units)", &cfg.GridMax}, | 144 {"grid_max", NULL, OPT_INTEGER, NULL, "Max grid step (map units)", &cfg.GridMax}, |
145 {"grid_min", NULL, OPT_INTEGER, NULL, "Min grid step (map units)", &cfg.GridMin}, | 145 {"grid_min", NULL, OPT_INTEGER, NULL, "Min grid step (map units)", &cfg.GridMin}, |
146 {"grid_pixels_min", NULL, OPT_INTEGER, NULL, "Min grid step (pixels)", &cfg.grid_pixels_min}, | 146 {"grid_pixels_min", NULL, OPT_INTEGER, NULL, "Min grid step (pixels)", &cfg.grid_pixels_min}, |
148 {"help", "?", OPT_BOOLEAN, "1", "Show usage summary", &cfg.show_help}, | 148 {"help", "?", OPT_BOOLEAN, "1", "Show usage summary", &cfg.show_help}, |
149 {"idle_sleep_ms", NULL, OPT_INTEGER, NULL, "ms to sleep before XPending()", &cfg.idle_sleep_ms}, | 149 {"idle_sleep_ms", NULL, OPT_INTEGER, NULL, "ms to sleep before XPending()", &cfg.idle_sleep_ms}, |
150 {"info_bar", NULL, OPT_BOOLEAN, NULL, "Show the info bar", &cfg.InfoShown}, | 150 {"info_bar", NULL, OPT_BOOLEAN, NULL, "Show the info bar", &cfg.InfoShown}, |
151 {"insert_vertex_split_linedef",NULL,OPT_CONFIRM, NULL, "Split ld after ins. vertex", &cfg.insert_vertex_split_linedef}, | 151 {"insert_vertex_split_linedef",NULL,OPT_CONFIRM, NULL, "Split ld after ins. vertex", &cfg.insert_vertex_split_linedef}, |
152 {"insert_vertex_merge_vertices",NULL,OPT_CONFIRM, NULL, "Merge vertices after ins. vertex", &cfg.insert_vertex_merge_vertices}, | 152 {"insert_vertex_merge_vertices",NULL,OPT_CONFIRM, NULL, "Merge vertices after ins. vertex", &cfg.insert_vertex_merge_vertices}, |
153 {"iwad1", "i1", OPT_STRINGPTR, NULL, "The name of the Doom/Ultimate D. iwad", &cfg.Iwad[0]}, | 153 {"iwad1", "i1", OPT_STRINGPTR, NULL, "The name of the Doom/Ultimate D. iwad", &cfg.iwadnames[0]}, |
154 {"iwad2", "i2", OPT_STRINGPTR, NULL, "The name of the Doom II/Final D. iwad", &cfg.Iwad[1]}, | 154 {"iwad2", "i2", OPT_STRINGPTR, NULL, "The name of the Doom II/Final D. iwad", &cfg.iwadnames[1]}, |
155 {"iwad3", "i3", OPT_STRINGPTR, NULL, "The name of the Heretic iwad", &cfg.Iwad[2]}, | 155 {"iwad3", "i3", OPT_STRINGPTR, NULL, "The name of the Heretic iwad", &cfg.iwadnames[2]}, |
156 {"iwad4", "i4", OPT_STRINGPTR, NULL, "The name of the Hexen iwad", &cfg.Iwad[3]}, | 156 {"iwad4", "i4", OPT_STRINGPTR, NULL, "The name of the Hexen iwad", &cfg.iwadnames[3]}, |
157 {"iwad5", "i5", OPT_STRINGPTR, NULL, "The name of the Strife iwad", &cfg.Iwad[4]}, | 157 {"iwad5", "i5", OPT_STRINGPTR, NULL, "The name of the Strife iwad", &cfg.iwadnames[4]}, |
158 {"iwad6", "i6", OPT_STRINGPTR, NULL, "The name of the Doom alpha 0.2 iwad", &cfg.Iwad[5]}, | 158 {"iwad6", "i6", OPT_STRINGPTR, NULL, "The name of the Doom alpha 0.2 iwad", &cfg.iwadnames[5]}, |
159 {"iwad7", "i7", OPT_STRINGPTR, NULL, "The name of the Doom alpha 0.4 iwad", &cfg.Iwad[6]}, | 159 {"iwad7", "i7", OPT_STRINGPTR, NULL, "The name of the Doom alpha 0.4 iwad", &cfg.iwadnames[6]}, |
160 {"iwad8", "i8", OPT_STRINGPTR, NULL, "The name of the Doom alpha 0.5 iwad", &cfg.Iwad[7]}, | 160 {"iwad8", "i8", OPT_STRINGPTR, NULL, "The name of the Doom alpha 0.5 iwad", &cfg.iwadnames[7]}, |
161 {"iwad9", "i9", OPT_STRINGPTR, NULL, "The name of the Doom press rel. iwad", &cfg.Iwad[8]}, | 161 {"iwad9", "i9", OPT_STRINGPTR, NULL, "The name of the Doom press rel. iwad", &cfg.iwadnames[8]}, |
162 {"iwad10", "i10",OPT_STRINGPTR, NULL, "The name of the Strife 1.0 iwad", &cfg.Iwad[9]}, | 162 {"iwad10", "i10",OPT_STRINGPTR, NULL, "The name of the Strife 1.0 iwad", &cfg.iwadnames[9]}, |
163 {"no_pixmap", "P", OPT_BOOLEAN, NULL, "(X11 only) Use no pixmap", &cfg.no_pixmap}, | 163 {"no_pixmap", "P", OPT_BOOLEAN, NULL, "(X11 only) Use no pixmap", &cfg.no_pixmap}, |
164 {"pwad", "pw", OPT_STRINGPTRACC, NULL, "Pwad file to load", &cfg.PatchWads}, | 164 {"pwad", "pw", OPT_STRINGPTRACC, NULL, "Pwad file to load", &cfg.patchwads}, |
165 {"quiet", "q", OPT_BOOLEAN, NULL, "Quiet mode", &cfg.Quiet}, | 165 {"quiet", "q", OPT_BOOLEAN, NULL, "Quiet mode", &cfg.quiet}, |
166 {"quieter", "qq", OPT_BOOLEAN, NULL, "Quieter mode", &cfg.Quieter}, | 166 {"quieter", "qq", OPT_BOOLEAN, NULL, "Quieter mode", &cfg.quieter}, |
167 {"scroll_less", NULL, OPT_UNSIGNED, NULL, "Amp. of scrolling (% of screen size)", &cfg.scroll_less}, | 167 {"scroll_less", NULL, OPT_UNSIGNED, NULL, "Amp. of scrolling (% of screen size)", &cfg.scroll_less}, |
168 {"scroll_more", NULL, OPT_UNSIGNED, NULL, "Amp. of scrolling (% of screen size)", &cfg.scroll_more}, | 168 {"scroll_more", NULL, OPT_UNSIGNED, NULL, "Amp. of scrolling (% of screen size)", &cfg.scroll_more}, |
169 {"select0", "s0", OPT_BOOLEAN, NULL, "Automatic selection of 0th object", &cfg.Select0}, | 169 {"select0", "s0", OPT_BOOLEAN, NULL, "Automatic selection of 0th object", &cfg.autoselect0}, |
170 {"sprite_scale", NULL, OPT_INTEGER, NULL, "Relative scale of sprites", &cfg.sprite_scale}, | 170 {"sprite_scale", NULL, OPT_INTEGER, NULL, "Relative scale of sprites", &cfg.sprite_scale}, |
171 {"swap_buttons", "sb", OPT_BOOLEAN, NULL, "Swap mouse buttons", &cfg.SwapButtons}, | 171 {"swap_buttons", "sb", OPT_BOOLEAN, NULL, "Swap mouse buttons", &cfg.swap_buttons}, |
172 {"text_dot", "td", OPT_BOOLEAN, NULL, "DrawScreenText debug flag", &cfg.text_dot}, | 172 {"text_dot", "td", OPT_BOOLEAN, NULL, "DrawScreenText debug flag", &cfg.text_dot}, |
173 {"verbose", "v", OPT_BOOLEAN, "1", "Verbose mode", &cfg.verbose}, | 173 {"verbose", "v", OPT_BOOLEAN, "1", "Verbose mode", &cfg.verbose}, |
174 {"welcome_message", NULL, OPT_BOOLEAN, NULL, "Print welcome message", &cfg.welcome_message}, | 174 {"welcome_message", NULL, OPT_BOOLEAN, NULL, "Print welcome message", &cfg.welcome_message}, |
175 {"width", "w", OPT_WINDIM, "x", "(X11 only) Initial window width", &initial_window_width}, | 175 {"width", "w", OPT_WINDIM, "x", "(X11 only) Initial window width", &initial_window_width}, |
176 {"zoom_default", "z", OPT_INTEGER, NULL, "Initial zoom factor", &cfg.zoom_default}, | 176 {"zoom_default", "z", OPT_INTEGER, NULL, "Initial zoom factor", &cfg.zoom_default}, |