mirror of
https://github.com/tonytins/s2pk.git
synced 2025-05-19 07:23:17 -04:00
More unpacking checks
This commit is contained in:
parent
a773f267f7
commit
467cbea8d4
2 changed files with 7 additions and 1 deletions
|
@ -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.");
|
||||
|
|
|
@ -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`:
|
||||
|
|
Loading…
Add table
Reference in a new issue