mirror of
https://github.com/lifegpc/msg-tool.git
synced 2026-06-10 23:18:47 +08:00
Changed some scripts dumped JSON to pretty print JSON
Formated code Add protect when read vector of data
This commit is contained in:
@@ -190,7 +190,10 @@ impl Data {
|
||||
|
||||
let start_pos = func_starts.iter().position(|&s| s == speak_idx);
|
||||
if let Some(pos) = start_pos {
|
||||
let end = func_starts.get(pos + 1).copied().unwrap_or(self.functions.len());
|
||||
let end = func_starts
|
||||
.get(pos + 1)
|
||||
.copied()
|
||||
.unwrap_or(self.functions.len());
|
||||
let names: Vec<String> = (speak_idx..end)
|
||||
.filter(|&i| self.functions[i].opcode == 0x0e)
|
||||
.filter_map(|i| match self.functions[i].operands.first() {
|
||||
|
||||
Reference in New Issue
Block a user