diff options
author | 0neGal <mail@0negal.com> | 2021-12-28 16:46:09 +0100 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2021-12-28 16:46:09 +0100 |
commit | bce88c1def1b0d8c8f03595c6a84196173304f34 (patch) | |
tree | 7b5947439efb560b98faee5a532acb93517a0de8 /src/app/main.js | |
parent | b2bdedddad5001db625478f91ff5d8e86b79f87d (diff) | |
download | Viper-bce88c1def1b0d8c8f03595c6a84196173304f34.tar.gz Viper-bce88c1def1b0d8c8f03595c6a84196173304f34.zip |
you can now exclude certain files like, ns_args
However, I can't figure out a way to directly exclude it in the unzip
package, hence, it just renames the original to "<file>.excluded" when
the extraction is done it then renames it back to it's original aka
"<file>", overwriting what was extracted, which essentially excludes
some files.
If there exists an unzip library/package that has options for excluding
files we should move to that, but until something as such is found the
current way is how we'll do it.
Diffstat (limited to 'src/app/main.js')
-rw-r--r-- | src/app/main.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/app/main.js b/src/app/main.js index 17389b2..be13beb 100644 --- a/src/app/main.js +++ b/src/app/main.js @@ -6,6 +6,10 @@ var settings = { gamepath: "", file: "viper.json", zip: "/northstar.zip", + excludes: [ + "ns_startup_args.txt", + "ns_startup_args_dedi.txt" + ] } if (fs.existsSync(settings.file)) { |