MCPcopy Index your code
hub / github.com/NetHack/NetHack / copy_sysconf_content

Function copy_sysconf_content

sys/windows/windmain.c:797–809  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

795}
796
797void
798copy_sysconf_content(void)
799{
800 /* Using the SYSCONFPREFIX path, lock it so that it does not change */
801 fqn_prefix_locked[SYSCONFPREFIX] = TRUE;
802
803 update_file(gf.fqn_prefix[SYSCONFPREFIX], SYSCF_TEMPLATE,
804 gf.fqn_prefix[DATAPREFIX], SYSCF_TEMPLATE, FALSE);
805
806 /* If the required early game file does not exist, copy it */
807 copy_file(gf.fqn_prefix[SYSCONFPREFIX], SYSCF_FILE,
808 gf.fqn_prefix[DATAPREFIX], SYSCF_TEMPLATE, FALSE);
809}
810
811void
812copy_config_content(void)

Callers 1

MAINFunction · 0.85

Calls 2

update_fileFunction · 0.85
copy_fileFunction · 0.70

Tested by

no test coverage detected