-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathaap.mac
More file actions
30 lines (29 loc) · 686 Bytes
/
aap.mac
File metadata and controls
30 lines (29 loc) · 686 Bytes
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
#include AAPurchase.inc
sub main(functype)
/delay 2
/if (${functype.Length} < 1) {
/echo Usage: /mac aap [save/load]
/return
}
/if (${functype.Equal[save]}) {
/call AASave
/return
}
/if (${functype.Equal[load]}) {
/call init
/call AAPicker
}
/return
sub init
/declare ListNum string outer
/declare AAIniFile string local AA_${Me.Name}.ini
/declare a int local
/declare IniSection string local AAtoBuy
/call LoadINIVar2 ${IniSection} AACount 1 AACount ${AAIniFile} int
/if (${AACount}) {
/declare AA[${AACount}] string outer
/for a 1 to ${AACount}
/call LoadINIVar2 ${IniSection} AA${a} " " AA[${a}] ${AAIniFile}
/next a
}
/return