-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathformHome.cs
More file actions
491 lines (456 loc) · 28 KB
/
formHome.cs
File metadata and controls
491 lines (456 loc) · 28 KB
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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
using System.Runtime.Intrinsics.X86;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
using ComboBox = System.Windows.Forms.ComboBox;
namespace FSR3ModSetupUtilityEnhanced
{
public partial class formHome : Form
{
private Image panelBackgroundG;
private formSettings settingsForm;
public static Dictionary<string, List<string>> gamesModsConfig;
public static List<string> modsDefaultList;
public static List<string> fsr31DlssMods;
public string gamesSelected { get; set; }
public mainForm MainFormInstance { get; set; }
public formHome(mainForm mainForm)
{
InitializeComponent();
this.MainFormInstance = mainForm;
typeof(Panel).InvokeMember("DoubleBuffered",
BindingFlags.SetProperty | BindingFlags.Instance | BindingFlags.NonPublic,
null, panelBG, new object[] { true });
panelBG.Paint += new PaintEventHandler(panelBG_Paint);
}
private void formHome_Load(object sender, EventArgs e)
{
}
private async Task searchImage(string imageName, string gameName)
{
object? selectedGame = listGames.SelectedItem;
if (selectedGame == null || !selectedGame.Equals(gameName))
return;
string imagePath = Path.Combine(
Path.GetDirectoryName(Application.ExecutablePath)!,
"Images\\Wallpaper",
imageName
);
if (!File.Exists(imagePath))
return;
try
{
Image loadedImage = await Task.Run(() => Image.FromFile(imagePath));
Bitmap bitmap = new Bitmap(loadedImage);
panelBackgroundG?.Dispose();
panelBackgroundG = bitmap;
panelBG.Invalidate();
}
catch (Exception ex)
{
}
}
public Dictionary<string, List<string>> ReturnGamesMods()
{
#region Game List
modsDefaultList = new List<string> { "FSR 3.1.4/DLSS FG (Only Optiscaler)", "FSR 3.1.4/DLSSG FG (Only Optiscaler)","0.7.4", "0.7.5", "0.7.6", "0.8.0", "0.9.0",
"0.10.0", "0.10.1", "0.10.1h1", "0.10.2h1", "0.10.3","0.10.4", "Uniscaler", "Uniscaler V2", "Uniscaler V3","Uniscaler V4","Uniscaler FSR 3.1","Uniscaler + Xess + Dlss"};
fsr31DlssMods = new List<string> { "FSR 3.1.4/DLSS FG (Only Optiscaler)", "FSR 3.1.4/DLSSG FG (Only Optiscaler)"};
gamesModsConfig = new Dictionary<string, List<string>>
{
{ "Red Dead Redemption 2", new List<string> { "FSR 3.1.4/DLSS FG (Only Optiscaler RDR2)", "RDR2 Mix", "RDR2 FG Custom" } },
{ "Elden Ring", new List<string> { "Elden Ring FSR3", "Elden Ring FSR3 V2", "FSR 3.1.4/DLSS FG Custom Elden", "Disable Anti Cheat", "Unlock FPS Elden" } },
{ "Elden Ring Nightreign", new List<string> { "FSR 3.1.4/DLSS Nightreign RTX" } },
{ "Alan Wake 2", new List<string> { "Others Mods AW2", "Alan Wake 2 FG RTX", "Alan Wake 2 Uniscaler Custom"} },
{ "The Elder Scrolls IV: Oblivion Remastered", new List<string> { "Others Mods IV Oblivion" }.Concat(fsr31DlssMods).ToList() },
{ "Assassin's Creed Valhalla", new List<string> { "Ac Valhalla Dlss (Only RTX)", "AC Valhalla FSR3 All GPU" } },
{ "Assassin\'s Creed Shadows", new List<string>{ "Others Mods Ac Shadows"}.Concat(fsr31DlssMods).ToList() },
{ "Baldur's Gate 3", new List<string> { "Baldur's Gate 3 FSR3", "Baldur's Gate 3 FSR3 V2", "Baldur's Gate 3 FSR3 V3" } },
{ "Dragons Dogma 2", new List<string> { "Dinput8 DD2", "FSR 3.1.1/DLSS FG Custom" } },
{ "The Callisto Protocol", new List<string> { "FSR 3.1.4/DLSS FG (Only Optiscaler)", "The Callisto Protocol FSR3", "FSR 3.1.4/DLSS Custom Callisto", "0.10.4", "Uniscaler V4" } },
{ "Grand Theft Auto V", new List<string> {"Others Mods Grand Theft Auto V", "FSR 3.1.4/DLSS FG (Only Optiscaler)", "Grand Theft Auto V FiveM", "Grand Theft Auto V Online", "Grand Theft Auto V Epic", "Grand Theft Auto V Epic V2" } },
{ "Cyberpunk 2077", new List<string> { "Others Mods 2077", "RTX DLSS FG CB2077", "FSR 3.1.4/XESS FG 2077"}.Concat(fsr31DlssMods).ToList() },
{ "Ghost of Tsushima", new List<string> { "Ghost of Tsushima FG DLSS", "Optiscaler FSR 3.1.1/DLSS", "Uniscaler FSR 3.1" } },
{ "Lords of the Fallen", new List<string> { "DLSS FG LOTF2 (RTX)" } },
{ "Palworld", new List<string> { "Others Mods PW", "Palworld FG Build03" } },
{ "Star Wars: Jedi Survivor", new List <string> { "Others Mods Jedi" }.Concat(fsr31DlssMods).ToList() },
{ "Icarus", new List<string> { "RTX DLSS FG ICR", "FSR3 FG ICR All GPU" } },
{ "TEKKEN 8", new List<string> { "Unlock FPS Tekken 8" } },
{ "Cod MW3", new List<string> { "COD MW3 FSR3" } },
{ "God Of War", new List<string> { "Others Mods Gow4", "FSR 3.1.4/DLSS Gow4"} },
{ "God of War Ragnarök", new List<string> { "Others Mods Gow Rag", "Uniscaler FSR 3.1" }.Concat(fsr31DlssMods).ToList() },
{ "Warhammer: Space Marine 2", new List<string> { "Others Mods Space Marine", "FSR 3.1.4/DLSS FG Marine", "Uniscaler FSR 3.1" }.Concat(fsr31DlssMods).ToList() },
{ "Black Myth: Wukong", new List<string> { "Others Mods Wukong", "DLSS FG (ALL GPUs) Wukong" }.Concat(fsr31DlssMods).ToList() },
{ "Final Fantasy XVI", new List<string> { "FFXVI DLSS RTX", "Others Mods FFXVI" } },
{ "Forza Horizon 5", new List<string> { "RTX DLSS FG FZ5", "FSR3 FG FZ5 All GPU", "Optiscaler FSR 3.1.1/DLSS" } },
{ "Star Wars Outlaws", new List<string> { }.Concat(fsr31DlssMods).ToList() },
{ "The Casting Of Frank Stone", new List<string> { "0.10.4", "Optiscaler FSR 3.1.1/DLSS" } },
{ "Silent Hill 2", new List<string> { "Others Mods Sh2", "FSR 3.1.1/DLSS FG RTX Custom", "DLSS FG RTX", "Ultra Plus Complete", "Ultra Plus Optimized", "FSR3 FG Native SH2", "FSR3 FG Native SH2 + Optimization"}.Concat(fsr31DlssMods).ToList() },
{ "Until Dawn", new List<string> { "Others Mods UD" }.Concat(fsr31DlssMods).ToList() },
{ "Hogwarts Legacy", new List<string> { "Others Mods HL" }.Concat(fsr31DlssMods).ToList() },
{ "A Quiet Place: The Road Ahead", new List<string> { "FSR 3.1.1/DLSS Quiet Place" }.Concat(fsr31DlssMods).ToList() },
{ "Metro Exodus Enhanced Edition", new List<string> { "Others Mods Metro" }.Concat(fsr31DlssMods).ToList() },
{ "Red Dead Redemption", new List<string> { "Others Mods RDR" } },
{ "Horizon Zero Dawn\\Remastered", new List<string> {"Others Mods HZD"}.Concat(fsr31DlssMods).ToList() },
{ "Dragon Age: Veilguard", new List<string> { "FSR 3.1.4/DLSS DG Veil", "Others Mods DG Veil" } },
{ "Dead Rising Remaster", new List<string> { "Dinput8 DRR", "FSR 3.1 FG DRR" } },
{ "GTA Trilogy", new List<string> { "Others GTA Trilogy" }.Concat(fsr31DlssMods).ToList() },
{ "Assassin's Creed Mirage", new List<string> { "Others Mods Mirage" } },
{ "Alan Wake Remastered", new List<string> { "FSR 3.1.4/DLSS FG (Only Optiscaler)" } },
{ "Lego Horizon Adventures", new List<string> { "Others Mods Lego HZD" } },
{ "Stalker 2", new List<string> { "Others Mods Stalker 2", "DLSS FG (Only Nvidia)" } },
{ "Returnal", new List<string> { "Others Mods Returnal" } },
{ "The Last Of Us Part I", new List<string> { "Others Mods Tlou" } },
{ "The Last of Us Part II", new List<string> { "Others Mods Tlou2" }.Concat(fsr31DlssMods).ToList() },
{ "Marvel\'s Spider-Man Miles Morales", new List<string> { "Others Mods Spider" } },
{ "Marvel\'s Spider-Man Remastered", new List<string> { "Others Mods Spider" } },
{ "Marvel\'s Spider-Man 2", new List<string> { "Others Mods Spider" } },
{ "Microsoft Flight Simulator 24", new List<string> { "FSR 3.1.1/DLSS FG Custom", "FSR 3.1.4/DLSS FG (Only Optiscaler)", "Optiscaler FSR 3.1.1/DLSS" } },
{ "Shadow of the Tomb Raider", new List<string> { "Others Mods Shadow Tomb" } },
{ "Gotham Knights", new List<string> { "Others Mods GK" } },
{ "Indiana Jones and the Great Circle", new List<string> { "Others Mods Indy", "Indy FG (Only RTX)", "FSR 3.1.4/DLSS FG (Only Optiscaler Indy" } },
{ "Suicide Squad: Kill the Justice League", new List<string> { "Others Mods SSKJL", "FSR 3.1.4/DLSS FG (Only Optiscaler)", "Optiscaler FSR 3.1.1/DLSS" } },
{ "Resident Evil 4", new List<string> { "FSR 3.1.4/DLSS RE4" } },
{ "Sifu", new List<string> { "Others Mods Sifu", "FSR 3.1.1/DLSS FG Custom", "FSR 3.1.4/DLSS FG (Only Optiscaler)", "Optiscaler FSR 3.1.1/DLSS"}},
{ "Path of Exile II", new List<string> { "Others Mods POEII", "FSR 3.1.4/DLSS FG (Only Optiscaler)" } },
{ "Steelrising", new List<string> { "Others Mods Steel"}},
{ "Mortal Shell", new List<string> {"Others Mods MShell", "FSR 3.1.4/DLSS FG (Only Optiscaler)" } },
{ "Hitman 3", new List<string> { "Others Mods Hitman 3", "FSR 3.1.4/DLSS FG (Only Optiscaler)" } },
{ "Control", new List<string> { "Others Mods Control"} },
{ "Remnant II", new List<string> { "Others Mods Remnant II", "FSR 3.1.4/DLSS FG (Only Optiscaler)" } },
{ "FIST: Forged In Shadow Torch", new List<string> { "Others Mods Fist"} },
{ "Ghostrunner 2", new List<string> { "Others Mods GR2" } },
{ "Marvel\'s Midnight Suns", new List<string> {"FSR 3.1.1/DLSS FG Custom", "FSR 3.1.4/DLSS FG (Only Optiscaler)", "Optiscaler FSR 3.1.1/DLSS"} },
{ "Senua's Saga Hellblade II", new List<string> {"Others Mods HB2","HB2 FG (Only RTX)"}.Concat(fsr31DlssMods).ToList() },
{ "Six Days in Fallujah", new List<string> {"Others Mods 6Days", "FSR 3.1.4/DLSS FG (Only Optiscaler)" } },
{ "Way Of The Hunter", new List<string> { "Others Mods WOTH", "FSR 3.1.4/DLSS FG (Only Optiscaler)" } },
{ "Alone in the Dark", new List<string> {"Others Mods AITD"} },
{ "Evil West", new List<string> {"Others Mods EW"} },
{ "The First Berserker: Khazan", new List<string> { "Others Mods TFBK"} },
{ "Assetto Corsa Evo", new List<string> { "Others Mods ACE"} },
{ "Soulstice", new List<string> { "Others Mods STC"} },
{ "Watch Dogs Legion", new List<string> { "Others Mods Legion"} },
{ "Back 4 Blood", new List<string> {"Others Mods B4B"} },
{ "Final Fantasy VII Rebirth", new List<string> { "Others Mods FF7RBT" } },
{ "Lies of P", new List<string> { "Others Mods LOP" }.Concat(fsr31DlssMods).ToList() },
{ "Kingdom Come: Deliverance 2", new List<string> {"Others Mods KCD2"}.Concat(fsr31DlssMods).ToList() },
{ "Atomic Heart", new List<string> { "Others Mods ATH"} },
{ "Monster Hunter Wilds", new List<string> {"Others Mods MHW", "DLSSG Wilds (Only RTX)" }.Concat(fsr31DlssMods).ToList() },
{ "Like a Dragon: Pirate Yakuza in Hawaii", new List<string> { "Others Mods LDPYH", "DLSSG Yakuza" } },
{ "A Plague Tale Requiem", new List<string> {"Others Mods Requiem"} },
{ "Fobia – St. Dinfna Hotel", new List<string> {"Others Mods Fobia", "FSR 3.1.4/DLSS FG (Only Optiscaler)" } },
{ "Frostpunk 2", new List<string> {"Others Mods FP2" } },
{ "Bright Memory", new List<string> {"Others Mods BM" } },
{ "Bright Memory Infinite", new List<string>(fsr31DlssMods) },
{ "Choo-Choo Charles", new List<string> {"Others Mods CCC" } },
{ "Lost Records Bloom And Rage", new List<string> {"Others Mods LRBR" } },
{ "GreedFall II: The Dying World", new List<string> { "Others Mods Greed 2" } },
{ "Five Nights at Freddy’s: Security Breach", new List<string> {"Others Mods FNAF"} },
{ "Pacific Drive", new List<string> {"Others Mods PD"} },
{ "Chernobylite", new List<string> { "Others Mods CBL" } },
{ "Chorus", new List<string> { "Others Mods Chorus"} },
{ "Deliver Us Mars", new List<string> { "Others Mods DUM"}.Concat(fsr31DlssMods).ToList() },
{ "Deliver Us The Moon", new List<string> { "Others Mods DUTM"}.Concat(fsr31DlssMods).ToList() },
{ "Dying Light 2", new List<string> { "Others Mods DL2"} },
{ "Kena: Bridge of Spirits", new List<string> { "Others Mods Kena" } },
{ "The Witcher 3", new List<string> { "Others Mods TW3"} },
{ "WILD HEARTS", new List<string> { "Others Mods WH"}.Concat(fsr31DlssMods).ToList() },
{ "Chernobylite 2: Exclusion Zone", new List<string> { "Others Mods CBL2"}.Concat(fsr31DlssMods).ToList() },
{ "Brothers: A Tale of Two Sons Remake", new List<string> {"Others Mods Brothers"}.Concat(fsr31DlssMods).ToList() },
{ "Cities: Skylines 2", new List<string> {"Others Mods CTS2"}.Concat(fsr31DlssMods).ToList() },
{ "Crysis Remastered", new List<string> {"Others Mods Crysis"}.Concat(fsr31DlssMods).ToList() },
{ "Clair Obscur Expedition 33", new List<string> {"Others Mods Coe3"}.Concat(fsr31DlssMods).ToList() },
{ "The Outlast Trials", new List<string> {"Others Mods Tot"}.Concat(fsr31DlssMods).ToList() },
{ "South of Midnight", new List<string> {"Others Mods Som"}.Concat(fsr31DlssMods).ToList() },
{ "Satisfactory" , new List<string>{}.Concat(fsr31DlssMods).ToList() },
{ "The Alters" , new List<string>{}.Concat(fsr31DlssMods).ToList() },
{ "Tainted Grail Fall of Avalon", new List<string>{}.Concat(fsr31DlssMods).ToList() },
{ "Wuchang: Fallen Feathers", new List<string>{}.Concat(fsr31DlssMods).ToList() }
};
#endregion
return gamesModsConfig;
}
public async Task SelectGameWp(string gameName = null, bool cleanSettingsCtrl = false)
{
Dictionary<string, string> path_images = new Dictionary<string, string>
#region Background Images formHome
{
{"Select FSR Version","Ds2.png" },
{"A Plague Tale Requiem","Requiem.png"},
{"A Quiet Place: The Road Ahead","QuietPlace.png"},
{"Achilles Legends Untold","Achilles.png"},
{"Alan Wake Remastered","AwRemaster.png"},
{"Alan Wake 2","AW2.png"},
{"Alone in the Dark","Alone.png"},
{"Assassin's Creed Mirage","Ac.png"},
{"Assassin's Creed Shadows","AcShadows.png"},
{"Assassin's Creed Valhalla","Valhalla.png"},
{"Assetto Corsa Evo","ACE.png"},
{"Atomic Heart","Atomic.png"},
{"AVOWED","AWD.png"},
{"Back 4 Blood","B4B.png"},
{"Baldur's Gate 3","BG3.png"},
{"Banishers: Ghosts of New Eden","Banishers.png" },
{"Black Myth: Wukong","wukong.png"},
{"Blacktail","Black.png"},
{"Bright Memory","BM.png"},
{"Bright Memory Infinite","Bmi.png"},
{"Brothers: A Tale of Two Sons Remake","BrothersR.png" },
{"Chernobylite","Cherno.png"},
{"Chernobylite 2: Exclusion Zone", "Chernob2.png"},
{"Choo-Choo Charles","CCC.png"},
{"Chorus","Chorus.png"},
{"Cities: Skylines 2", "CTS2.png"},
{"Clair Obscur: Expedition 33", "Coe33.png"},
{"Cod Black Ops Cold War","Cod.png"},
{"Cod MW3","mw3.png"},
{"Control","Control.png"},
{"Crime Boss: Rockay City","Rockay.png"},
{"Crysis Remastered", "Crysis.png"},
{"Cyberpunk 2077","Cyber.png"},
{"Dakar Desert Rally","Dakar.png"},
{"Dead Island 2","Dead2.png"},
{"Dead Rising Remaster","Drr.png"},
{"Dead Space (2023)","DeadSpace.png"},
{"Death Stranding","Ds.png"},
{"Deathloop","Df.png"},
{"Deliver Us Mars","DUM.png"},
{"Deliver Us The Moon","DUTM.png"},
{"Dragon Age: Veilguard","DgVeil.png"},
{"Dragons Dogma 2","Dg2.png"},
{"Dying Light 2","Dl2.png"},
{"Dynasty Warriors: Origins","DWO.png"},
{"Elden Ring","Elden.png"},
{"Elden Ring Nightreign","Nightreign.png"},
{"The Elder Scrolls IV: Oblivion Remastered","Elder4.png"},
{"Empire of the Ants","Eota.png"},
{"Everspace 2","Es2.png"},
{"Evil West","Ew.png"},
{"Eternal Strands","Ets.png"},
{"Final Fantasy VII Rebirth","FFVIIRBT.png"},
{"Final Fantasy XVI","Ffxvi.png"},
{"Five Nights at Freddy’s: Security Breach","FNAF.png"},
{"F1 2022","F1.png"},
{"F1 2023","F1_23.png"},
{"FIST: Forged In Shadow Torch","Fist.png"},
{"Flintlock: The Siege Of Dawn","Flint.png"},
{"Fobia – St. Dinfna Hotel","Fobia.png"},
{"Fort Solis","Fort.png"},
{"Frostpunk 2","FP2.png"},
{"Forza Horizon 5","Forza.png"},
{"Ghost of Tsushima","GhostT.png"},
{"Ghostrunner 2","Ghost2.png"},
{"Ghostwire: Tokyo","Ghostwire.png"},
{"God Of War 4","Gow4.png"},
{"God of War Ragnarök","GowRag2.png"},
{"Gotham Knights","Gk.png"},
{"GreedFall II: The Dying World","GF2.png"},
{"GTA Trilogy","GtaTrilogy.png"},
{"Grand Theft Auto V","GtaV.png"},
{"Senua's Saga Hellblade II","Hell2.png" },
{"Hellblade: Senua's Sacrifice","Hell.png"},
{"High On Life","Hol.png"},
{"Hitman 3","Hitman.png"},
{"Hogwarts Legacy","Hog.png"},
{"Horizon Forbidden West","HZDF.png"},
{"Horizon Zero Dawn\\Remastered","Hzd.png"},
{"Hot Wheels Unleashed","Hwu.png"},
{"Icarus","Icarus.png"},
{"Indiana Jones and the Great Circle","Indy.png"},
{"Judgment","Jud.png"},
{"Jusant","Jusant.png"},
{"Kingdom Come: Deliverance 2","KCD2.png"},
{"Kena: Bridge of Spirits","KENA.png"},
{"Layers of Fear","Layers.png"},
{"Lego Horizon Adventures","LegoHzd.png"},
{"Lies of P","Lop.png"},
{"Like a Dragon: Pirate Yakuza in Hawaii","LDPYH.png"},
{"Loopmancer","Loopmancer.png"},
{"Lords of the Fallen","Lotf.png"},
{"Lost Records Bloom And Rage","LRBR.png"},
{"Manor Lords","Manor.png"},
{"Martha Is Dead","Martha.png"},
{"Marvel's Avengers","Avengers.png"},
{"Marvel's Guardians of the Galaxy","Got.png"},
{"Marvel's Spider-Man Miles Morales","Miles.png"},
{"Marvel's Spider-Man Remastered","Spider.png"},
{"Marvel's Spider-Man 2","SpiderMan2.png"},
{"Marvel\'s Midnight Suns","Mmds.png"},
{"Metro Exodus Enhanced Edition","Metro.png"},
{"Monster Hunter Rise","Mrise.png"},
{"Microsoft Flight Simulator 24","FlightSimulator24.png"},
{"Monster Hunter Wilds","MHW.png"},
{"MOTO GP 24","Moto.png"},
{"Mortal Shell","MShell.png"},
{"Nightingale","Night.png"},
{"Ninja Gaiden 2 Black","NinjaG.png"},
{"Nobody Wants To Die","Nobody.png"},
{"Orcs Must Die! Deathtrap","Omdd.png"},
{"Outpost: Infinity Siege","Outpost.png"},
{"Pacific Drive","Pacific.png"},
{"Palworld","Palworld.png"},
{"Path of Exile II","POE2.png"},
{"Ratchet & Clank - Rift Apart","Ratchet.png"},
{"Ready or Not","Ready.png"},
{"Red Dead Redemption","Rdr1.png"},
{"Red Dead Redemption 2","RDR2.png"},
{"Remnant II","Remnant2.png"},
{"Resident Evil 4","Re4.png"},
{"Returnal","Returnal.png"},
{"Ripout","Ripout.png"},
{"Rise of The Tomb Raider","Rtb.png"},
{"RoboCop: Rogue City","RoboCop.png"},
{"Sackboy: A Big Adventure","Sackboy.png"},
{"Saints Row","SaintsRow.png"},
{"Satisfactory","Satisfactory.png"},
{"Scorn","Scorn.png"},
{"Sengoku Dynasty","SG.png"},
{"Shadow of the Tomb Raider","ShadowTomb.png"},
{"Shadow Warrior 3","Shadow3.png"},
{"Sifu","Sifu.png"},
{"Six Days in Fallujah","6Days.png"},
{"Smalland","Smalland.png"},
{"Soulslinger Envoy of Death","SL.png"},
{"Stalker 2","Stalker.png"},
{"Star Wars: Jedi Survivor","JedSurvivor.png"},
{"Star Wars Outlaws","Outlaws.png"},
{"STARFIELD","Starfield.png"},
{"Steelrising","Steelrising.png"},
{"Soulstice","STC.png"},
{"South of Midnight","Som.png"},
{"Suicide Squad: Kill the Justice League","Sskjl.png"},
{"Tainted Grail Fall of Avalon","Tainted.png"},
{"TEKKEN 8","Tekken.png"},
{"Test Drive Unlimited Solar Crown","TestSolar.png"},
{"The Alters","The Alters.png"},
{"The Ascent","Ascent.png"},
{"The Callisto Protocol","Callisto.png"},
{"The Chant","Chant.png"},
{"The Casting Of Frank Stone","FrankStone.png"},
{"The First Berserker: Khazan","TFBK.png"},
{"The Invincible","Invicible.png"},
{"The Last Of Us Part I","TLOU.png"},
{"The Last of Us Part II","Tlou2.png"},
{"The Medium","Medium.png"},
{"The Outer Worlds: Spacer's Choice Edition","Outer.png"},
{"The Outlast Trials","Tot.png"},
{"The Talos Principle 2","Ttp.png"},
{"The Thaumaturge","Thaumaturge.png"},
{"The Witcher 3","Witcher.png"},
{"Thymesia","Thymesia.png"},
{"Uncharted Legacy of Thieves Collection","Uncharted.png"},
{"Unknown 9: Awakening","Unknown9.png"},
{"Until Dawn","Until.png"},
{"Wanted: Dead","Wanted.png"},
{"Warhammer: Space Marine 2","SpaceMarine.png"},
{"Watch Dogs Legion","Legion.png"},
{"Way Of The Hunter","Woth.png"},
{"Wayfinder","Wayfinder.png"},
{"WILD HEARTS","WH.png"},
{"Wuchang: Fallen Feathers", "Wuchang.png"}
};
#endregion
if (!string.IsNullOrEmpty(gameName) && path_images.ContainsKey(gameName))
{
string imagePath = path_images[gameName];
await searchImage(imagePath, gameName);
}
formSettings.gameSelected = gameName;
if (gameName != null)
{
ReturnGamesMods();
if (gameName != null)
{
ReturnGamesMods();
var modsAct = gamesModsConfig.ContainsKey(gameName)
? gamesModsConfig[gameName]
: modsDefaultList;
if (MainFormInstance?.HomeSettings != null)
{
MainFormInstance.HomeSettings.ClearListMods();
if (gamesModsConfig.ContainsKey(gameName))
{
MainFormInstance.HomeSettings.AddItemlistMods(modsAct, modsDefaultList);
}
else
{
MainFormInstance.HomeSettings.AddItemlistMods(modsDefaultList);
}
}
else
{
MainFormInstance.pendingModsForSettings = new List<string>(modsAct);
}
}
if (cleanSettingsCtrl)
{
if (MainFormInstance?.HomeSettings != null)
{
MainFormInstance.HomeSettings.ClearListMods();
MainFormInstance.HomeSettings.AddItemlistMods(modsDefaultList);
}
else
{
MainFormInstance.pendingModsForSettings = new List<string>(modsDefaultList);
}
}
}
}
private void buttonSelectGame_Click(object sender, EventArgs e)
{
ReturnGamesMods();
object? gameGet = listGames.SelectedItem;
if (gameGet != null)
{
string? selectedGame = gameGet.ToString();
if (!string.IsNullOrEmpty(selectedGame))
{
SelectGameWp(selectedGame);
}
}
formSettings.gameSelected = gamesSelected;
if (listGames.SelectedItem != null)
{
gamesSelected = listGames.SelectedItem.ToString();
}
if (gamesSelected != null)
{
formSettings.gameSelected = gamesSelected;
}
if (gamesSelected == "Select FSR Version")
{
panelSelectFSR.Visible = true;
listFSR.Visible = true;
}
else
{
panelSelectFSR.Visible = false;
listFSR.Visible = false;
}
}
private void panelBG_Paint(object sender, PaintEventArgs e)
{
if (panelBackgroundG != null)
{
Graphics g = e.Graphics;
g.DrawImage(panelBackgroundG, new Rectangle(0, 0, panelBG.Width, panelBG.Height));
}
}
private void listFSR_SelectedIndexChanged(object sender, EventArgs e)
{
string selectedFsr = listFSR.SelectedItem.ToString();
formSettings.fsrSelected = selectedFsr;
}
}
}