Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Plugins/Android/GooglePlayDownloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,21 @@ public static void FetchOBB()
}
}
}

public static void DeleteOldObbFiles(string expansionFilePath)
{
if (string.IsNullOrEmpty(expansionFilePath))
return;

for (int i = 1; i < obb_version; i++)
{
string obbFile = string.Format("{0}/main.{1}.{2}.obb", expansionFilePath, i, obb_package);
if (File.Exists(obbFile))
{
File.Delete(obbFile);
}
}
}

// This code will reuse the package version from the .apk when looking for the .obb
// Modify as appropriate
Expand Down