| 958 | } |
| 959 | |
| 960 | RESTORE_WARNING_UNREACHABLE_CODE |
| 961 | |
| 962 | int |
| 963 | build_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 | |
| 978 | void |
| 979 | build_environment_path(const char *env_str, const char *folder, char *path, |
no test coverage detected