forked from Ash258/Shovel-Ash258
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCosMOS.json
62 lines (62 loc) · 2.43 KB
/
CosMOS.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
"version": "5.1.5",
"description": "CosMOS Advanced. Brand new self-service gamehacking tool",
"homepage": "https://www.cheathappens.com/cosmos.asp",
"license": "Freeware",
"url": "https://www.cheathappens.com/CoSMOS_Advanced_515.zip",
"hash": "1e849b697568763c99e4c5d94847c4a06714e4d891760c95c7bdbe55ddcebea3",
"pre_install": [
"$file = 'Settings.xml'",
"if (-not (Test-Path \"$persist_dir\\$file\")) {",
" Write-Host 'File' $file 'does not exists. Creating.' -f Yellow",
" # File Structure",
" $delimeter = \"`r`n\"",
" $entryTemplate = ' <%%key%%>%%value%%</%%key%%>'",
" $start = @('<?xml version=\"1.0\" encoding=\"utf-8\"?>',",
" '<Settings xmlns:xsd=\"http: //www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">', ' <Misc>'",
" )",
" $end = @(' </Misc>', '</Settings>')",
" $ents = @()",
" $entries = @{",
" 'ProjectsFolder' = \"$dir\\Projects\\\";",
" 'CheckForUpdates' = 'false';",
" 'Theme' = 'MetroDark';",
" }",
" foreach ($entry in $entries.Keys) {",
" $ent = ($entryTemplate -replace '%%key%%', $entry) -replace '%%value%%', $entries.Item($entry)",
" $ents += $ent",
" }",
" # Create file string",
" $finalFile = $start -join $delimeter",
" $finalFile += $delimeter",
" $finalFile += $ents -join $delimeter",
" $finalFile += $delimeter",
" $finalFile += $end -join $delimeter",
" # Set File",
" Set-Content \"$dir\\$file\" $finalFile -Encoding Ascii",
"}",
"$file = 'Layout.xml'",
"if (-not (Test-Path \"$persist_dir\\$file\")) {",
" Write-Host 'File' $file 'does not exists. Creating.' -f Yellow",
" Set-Content \"$dir\\$file\" '' -Encoding Ascii",
"}"
],
"shortcuts": [
[
"CoSMOS.exe",
"CoSMOS"
]
],
"persist": [
"Projects",
"Layout.xml",
"Settings.xml"
],
"checkver": {
"url": "https://www.cheathappens.com/cosmos_changelog5.txt",
"regex": "CoSMOS Advanced Changelog ([\\d.]+)"
},
"autoupdate": {
"url": "https://www.cheathappens.com/CoSMOS_Advanced_$cleanVersion.zip"
}
}