MCPcopy Create free account
hub / github.com/demoth/jake2 / reconfigure

Method reconfigure

qcommon/src/main/java/jake2/qcommon/exec/Cbuf.java:213–229  ·  view source on GitHub ↗
(List<String> args, boolean clear)

Source from the content-addressed store, hash-verified

211 }
212
213 public static void reconfigure(List<String> args, boolean clear) {
214 String dir = Cvar.getInstance().Get("cddir", "", CVAR_ARCHIVE).string;
215 Cbuf.AddText("exec default.cfg\n");
216 Cbuf.AddText("bind MWHEELUP weapnext\n");
217 Cbuf.AddText("bind MWHEELDOWN weapprev\n");
218 Cbuf.AddText("bind w +forward\n");
219 Cbuf.AddText("bind s +back\n");
220 Cbuf.AddText("bind a +moveleft\n");
221 Cbuf.AddText("bind d +moveright\n");
222 Cbuf.Execute();
223 Cvar.getInstance().Set("vid_fullscreen", "0");
224 Cbuf.AddText("exec config.cfg\n");
225
226 Cbuf.AddEarlySetCommands(args, clear);
227 Cbuf.Execute();
228 if (!("".equals(dir))) Cvar.getInstance().Set("cddir", dir);
229 }
230
231}

Callers 2

InitMethod · 0.95
mainMethod · 0.95

Calls 7

getInstanceMethod · 0.95
AddTextMethod · 0.95
ExecuteMethod · 0.95
AddEarlySetCommandsMethod · 0.95
GetMethod · 0.80
SetMethod · 0.80
equalsMethod · 0.45

Tested by

no test coverage detected