MCPcopy Create free account
hub / github.com/diasurgical/devilution / multi_upgrade

Function multi_upgrade

Source/multi.cpp:842–862  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

840}
841
842BOOL multi_upgrade(BOOL *pfExitProgram)
843{
844 BOOL result;
845 int status;
846
847 SNetPerformUpgrade((LPDWORD)&status);
848 result = TRUE;
849 if (status && status != 1) {
850 if (status != 2) {
851 if (status == -1) {
852 DrawDlg("Network upgrade failed");
853 }
854 } else {
855 *pfExitProgram = 1;
856 }
857
858 result = FALSE;
859 }
860
861 return result;
862}
863
864void recv_plrinfo(int pnum, TCmdPlrInfoHdr *p, BOOL recv)
865{

Callers 1

multi_init_multiFunction · 0.85

Calls 2

SNetPerformUpgradeFunction · 0.85
DrawDlgFunction · 0.85

Tested by

no test coverage detected