MCPcopy Create free account
hub / github.com/NetHack/NetHack / build_known_folder_path

Function build_known_folder_path

sys/windows/windsys.c:960–976  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

958}
959
960RESTORE_WARNING_UNREACHABLE_CODE
961
962int
963build_known_folder_path(const KNOWNFOLDERID *folder_id, char *path,
964 size_t path_size, boolean versioned)
965{
966 if (!get_known_folder_path(folder_id, path, path_size))
967 return FALSE;
968
969 strcat(path, "\\NetHack\\");
970 create_directory(path);
971 if (versioned) {
972 Sprintf(eos(path), "%d.%d\\", VERSION_MAJOR, VERSION_MINOR);
973 create_directory(path);
974 }
975 return TRUE;
976}
977
978void
979build_environment_path(const char *env_str, const char *folder, char *path,

Callers 1

windsys.cFile · 0.85

Calls 3

get_known_folder_pathFunction · 0.85
create_directoryFunction · 0.85
eosFunction · 0.85

Tested by

no test coverage detected