Hello All,
I'm working on a launcher for Arma 3 - that allows the users to launch the game with or with out mods, I have it mostly hard coded right now for the mods, but I am trying to change that.
This is the code I have set up to look up files that are in the arma 3 directory that have @ at the start of the folder.
string armaPath;
if (Is64Bit())
armaPath = @"C:\Program Files (x86)\Steam\steamapps\common\Arma 3";
else
// 32Bit Version
armaPath = @"C:\Program Files\Steam\steamapps\common\Arma 3";
string[] dirs = Directory.GetFiles(armaPath, modName);
lblNews.Text = "" + dirs; // Debugging - Display What is listed with '@' in the name
ckbxlSMods.Items.Add(dirs, false);Right now its to add each folder's name that has @ at the beginning of the name into a Checkboxlist - so the user can select which mods to enable the game with. in the lblNews.Text is 'System.String[]' and in the Checkboxlist I get 'String[] Array'
Currently I have no clue what I am doing wrong or if missed something.