Add OpenBVE

This commit is contained in:
Steffen Lange 2023-02-02 21:17:09 +01:00
parent 7c93316db4
commit 82ab007218

14
modules/OpenBVE.php Normal file
View file

@ -0,0 +1,14 @@
<?php
class OpenBVE extends PatchBase {
function __construct() {
parent::__construct('OpenBVE Project', 'OpenBVE', 'https://openbve-project.net/download/');
}
function check() : bool {
if ($this->fetch_json('https://api.github.com/repos/leezer3/OpenBVE/releases/latest'))
return $this->parse_json('tag_name');
return false;
}
}
?>