Skip to content

Commit

Permalink
Redo how the remote filesystem works
Browse files Browse the repository at this point in the history
Instead of reading files over the network, the new version uses a local file cache and only updates files when it changes.

The original remote filesystem was created 14 years ago, when ethernet was faster than hard drives or even flash. Also, mobile devices have a very small amount of storage.
Nowadays, this is no longer the case so the approach is changed to using a persistent cache in the target device.
  • Loading branch information
reduz committed Apr 28, 2023
1 parent 352ebe9 commit 7d35423
Show file tree
Hide file tree
Showing 16 changed files with 672 additions and 1,013 deletions.
12 changes: 0 additions & 12 deletions core/config/project_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
#include "core/io/config_file.h"
#include "core/io/dir_access.h"
#include "core/io/file_access.h"
#include "core/io/file_access_network.h"
#include "core/io/file_access_pack.h"
#include "core/io/marshalls.h"
#include "core/os/keyboard.h"
Expand Down Expand Up @@ -502,17 +501,6 @@ Error ProjectSettings::_setup(const String &p_path, const String &p_main_pack, b
}
}

// If looking for files in a network client, use it directly

if (FileAccessNetworkClient::get_singleton()) {
Error err = _load_settings_text_or_binary("res://project.godot", "res://project.binary");
if (err == OK && !p_ignore_override) {
// Optional, we don't mind if it fails
_load_settings_text("res://override.cfg");
}
return err;
}

// Attempt with a user-defined main pack first

if (!p_main_pack.is_empty()) {
Expand Down
Loading

0 comments on commit 7d35423

Please sign in to comment.