Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup and expose FileAccessMemory. #98287

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bruvzg
Copy link
Member

@bruvzg bruvzg commented Oct 18, 2024

Exposes FileAccessMemory as mem:// filesystem, and cleans up previously unused mem file registration (changed for permanent list to ref. counted).

Fixes godotengine/godot-proposals#10978 (note: I think there was an older proposal to expose it as well, but I can't find it)

@bruvzg bruvzg added this to the 4.x milestone Oct 18, 2024
@bruvzg bruvzg marked this pull request as ready for review October 21, 2024 08:05
@bruvzg bruvzg requested review from a team as code owners October 21, 2024 08:05

class FileAccessMemory : public FileAccess {
struct FileInfo {
PackedByteArray data;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we expand this struct to also represent uint8_t *data so we can combine and simplify the implementation?

@Mickeon
Copy link
Contributor

Mickeon commented Dec 3, 2024

cleans up previously unused mem file registration

Would be nice to have this sooner than later in a separate PR, since it sounds like an objective improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Memory-Mapped Files (VFS) to Godot Editor as memory://
3 participants