diff --git a/luca_script/src/main.rs b/luca_script/src/main.rs index b2fe68f..bf558e9 100644 --- a/luca_script/src/main.rs +++ b/luca_script/src/main.rs @@ -302,10 +302,6 @@ impl SpecificOpcode { } } - fn encode_message(&self) -> Vec { - todo!() - } - fn decode_add(param_bytes: &mut R) -> Self { let var1 = param_bytes.read_u16::().unwrap(); let expr = utils::decode_string_v1(param_bytes, Encoding::ShiftJIS).unwrap(); diff --git a/luca_script/src/utils.rs b/luca_script/src/utils.rs index abb55cd..70a9e15 100644 --- a/luca_script/src/utils.rs +++ b/luca_script/src/utils.rs @@ -4,11 +4,13 @@ use encoding_rs::*; use byteorder_lite::{LE, ReadBytesExt}; pub enum Encoding { + #[allow(dead_code)] UTF8, UTF16, ShiftJIS, } +#[allow(dead_code)] impl Encoding { pub fn width(&self) -> usize { match self { @@ -58,6 +60,7 @@ pub fn decode_string_v1( Ok(string) } +#[allow(dead_code)] pub fn encode_string_v1(string: String, format: Encoding) -> Vec { match format { Encoding::UTF8 => string.as_bytes().to_vec(), diff --git a/pak_explorer/Cargo.toml b/pak_explorer/Cargo.toml index c500d96..ae52c80 100644 --- a/pak_explorer/Cargo.toml +++ b/pak_explorer/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "pak_explorer" -edition = "2021" -version = "0.1.2" +edition = "2024" +version = "0.1.3" description = """ A simple GUI for exploring and making modifications to LUCA System PAK files. """ diff --git a/pak_explorer/src/main.rs b/pak_explorer/src/main.rs index aa65d19..393c6a4 100644 --- a/pak_explorer/src/main.rs +++ b/pak_explorer/src/main.rs @@ -1,10 +1,9 @@ #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] // hide console window on Windows in release -use colog; use eframe::egui::{ self, ColorImage, Image, ProgressBar, TextureFilter, TextureHandle, TextureOptions, ThemePreference }; -use kira::{backend::Backend, sound::static_sound::{StaticSoundData, StaticSoundHandle}, AudioManager, AudioManagerSettings, DefaultBackend, Tween}; +use kira::{sound::static_sound::{StaticSoundData, StaticSoundHandle}, AudioManager, AudioManagerSettings, DefaultBackend, Tween}; use log::error; use luca_pak::{entry::EntryType, Pak}; use std::{fs, io::Cursor, time::Duration};