Skip to content

Commit

Permalink
Update esplugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Ortham committed Jun 27, 2024
1 parent 1f8dea4 commit 4b74448
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ impl Plugin {
.map_err(|e| Error::IoError(path.to_path_buf(), e))?;

let mut data = esplugin::Plugin::new(game_id.to_esplugin_id(), path);
data.parse_open_file(file, true)
data.parse_reader(file, esplugin::ParseOptions::header_only())
.map_err(|e| file_error(path, e))?;

Ok(Plugin {
Expand Down Expand Up @@ -156,7 +156,7 @@ impl Plugin {

self.data = esplugin::Plugin::new(self.data.game_id(), &new_path);
self.data
.parse_file(true)
.parse_file(esplugin::ParseOptions::header_only())
.map_err(|e| file_error(self.data.path(), e))?;
let modification_time = self.modification_time();
self.set_modification_time(modification_time)?;
Expand Down

0 comments on commit 4b74448

Please sign in to comment.