Skip to content

Commit

Permalink
fix: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Dec 20, 2021
1 parent f81aa9d commit c9fd0f6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/pagedump.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use quake_core::entry::entry_file::EntryFile;
use std::fs;
use std::path::PathBuf;

Expand Down Expand Up @@ -70,7 +69,7 @@ fn dump_transflow(conf: &QuakeConfig) {
// copy for define load
let transfuncs = path.join(EntryPaths::quake()).join("transfuncs.js");
if transfuncs.exists() {
fs::copy(transfuncs, out_path.join("custom_scripts.js")).unwrap();
fs::copy(transfuncs, out_path.join("custom_transfuncs.js")).unwrap();
}
}

Expand Down Expand Up @@ -118,7 +117,7 @@ fn dump_entries_data(conf: &QuakeConfig) {
for path in &Entrysets::scan_files(&*entry_path) {
let content = Entrysets::file_to_json(&define, index, &type_maps, path).unwrap();

let file = target_dir.join(EntryFile::file_prefix(index).to_string());
let file = target_dir.join(index.to_string());

fs::write(file, content.to_string()).unwrap();
index += 1;
Expand Down Expand Up @@ -174,7 +173,7 @@ mod tests {
let todo_entry = PathBuf::from(DUMP_PATH)
.join("entry")
.join("todo")
.join("0001");
.join("1");
assert!(todo_entry.exists());
}
}

0 comments on commit c9fd0f6

Please sign in to comment.