Skip to content

Commit

Permalink
Version bump, added basic modified package detection.
Browse files Browse the repository at this point in the history
  • Loading branch information
Myrkie committed May 9, 2023
1 parent a73e9f4 commit d32652a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions UpuCore/KISSUnpacker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,14 @@ private static Dictionary<string, string> GenerateRemapInfo(string extractedCont
// Loop through each subdirectory in the extracted content directory
foreach (var directory in new DirectoryInfo(extractedContentPath).GetDirectories())
{
// checks to make sure files exist in case of modified files
if (!File.Exists(Path.Combine(directory.FullName, "pathname")))
{
Console.WriteLine("Package has been modified proceed with caution");
continue;
}
// Read the "pathname" file to get the path to the file within the Unity project

var path = File.ReadAllLines(Path.Combine(directory.FullName, "pathname"))[0].Replace('/',
Path.DirectorySeparatorChar);

Expand Down
6 changes: 3 additions & 3 deletions UpuGui.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
<PublishReadyToRun>true</PublishReadyToRun>
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
<_SuppressWinFormsTrimError>true</_SuppressWinFormsTrimError>
<AssemblyVersion>1.6.3.0</AssemblyVersion>
<FileVersion>1.6.3.0</FileVersion>
<ProductVersion>1.6.3.0</ProductVersion>
<AssemblyVersion>1.6.4.0</AssemblyVersion>
<FileVersion>1.6.4.0</FileVersion>
<ProductVersion>1.6.4.0</ProductVersion>
<Authors>Myrkur</Authors>
<Copyright>Myrkur/Myrkie</Copyright>
<IsPackable>false</IsPackable>
Expand Down

0 comments on commit d32652a

Please sign in to comment.