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

Method SV_ReadMapCommand

server/src/main/java/jake2/server/SV_MAIN.java:1159–1172  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1157 }
1158
1159 private String SV_ReadMapCommand() {
1160 Com.DPrintf("SV_ReadMapCommand()\n");
1161
1162 try {
1163 QuakeFile f = new QuakeFile(FS.getWriteDir() + "/save/current/server_mapcmd.ssv", "r");
1164 // read the comment field
1165 Com.DPrintf("SV_ReadMapCommand: Loading save: " + f.readString() + "\n");
1166
1167 // read the mapcmd
1168 return f.readString();
1169 } catch (Exception e) {
1170 throw new RuntimeException(e);
1171 }
1172 }
1173
1174 /*
1175==================

Callers 1

SV_Loadgame_fMethod · 0.95

Calls 3

DPrintfMethod · 0.95
getWriteDirMethod · 0.95
readStringMethod · 0.95

Tested by

no test coverage detected