// TODO: make sure that the validation works on other platforms too
varwinSaveRegex =newRegex(@"C:\\Users\\.*\\AppData\\Local\\");//this is to ensure, that the save directory is valid. so far, this is only important for windows
varlinSaveRegex=newRegex(@"$/\.config");// Linux users can set their home directory wherever they want to, for each individual application
//TODO: var macSaveRegex
varwinSaveRegex=newRegex(@"C:\\Users\\.*\\AppData\\Local\\");//this is to ensure, that the save directory is valid. so far, this is only important for windows
varlinSaveRegex =newRegex($@"{Environment.GetEnvironmentVariable("HOME")}/\.config/.*");// GMS hardcodes save into ~/.config on linux