mirror of
https://github.com/scummvm/scummvm-web.git
synced 2026-06-20 05:45:49 +00:00
WEB: Load localized data in models
This commit is contained in:
@@ -24,12 +24,16 @@ class CompatibilityModel extends BasicModel
|
||||
$this->platformsModel = new SimpleModel("Platform", "platforms.yaml");
|
||||
}
|
||||
|
||||
public function getLastUpdated() {
|
||||
return filemtime($this->getLocalizedFile("compatibility.yaml"));
|
||||
}
|
||||
|
||||
/* Get all the groups and the respectively demos for the specified ScummVM version. */
|
||||
public function getAllData($version)
|
||||
{
|
||||
$data = $this->getFromCache($version);
|
||||
if (is_null($data)) {
|
||||
$fname = DIR_DATA . "/compatibility.yaml";
|
||||
$fname = $this->getLocalizedFile("compatibility.yaml");
|
||||
$compatibilityEntries = \yaml_parse_file($fname);
|
||||
$games = $this->gameModel->getAllGames();
|
||||
$platforms = $this->platformsModel->getAllData();
|
||||
|
||||
Reference in New Issue
Block a user