mirror of
https://github.com/redstrate/Physis.git
synced 2025-06-07 23:27:45 +00:00
Fix benchmark compilation due to recent API changes
This commit is contained in:
parent
d3970754f1
commit
eeebc3e0f0
1 changed files with 4 additions and 8 deletions
|
@ -4,14 +4,12 @@
|
||||||
use std::env;
|
use std::env;
|
||||||
|
|
||||||
use criterion::{Criterion, criterion_group, criterion_main};
|
use criterion::{Criterion, criterion_group, criterion_main};
|
||||||
|
use physis::common::Platform;
|
||||||
use physis::index::IndexFile;
|
use physis::index::IndexFile;
|
||||||
|
|
||||||
fn reload_repos() {
|
fn reload_repos() {
|
||||||
let game_dir = env::var("FFXIV_GAME_DIR").unwrap();
|
let game_dir = env::var("FFXIV_GAME_DIR").unwrap();
|
||||||
let mut gamedata =
|
physis::gamedata::GameData::from_existing(Platform::Win32, format!("{}/game", game_dir).as_str()).unwrap();
|
||||||
physis::gamedata::GameData::from_existing(format!("{}/game", game_dir).as_str()).unwrap();
|
|
||||||
|
|
||||||
gamedata.reload_repositories();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn bench_calculate_hash() {
|
fn bench_calculate_hash() {
|
||||||
|
@ -21,9 +19,7 @@ fn bench_calculate_hash() {
|
||||||
fn fetch_data() {
|
fn fetch_data() {
|
||||||
let game_dir = env::var("FFXIV_GAME_DIR").unwrap();
|
let game_dir = env::var("FFXIV_GAME_DIR").unwrap();
|
||||||
let mut gamedata =
|
let mut gamedata =
|
||||||
physis::gamedata::GameData::from_existing(format!("{}/game", game_dir).as_str()).unwrap();
|
physis::gamedata::GameData::from_existing(Platform::Win32, format!("{}/game", game_dir).as_str()).unwrap();
|
||||||
|
|
||||||
gamedata.reload_repositories();
|
|
||||||
|
|
||||||
gamedata.extract("exd/root.exl");
|
gamedata.extract("exd/root.exl");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue