Skip to content

Commit

Permalink
Fix update from folder and RSTB estimates
Browse files Browse the repository at this point in the history
  • Loading branch information
NiceneNerd committed Aug 18, 2020
1 parent 9127507 commit 2c817e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion wildbits/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def update_sarc_folder(self) -> dict:
try:
self._open_sarc, tree, modded = _sarc.open_sarc(
_sarc.update_from_folder(
self._open_sarc, Path(result if isinstance(result) else result[0])
self._open_sarc, Path(result if isinstance(result, str) else result[0])
)
)
except (FileNotFoundError, OSError, ValueError) as err:
Expand Down
2 changes: 1 addition & 1 deletion wildbits/__version__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = "1.0.4"
VERSION = "1.0.5"
USER_VERSION = (
VERSION.replace("a", " alpha ")
.replace("rc", " release candidate ")
Expand Down
4 changes: 2 additions & 2 deletions wildbits/_rstb.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ def get_rstb_value(file: Path, be: bool) -> (int, bool):
if size == 0:
ext = file.suffix
if ext in botw.extensions.AAMP_EXTS:
size = botw.rstb.guess_aamp_size(file)
size = botw.rstb.guess_aamp_size(file, be, file.suffix)
guess = True
elif ext in {".sbfres", ".bfres"}:
size = botw.rstb.guess_bfres_size(file)
size = botw.rstb.guess_bfres_size(file, be, file.name)
guess = True
return size, guess

Expand Down

0 comments on commit 2c817e6

Please sign in to comment.