1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-08-13 12:29:01 +00:00

Show a warning when running under Mono

This commit is contained in:
Andy McFadden 2018-10-10 12:22:40 -07:00
parent b7dc8e1711
commit 9363c3d852

View File

@ -200,6 +200,14 @@ namespace SourceGen.AppForms {
}
private void ProjectView_Load(object sender, EventArgs e) {
// It's *really* unstable right now, so actively discourage its use.
if (Type.GetType("Mono.Runtime") != null) {
MessageBox.Show(this,
"WARNING: SourceGen is currently unstable under Mono. " +
"Many features are badly broken. Proceed at your own risk.",
"Danger! Danger!", MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
if (RuntimeDataAccess.GetDirectory() == null) {
MessageBox.Show(this, Properties.Resources.RUNTIME_DIR_NOT_FOUND,
Properties.Resources.RUNTIME_DIR_NOT_FOUND_CAPTION,