|
|
@@ -87,8 +87,11 @@ namespace GCMM |
|
|
|
continue; |
|
|
|
} |
|
|
|
|
|
|
|
if (File.Exists(completeFileName) && !mod.ModFiles.Contains(completeFileName) && file.FullName != "Plugins/" + mod.Name + ".dll") |
|
|
|
{ //If it's part of the mod files, then it's an update and it didn't originally exist in the game - the last condition is for dll->zip changes |
|
|
|
if ((mod.Version == null || mod.ModFiles.Count != 0) //Negated: The mod is installed and we don't know about any of its files |
|
|
|
&& File.Exists(completeFileName) // OR it's a new file |
|
|
|
&& !mod.ModFiles.Contains(completeFileName) // OR it's known to be part of the mod already |
|
|
|
&& file.FullName != "Plugins/" + mod.Name + ".dll") // OR it's the plugin's DLL (dll->zip release) |
|
|
|
{ |
|
|
|
if (MessageBox.Show("The mod zip contains a file that exists as part of the game. Do you want to skip this file?\n" + file.FullName + "\nOnly choose No if it's part of a previous installation of the mod.", "File is part of the game", MessageBoxButtons.YesNo) == DialogResult.Yes) |
|
|
|
continue; |
|
|
|
} |
|
|
|