More unpacking checks

This commit is contained in:
Tony Bark 2025-04-30 10:28:45 -04:00
parent a773f267f7
commit 467cbea8d4
2 changed files with 7 additions and 1 deletions

View file

@ -83,6 +83,12 @@ public static class PackageManager
var file = new FileInfo(package);
var dir = new DirectoryInfo(destination);
if (!file.FullName.Contains(extension))
{
Console.Error.WriteLine("Package file is not a valid.");
return;
}
if (!file.Exists)
{
Console.Error.WriteLine("Package file does not exist.");

View file

@ -47,7 +47,7 @@ While The Sims 2 runs well on Linux through Wine, especially with Lutris setups,
You can build yourself with `make`, or use the installer script:
```shell
./install.sh ./dist/s2pk-linux/s2pkg
./install.sh ./dist/s2pk-linux/s2pk
```
Make sure `~/.local/bin` is in your `PATH`: