-
Notifications
You must be signed in to change notification settings - Fork 0
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
Game registration refactor and improvements #4
Conversation
This module will eventually make it possible for linux-native hosts to query information from the wine prefix's registry in a way that is 1:1 to windows.
This commit primarily includes a major refactor of game import routines. It increases the extensibility of the system at the cost of a vtable (Box<dyn GameImporter>) and overall system complexity. The hope is that this refactor will make it easier to: - a: Add new platforms or platform subvariants (SteamDirect, for example) - b: Add wine subsystem support for linux-native hosts. This also includes a first swing at "unrolling" the monolithic error type at crate::error::Error, replacing it with mod-specific error impls. This should *theoretically* increase general code quality by de-incentivising a "bubble up" approach to error handling. By allowing more granular control over error variants, callees can have more control over handling recoverable error states.
2929b59
to
5283a01
Compare
todo!() | ||
} | ||
|
||
pub fn get_value_at(hkey: HKey, subkey: &str, name: &str) -> Result<String, Error> { |
Check warning
Code scanning / clippy
unused variable: hkey Warning
todo!() | ||
} | ||
|
||
pub fn get_value_at(hkey: HKey, subkey: &str, name: &str) -> Result<String, Error> { |
Check warning
Code scanning / clippy
unused variable: subkey Warning
todo!() | ||
} | ||
|
||
pub fn get_value_at(hkey: HKey, subkey: &str, name: &str) -> Result<String, Error> { |
Check warning
Code scanning / clippy
unused variable: name Warning
todo!() | ||
} | ||
|
||
pub fn get_keys_at(hkey: HKey, subkey: &str) -> Result<Vec<String>, Error> { |
Check warning
Code scanning / clippy
unused variable: hkey Warning
todo!() | ||
} | ||
|
||
pub fn get_keys_at(hkey: HKey, subkey: &str) -> Result<Vec<String>, Error> { |
Check warning
Code scanning / clippy
unused variable: subkey Warning
todo!() | ||
} | ||
|
||
pub fn get_values_at(hkey: HKey, subkey: &str) -> Result<Vec<RegKeyVal>, Error> { |
Check warning
Code scanning / clippy
unused variable: hkey Warning
todo!() | ||
} | ||
|
||
pub fn get_values_at(hkey: HKey, subkey: &str) -> Result<Vec<RegKeyVal>, Error> { |
Check warning
Code scanning / clippy
unused variable: subkey Warning
No description provided.