| 456 | } |
| 457 | |
| 458 | void FGameConfigFile::ArchiveGameData (const char *gamename) |
| 459 | { |
| 460 | char section[32*3], *subsection; |
| 461 | |
| 462 | sublen = countof(section) - 1 - mysnprintf (section, countof(section), "%s.", gamename); |
| 463 | subsection = section + countof(section) - 1 - sublen; |
| 464 | |
| 465 | strncpy (subsection, "Player", sublen); |
| 466 | SetSection (section, true); |
| 467 | ClearCurrentSection (); |
| 468 | C_ArchiveCVars (this, CVAR_ARCHIVE|CVAR_USERINFO); |
| 469 | |
| 470 | strncpy (subsection, "ConsoleVariables", sublen); |
| 471 | SetSection (section, true); |
| 472 | ClearCurrentSection (); |
| 473 | C_ArchiveCVars (this, CVAR_ARCHIVE); |
| 474 | |
| 475 | strncpy(subsection, "VideoSettings", sublen); |
| 476 | SetSection(section, true); |
| 477 | ClearCurrentSection(); |
| 478 | C_ArchiveCVars(this, CVAR_ARCHIVE|CVAR_VIDEOCONFIG); |
| 479 | |
| 480 | #if 0 |
| 481 | // Do not overwrite the serverinfo section if playing a netgame, and |
| 482 | // this machine was not the initial host. |
| 483 | if (!netgame || consoleplayer == 0) |
| 484 | { |
| 485 | strncpy (subsection, netgame ? "NetServerInfo" : "LocalServerInfo", sublen); |
| 486 | SetSection (section, true); |
| 487 | ClearCurrentSection (); |
| 488 | C_ArchiveCVars (this, CVAR_ARCHIVE|CVAR_SERVERINFO); |
| 489 | } |
| 490 | #endif |
| 491 | |
| 492 | strncpy (subsection, "UnknownConsoleVariables", sublen); |
| 493 | SetSection (section, true); |
| 494 | ClearCurrentSection (); |
| 495 | C_ArchiveCVars (this, CVAR_ARCHIVE|CVAR_AUTO); |
| 496 | |
| 497 | strncpy (subsection, "ConsoleAliases", sublen); |
| 498 | SetSection (section, true); |
| 499 | ClearCurrentSection (); |
| 500 | C_ArchiveAliases (this); |
| 501 | |
| 502 | //M_SaveCustomKeys (this, section, subsection, sublen); |
| 503 | |
| 504 | strcpy (subsection, "Bindings"); |
| 505 | SetSection (section, true); |
| 506 | Bindings.ArchiveBindings (this); |
| 507 | |
| 508 | strncpy (subsection, "DoubleBindings", sublen); |
| 509 | SetSection (section, true); |
| 510 | DoubleBindings.ArchiveBindings (this); |
| 511 | |
| 512 | strncpy (subsection, "AutomapBindings", sublen); |
| 513 | SetSection (section, true); |
| 514 | AutomapBindings.ArchiveBindings (this); |
| 515 | } |
no test coverage detected