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

desktop: Add preference to change storage backend #15785

Merged

Conversation

sleepycatcoding
Copy link
Member

Implements #12943 and expands on it by adding it to preferences.

Unresolved questions:

Should we keep these preferences as save, rename to storage or something different entirely?

@sleepycatcoding sleepycatcoding force-pushed the in_memory_storage_backend branch 3 times, most recently from 391b13d to c55bf4a Compare March 27, 2024 19:59
@sleepycatcoding sleepycatcoding force-pushed the in_memory_storage_backend branch 2 times, most recently from aef5887 to 80edfd0 Compare April 1, 2024 21:11
@Dinnerbone Dinnerbone enabled auto-merge (rebase) April 3, 2024 21:35
@Dinnerbone Dinnerbone merged commit 92f437e into ruffle-rs:master Apr 3, 2024
17 checks passed
@@ -2268,8 +2268,8 @@ impl PlayerBuilder {

/// Sets the storage backend of the player.
#[inline]
pub fn with_storage(mut self, storage: impl 'static + StorageBackend) -> Self {
self.storage = Some(Box::new(storage));
pub fn with_storage(mut self, storage: Box<dyn StorageBackend>) -> Self {
Copy link
Member

@torokati44 torokati44 Apr 8, 2024

Choose a reason for hiding this comment

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

Since Player and especially PlayerBuilder are kinda-sorta de-facto "public API", this broke the Android app:
https://github.com/ruffle-rs/ruffle-android/actions/runs/8599069910/job/23561194287#step:6:42
:/

I really wish this would have followed the pattern of with_renderer / with_boxed_renderer right above it.
Anyway, no big deal, I can fix it, this breakage just feels unnecessary and inconsistent.

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

Successfully merging this pull request may close these issues.

None yet

3 participants