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

Method getWriteDir

qcommon/src/main/java/jake2/qcommon/filesystem/FS.java:553–555  ·  view source on GitHub ↗

Called to find where to write a file (demos, savegames, etc) this is modified to `user.home`/.jake2/`game_name`

()

Source from the content-addressed store, hash-verified

551 * this is modified to `user.home`/.jake2/`game_name`
552 */
553 public static String getWriteDir() {
554 return (fs_userdir != null) ? fs_userdir : Globals.BASEQ2;
555 }
556
557 private static void setWriteDir(String gameName, boolean isGame) {
558 fs_userdir = System.getProperty("user.home") + "/.jake2/" + gameName;

Callers 15

Create_SavestringsMethod · 0.95
StartServer_MenuInitMethod · 0.95
CLClass · 0.95
WriteConfigurationMethod · 0.95
DownloadFileNameMethod · 0.95
ConsoleClass · 0.95
GL_ScreenShot_fMethod · 0.95
isPreviousLevelMethod · 0.95
SV_Read_Latched_VarsMethod · 0.95
SV_WriteLevelFileMethod · 0.95
SV_WriteServerFileMethod · 0.95
SV_Loadgame_fMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected