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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
|
' Gambas module file
Public valori As String
Public Sub sConfig()
Dim amiga, paths, jinput, media, audio, speed, video As String
Dim model, accurancy, ntsc, kickstart, exkickstart, chip, slow, cFast, zorro, picasso As String
Dim df1, df2, df3, df4, hdf0, hdf1, hdf2, cd0, cd1 As String
Dim fulls, fsaa, sync, aspect, escan, lscan, dscan, eShaders, shad, double, low As String
Dim port0, port1, port2, port3 As String
Dim ab1, ab2, ab3, ab4, ab5, ab6, ab7, ab8 As String
'amiga
'
model = "amiga_model = " & FMain.ComboBox1.text & "\n"
accurancy = "accurancy = " & FMain.Slider1.value & "\n"
If FMain.RadioButton1.value = True Then
ntsc = "ntsc_mode = 1" & "\n"
Else
ntsc = "ntsc_mode = 0" & "\n"
Endif
If FMain.RadioButton3.value = True Then
kickstart = "#mAmiga = 500" & "\n" & "kickstart_file = " & FMain.textbox8.text & "\n"
Else
kickstart = "#mAmiga = 1200" & "\n" & "kickstart_file = " & FMain.textbox9.text & "\n"
End If
exkickstart = "kickstart_ext_file = " & FMain.textbox10.text & "\n"
If FMain.RadioButton5.value = True
chip = "chip_memory = 512" & "\n"
Else If FMain.RadioButton6.value = True
chip = "chip_memory = 1024" & "\n"
Else If FMain.RadioButton7.value = True
chip = "chip_memory = 2048" & "\n"
Else If FMain.RadioButton8.value = True
chip = "chip_memory = 4096" & "\n"
Else If FMain.RadioButton9.value = True
chip = "chip_memory = 8192" & "\n"
End If
If FMain.RadioButton13.value = True
slow = "slow_memory = 0" & "\n"
Else If FMain.RadioButton10.value = True
slow = "slow_memory = 512" & "\n"
Else If FMain.RadioButton11.value = True
slow = "slow_memory = 1024" & "\n"
Else If FMain.RadioButton12.value = True
slow = "slow_memory = 1792" & "\n"
End If
If FMain.RadioButton14.value = True
cFast = "fast_memory = 0" & "\n"
Else If FMain.RadioButton15.value = True
cFast = "fast_memory = 1024" & "\n"
Else If FMain.RadioButton16.value = True
cFast = "fast_memory = 2048" & "\n"
Else If FMain.RadioButton17.value = True
cFast = "fast_memory = 4096" & "\n"
Else If FMain.RadioButton18.value = True
cFast = "fast_memory = 8192" & "\n"
End If
If FMain.RadioButton19.value = True
zorro = "zorro_iii_memory = 0" & "\n"
Else If FMain.RadioButton20.value = True
zorro = "zorro_iii_memory = 1024" & "\n"
Else If FMain.RadioButton21.value = True
zorro = "zorro_iii_memory = 2048" & "\n"
Else If FMain.RadioButton22.value = True
zorro = "zorro_iii_memory = 4096" & "\n"
Else If FMain.RadioButton23.value = True
zorro = "zorro_iii_memory = 8192" & "\n"
Else If FMain.RadioButton24.value = True
zorro = "zorro_iii_memory = 16384" & "\n"
Else If FMain.RadioButton25.value = True
zorro = "zorro_iii_memory = 32768" & "\n"
Else If FMain.RadioButton38.value = True
zorro = "zorro_iii_memory = 65536" & "\n"
Else If FMain.RadioButton39.value = True
zorro = "zorro_iii_memory = 131072" & "\n"
Else If FMain.RadioButton40.value = True
zorro = "zorro_iii_memory = 262144" & "\n"
End If
picasso = "uae_gfxcard_size = " & FMain.slider6.value & "\n"
amiga = "[amiga]" & "\n" & "\n" & model & accurancy & ntsc & kickstart & exkickstart & chip & slow & cFast & zorro & picasso
'-------------------------------------------------------
'paths
paths = "\n" & "\n" & "[paths]" & "\n" & "\n" & "kickstarts_dir = " & FMain.TextBox5.text & "\n" & "save_states_dir = " & FMain.TextBox7.text & "\n" &
"floppy_overlays_dir = " & FMain.TextBox4.text & "\n" & "flash_memory_dir = " & FMain.TextBox3.text & "\n" &
"controllers_dir = " & FMain.textbox2.text & "\n" & "base_dir = " & FMain.textbox1.text & "\n"
'-------------------------------------------------------
'
'inputs
If FMain.RadioButton29.value = True Then
port0 = "joystick_port_0 = auto" & "\n"
Else If FMain.RadioButton30.value = True Then
port0 = "joystick_port_0 = mouse" & "\n"
Else If FMain.RadioButton31.value = True Then
port0 = "joystick_port_0 = keyboard" & "\n"
Endif
If FMain.RadioButton26.value = True Then
port1 = "joystick_port_1 = auto" & "\n"
Else If FMain.RadioButton27.value = True Then
port1 = "joystick_port_1 = mouse" & "\n"
Else If FMain.RadioButton28.value = True Then
port1 = "joystick_port_1 = keyboard" & "\n"
Endif
If FMain.RadioButton32.value = True Then
port2 = "joystick_port_2 = auto" & "\n"
Else If FMain.RadioButton33.value = True Then
port2 = "joystick_port_2 = mouse" & "\n"
Else If FMain.RadioButton34.value = True Then
port2 = "joystick_port_2 = keyboard" & "\n"
Endif
If FMain.RadioButton35.value = True Then
port3 = "joystick_port_3 = auto" & "\n"
Else If FMain.RadioButton36.value = True Then
port3 = "joystick_port_3 = mouse" & "\n"
Else If FMain.RadioButton37.value = True Then
port3 = "joystick_port_3 = keyboard" & "\n"
Endif
jinput = "\n" & "\n" & "[input]" & "\n" & "\n" & port0 & port1 & port2 & port3 & "\n"
'-------------------------------------------------------
'
'media
'
If FMain.CheckBox8.Value = False Then ab1 = "#"
If FMain.CheckBox7.Value = False Then ab2 = "#"
If FMain.CheckBox5.Value = False Then ab3 = "#"
If FMain.CheckBox4.Value = False Then ab4 = "#"
If FMain.CheckBox6.Value = False Then ab5 = "#"
If FMain.CheckBox9.Value = False Then ab6 = "#"
If FMain.CheckBox10.Value = False Then ab7 = "#"
If FMain.CheckBox11.Value = False Then ab8 = "#"
df1 = "#df1 = " & FMain.CheckBox8.Value & "\n" & ab1 & "floppy_drive_1 = " & FMain.TextBox16.text & "\n"
df2 = "#df2 = " & FMain.CheckBox7.Value & "\n" & ab2 & "floppy_drive_2 = " & FMain.TextBox17.text & "\n"
df3 = "#df3 = " & FMain.CheckBox5.Value & "\n" & ab3 & "floppy_drive_3 = " & FMain.TextBox18.text & "\n"
hdf0 = "#hd0 = " & FMain.CheckBox4.Value & "\n" & ab4 & "hard_drive_0 = " & FMain.TextBox6.text & "\n"
hdf1 = "#hd1 = " & FMain.CheckBox6.value & "\n" & ab5 & "hard_drive_1 = " & FMain.TextBox19.text & "\n"
hdf2 = "#hd2 = " & FMain.CheckBox9.value & "\n" & ab6 & "hard_drive_2 = " & FMain.TextBox22.text & "\n"
cd0 = "#cd0 = " & FMain.CheckBox10.value & "\n" & ab7 & "cdrom_drive_0 = " & FMain.TextBox23.text & "\n"
cd1 = "#cd1 = " & FMain.CheckBox11.value & "\n" & ab8 & "cdrom_image_0 = " & FMain.TextBox24.text & "\n"
'
media = "\n" & "\n" & "[media]" & "\n" & "\n" & "floppy_drive_0 = " & FMain.TextBox20.text & "\n" & df1 & df2 & df3 & "floppy_image_0 = " & FMain.TextBox15.text & "\n" &
"floppy_image_1 = " & FMain.TextBox11.text & "\n" & "floppy_image_2 = " & FMain.TextBox12.text & "\n" & "floppy_image_3 = " & FMain.TextBox13.text & "\n" &
"floppy_image_4 = " & FMain.TextBox14.text & "\n" & hdf0 & hdf1 & hdf2 & cd0 & cd1
'-------------------------------------------------------
'
'
'preferences floppy
'
audio = "\n" & "\n" & "[audio]" & "\n" & "\n" & "floppy_drive_volume = " & FMain.slider4.value & "\n"
speed = "floppy_drive_speed = " & FMain.slider5.value & "\n"
'-------------------------------------------------------
'
'video
'
If FMain.CheckBox1.value = True Then
fulls = "fullscreen = 1" & "\n"
Else
fulls = "fullscreen = 0" & "\n"
End If
fsaa = "fsaa = " & FMain.combobox2.text & "\n"
sync = "video_sync = " & FMain.combobox3.text & "\n"
If FMain.CheckBox2.value = True Then
aspect = "keep_aspect = 1" & "\n"
Else
aspect = "keep_aspect = 0" & "\n"
End If
If FMain.CheckBox3.value = True Then
escan = "scanlines = 1" & "\n"
Else
escan = "scanlines = 0" & "\n"
End If
If FMain.CheckBox14.value = True Then
double = "line_doubling = 1" & "\n"
Else
double = "line_doubling = 0" & "\n"
Endif
If FMain.CheckBox15.value = True Then
low = "low_resolution = 1" & "\n"
Else
low = "low_resolution = 0" & "\n"
Endif
dscan = "scanlines_dark = " & FMain.slider3.value & "\n"
lScan = "scanlines_light = " & FMain.slider2.value & "\n"
eShaders = "shader = " & FMain.inshader & "/" & FMain.ComboBox10.text & ".shader" & "\n"
shad = "#shad = " & FMain.ComboBox10.text & "\n"
video = "\n" & "\n" & "[video]" & "\n" & "\n" & fulls & fsaa & sync & aspect & escan & dscan & lscan & eShaders & shad & double & low
'-------------------------------------------------------
'
''scrittura
valori = amiga & paths & jinput & media & audio & speed & video
End
|