mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Complete anime diagonal gif support for GA402
This commit is contained in:
committed by
Luke D. Jones
parent
f3f6fadfe2
commit
a2c8a226a4
@@ -80,8 +80,7 @@ pub struct AnimeConfigCached {
|
||||
}
|
||||
|
||||
impl AnimeConfigCached {
|
||||
pub fn init_from_config(&mut self, config: &AnimeConfig) -> Result<(), AnimeError> {
|
||||
let anime_type = AnimeType::GA401; // TODO: detect
|
||||
pub fn init_from_config(&mut self, config: &AnimeConfig, anime_type: AnimeType) -> Result<(), AnimeError> {
|
||||
let mut sys = Vec::with_capacity(config.system.len());
|
||||
for ani in config.system.iter() {
|
||||
sys.push(ActionData::from_anime_action(anime_type, ani)?);
|
||||
|
||||
Reference in New Issue
Block a user