| 
														
															@@ -13,7 +13,7 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 #include <stocksoup/files> 
														 | 
														
														 | 
														
															 #include <stocksoup/files> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 #include <stocksoup/version> 
														 | 
														
														 | 
														
															 #include <stocksoup/version> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-#define PLUGIN_VERSION "1.1.2" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+#define PLUGIN_VERSION "1.1.3" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 public Plugin myinfo = { 
														 | 
														
														 | 
														
															 public Plugin myinfo = { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	name = "[CSRD] SRCDS Automatic Data Dumper", 
														 | 
														
														 | 
														
															 	name = "[CSRD] SRCDS Automatic Data Dumper", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	author = "nosoop", 
														 | 
														
														 | 
														
															 	author = "nosoop", 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -36,7 +36,7 @@ public Plugin myinfo = { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 enum DumpAction { 
														 | 
														
														 | 
														
															 enum DumpAction { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	DumpAction_None = 0,		// no checks are performed 
														 | 
														
														 | 
														
															 	DumpAction_None = 0,		// no checks are performed 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-	DumpAction_FileCheck,		// check if dump indicator is present 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	DumpAction_UpdateCheck,		// check if dump indicator is present (TODO change method?) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	DumpAction_PendingDump		// pending dump on current map 
														 | 
														
														 | 
														
															 	DumpAction_PendingDump		// pending dump on current map 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 }; 
														 | 
														
														 | 
														
															 }; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -47,7 +47,7 @@ public APLRes AskPluginLoad2(Handle hPluginSelf, bool bLateLoaded, char[] error, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	if (bLateLoaded) { 
														 | 
														
														 | 
														
															 	if (bLateLoaded) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		g_DumpAction = DumpAction_None; 
														 | 
														
														 | 
														
															 		g_DumpAction = DumpAction_None; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	} else { 
														 | 
														
														 | 
														
															 	} else { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		g_DumpAction = DumpAction_FileCheck; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		g_DumpAction = DumpAction_UpdateCheck; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		 
														 | 
														
														 | 
														
															 		 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		/** 
														 | 
														
														 | 
														
															 		/** 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		 * cache flags early in case a plugin overrides flags 
														 | 
														
														 | 
														
															 		 * cache flags early in case a plugin overrides flags 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -84,7 +84,7 @@ public void OnMapStart() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		/**  
														 | 
														
														 | 
														
															 		/**  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		 * Stage 1:  Check if the marker file exists; change map if necessary. 
														 | 
														
														 | 
														
															 		 * Stage 1:  Check if the marker file exists; change map if necessary. 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		 */ 
														 | 
														
														 | 
														
															 		 */ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		case DumpAction_FileCheck: { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		case DumpAction_UpdateCheck: { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			if (FileExists(path, false)) { 
														 | 
														
														 | 
														
															 			if (FileExists(path, false)) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				g_DumpAction = DumpAction_PendingDump; 
														 | 
														
														 | 
														
															 				g_DumpAction = DumpAction_PendingDump; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				ForceChangeLevel(LOW_ENTITY_MAP, "Starting server data dump"); 
														 | 
														
														 | 
														
															 				ForceChangeLevel(LOW_ENTITY_MAP, "Starting server data dump"); 
														 |