[Scummvm-git-logs] scummvm-web master -> fcb1d69f961cabae446d6d9e92a94d2987ba4866
Mataniko
mataniko at gmail.com
Thu Oct 1 19:48:26 UTC 2020
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-web' repo located at https://github.com/scummvm/scummvm-web .
Summary:
fcb1d69f96 WEB: Replace relative FRS path to absolute path
Commit: fcb1d69f961cabae446d6d9e92a94d2987ba4866
https://github.com/scummvm/scummvm-web/commit/fcb1d69f961cabae446d6d9e92a94d2987ba4866
Author: Mataniko (mataniko at gmail.com)
Date: 2020-10-01T15:48:18-04:00
Commit Message:
WEB: Replace relative FRS path to absolute path
Changed paths:
include/Constants.php
include/Objects/File.php
diff --git a/include/Constants.php b/include/Constants.php
index 91cdaf78..05dbbb19 100644
--- a/include/Constants.php
+++ b/include/Constants.php
@@ -43,6 +43,7 @@ class Constants
define('DIR_COMPAT', DIR_DATA . '/compatibility');
define('DIR_DOWNLOADS', '/downloads');
define('DIR_SCREENSHOTS', '/data/screenshots');
+ define('DIR_FRS', '/.0/frs');
/* Locale */
define('DEFAULT_LOCALE', 'en');
diff --git a/include/Objects/File.php b/include/Objects/File.php
index 79fe3f1d..2de10b69 100644
--- a/include/Objects/File.php
+++ b/include/Objects/File.php
@@ -49,6 +49,7 @@ class File extends BasicObject
$fname = "." . $url;
$fname = str_replace('{$release}', RELEASE, $fname);
$fname = str_replace('{$release_tools}', RELEASE_TOOLS, $fname);
+ $fname = str_replace('./frs', DIR_FRS, $fname);
if (is_file($fname) && is_readable($fname)) {
$this->extra_info = array();
More information about the Scummvm-git-logs
mailing list