desktop: Rename config.rs to preferences.rs

This commit is contained in:
Nathan Adams 2024-02-28 21:33:15 +01:00
parent 8b589a9620
commit d62963c2d4
7 changed files with 6 additions and 6 deletions

View File

@ -1,8 +1,8 @@
use crate::cli::Opt;
use crate::config::GlobalPreferences;
use crate::custom_event::RuffleEvent;
use crate::gui::{GuiController, MENU_HEIGHT};
use crate::player::{PlayerController, PlayerOptions};
use crate::preferences::GlobalPreferences;
use crate::util::{
get_screen_size, gilrs_button_to_gamepad_button, parse_url, pick_file, plot_stats_in_tracy,
winit_to_ruffle_key_code, winit_to_ruffle_text_control,

View File

@ -9,12 +9,12 @@ pub use movie::MovieView;
use std::borrow::Cow;
use url::Url;
use crate::config::GlobalPreferences;
use crate::custom_event::RuffleEvent;
use crate::gui::context_menu::ContextMenu;
use crate::gui::open_dialog::OpenDialog;
use crate::gui::preferences_dialog::PreferencesDialog;
use crate::player::PlayerOptions;
use crate::preferences::GlobalPreferences;
use chrono::DateTime;
use egui::*;
use fluent_templates::fluent_bundle::FluentValue;

View File

@ -1,9 +1,9 @@
use crate::backends::DesktopUiBackend;
use crate::config::GlobalPreferences;
use crate::custom_event::RuffleEvent;
use crate::gui::movie::{MovieView, MovieViewRenderer};
use crate::gui::{RuffleGui, MENU_HEIGHT};
use crate::player::{PlayerController, PlayerOptions};
use crate::preferences::GlobalPreferences;
use anyhow::anyhow;
use egui::{Context, ViewportId};
use fontdb::{Database, Family, Query, Source};

View File

@ -1,5 +1,5 @@
use crate::config::GlobalPreferences;
use crate::gui::text;
use crate::preferences::GlobalPreferences;
use egui::{Align2, Button, ComboBox, Grid, Ui, Widget, Window};
use ruffle_render_wgpu::clap::{GraphicsBackend, PowerPreference};
use std::borrow::Cow;

View File

@ -9,11 +9,11 @@
mod app;
mod backends;
mod cli;
mod config;
mod custom_event;
mod executor;
mod gui;
mod player;
mod preferences;
mod task;
mod time_demo;
mod util;

View File

@ -2,10 +2,10 @@ use crate::backends::{
CpalAudioBackend, DesktopExternalInterfaceProvider, DesktopFSCommandProvider, DesktopUiBackend,
DiskStorageBackend, ExternalNavigatorBackend,
};
use crate::config::GlobalPreferences;
use crate::custom_event::RuffleEvent;
use crate::executor::WinitAsyncExecutor;
use crate::gui::MovieView;
use crate::preferences::GlobalPreferences;
use crate::{CALLSTACK, RENDER_INFO, SWF_INFO};
use anyhow::anyhow;
use ruffle_core::backend::navigator::{OpenURLMode, SocketMode};