Skip to content

Commit

Permalink
Final Code
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolSlimbo committed Apr 2, 2022
1 parent 5e57247 commit ca02883
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file modified build/icon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "r5realoaded_script_installer",
"productName": "r5script-installer",
"productName": "R5Reloaded Script Installer",
"version": "1.0.0",
"description": "R5Realoded script installer through .json files",
"main": "main.js",
Expand Down
6 changes: 3 additions & 3 deletions primary.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ startProcess.addEventListener('click', () => {
})

switch (modApendType) {
case wepCache:
case "wepCache":
let options = {
files: `${appDir}/${modFileLocation}_mapspawn.gnut`,
from: /PrecacheWeapon\( \$"mp_weapon_frag_drone" \)/g,
to: `PrecacheWeapon( $"mp_weapon_frag_drone )"\n\tPrecacheWeapon( $"${modFileName}" )\n`
to: `PrecacheWeapon( $"mp_weapon_frag_drone" )\n PrecacheWeapon( $"${modFileName}" )`
}

replace(options)
Expand All @@ -139,7 +139,7 @@ startProcess.addEventListener('click', () => {

console.log(`Weapon Precached to _mapspawn.gnut`)
break;
case custom:
case "custom":
if (modAppendFileFrom === ``) {
fs.appendFile(`${appDir}/${modAppendFileLocation}/${modAppendFileName}`, modAppendFileAddition, 'utf-8', (err) => {
if (err) throw err
Expand Down

0 comments on commit ca02883

Please sign in to comment.