Update the list of known versions

Closes #181
This commit is contained in:
Bojidar Marinov
2019-08-08 08:50:19 +03:00
parent e82845336a
commit 3e9062e306
2 changed files with 10 additions and 5 deletions

View File

@@ -59,13 +59,14 @@ return $constants = [
9999999 => 'custom_build'
]),
'common_godot_versions' => [
'1.0',
'1.1',
'2.0', //'2.0.1', '2.0.2', '2.0.3', '2.0.4',
'2.1', '2.1.1', '2.1.2', '2.1.3', '2.1.4',
// '1.0',
// '1.1',
'2.0',
'2.1',
'2.2',
'3.0', '3.0.1', '3.0.2', '3.0.3', '3.0.4',
'3.0',
'3.1',
'3.2',
'unknown',
'custom_build',
]

View File

@@ -147,6 +147,10 @@ $_asset_values = array_merge([
<option value="" selected="">
Select...
</option>
<?php } elseif(!in_array($_asset_values['godot_version'], $constants['common_godot_versions'])) { ?>
<option value="<?php echo esc($_asset_values['godot_version']) ?>" selected="">
<?php echo esc(ucfirst($_asset_values['godot_version'])) ?>
</option>
<?php } ?>
<?php foreach($constants['common_godot_versions'] as $version) { ?>
<option value="<?php echo esc($version) ?>" <?php if($version == $_asset_values['godot_version']) echo 'selected=""'; ?>>