mirror of
https://github.com/tonytins/s2pk.git
synced 2025-05-19 15:33: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 file = new FileInfo(package);
|
||||||
var dir = new DirectoryInfo(destination);
|
var dir = new DirectoryInfo(destination);
|
||||||
|
|
||||||
|
if (!file.FullName.Contains(extension))
|
||||||
|
{
|
||||||
|
Console.Error.WriteLine("Package file is not a valid.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!file.Exists)
|
if (!file.Exists)
|
||||||
{
|
{
|
||||||
Console.Error.WriteLine("Package file does not exist.");
|
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:
|
You can build yourself with `make`, or use the installer script:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
./install.sh ./dist/s2pk-linux/s2pkg
|
./install.sh ./dist/s2pk-linux/s2pk
|
||||||
```
|
```
|
||||||
|
|
||||||
Make sure `~/.local/bin` is in your `PATH`:
|
Make sure `~/.local/bin` is in your `PATH`:
|
||||||
|
|
Loading…
Add table
Reference in a new issue