mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-04-15 16:16:03 +02:00
Quick fix for accessing files in the pck file for FileCaches.
This commit is contained in:
parent
b92d4f19ca
commit
53ddc7796f
@ -85,7 +85,7 @@ void FileCache::wwwroot_refresh_cache() {
|
|||||||
_registered_files.clear();
|
_registered_files.clear();
|
||||||
|
|
||||||
if (_wwwroot_orig != "") {
|
if (_wwwroot_orig != "") {
|
||||||
_wwwroot = DirAccess::get_filesystem_abspath_for(_wwwroot_orig);
|
_wwwroot = _wwwroot_orig;//DirAccess::get_filesystem_abspath_for(_wwwroot_orig);
|
||||||
_wwwroot = _wwwroot.path_clean_end_slash();
|
_wwwroot = _wwwroot.path_clean_end_slash();
|
||||||
|
|
||||||
wwwroot_evaluate_dir(_wwwroot);
|
wwwroot_evaluate_dir(_wwwroot);
|
||||||
|
@ -138,7 +138,7 @@ void PagedArticleWebPage::load() {
|
|||||||
void PagedArticleWebPage::_load() {
|
void PagedArticleWebPage::_load() {
|
||||||
ERR_FAIL_COND_MSG(articles_folder == "", "Error: PagedArticleWebPage::load called, but a articles_folder is not set!");
|
ERR_FAIL_COND_MSG(articles_folder == "", "Error: PagedArticleWebPage::load called, but a articles_folder is not set!");
|
||||||
|
|
||||||
_articles_folder_abs = DirAccess::get_filesystem_abspath_for(articles_folder);
|
_articles_folder_abs = articles_folder;//DirAccess::get_filesystem_abspath_for(articles_folder);
|
||||||
_articles_folder_abs = _articles_folder_abs.path_ensure_end_slash();
|
_articles_folder_abs = _articles_folder_abs.path_ensure_end_slash();
|
||||||
|
|
||||||
DirAccess *dir = DirAccess::open(_articles_folder_abs);
|
DirAccess *dir = DirAccess::open(_articles_folder_abs);
|
||||||
|
Loading…
Reference in New Issue
Block a user