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

Function copy_config_content

sys/windows/windmain.c:811–825  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

809}
810
811void
812copy_config_content(void)
813{
814 /* Using the CONFIGPREFIX path, lock it so that it does not change */
815 fqn_prefix_locked[CONFIGPREFIX] = TRUE;
816
817 /* Keep templates up to date */
818 update_file(gf.fqn_prefix[CONFIGPREFIX], CONFIG_TEMPLATE,
819 gf.fqn_prefix[DATAPREFIX], CONFIG_TEMPLATE, FALSE);
820
821 /* If the required early game file does not exist, copy it */
822 /* NOTE: We never replace .nethackrc or sysconf */
823 copy_file(gf.fqn_prefix[CONFIGPREFIX], CONFIG_FILE,
824 gf.fqn_prefix[DATAPREFIX], CONFIG_TEMPLATE, FALSE);
825}
826
827void
828copy_hack_content(void)

Callers 1

MAINFunction · 0.85

Calls 2

update_fileFunction · 0.85
copy_fileFunction · 0.70

Tested by

no test coverage detected