Skip to content

Commit

Permalink
Merge pull request #2 from A-c0rN/A-c0rN-SAMEDEC-PATCH
Browse files Browse the repository at this point in the history
Fix Samedec bug
  • Loading branch information
A-c0rN authored Jan 25, 2024
2 parents 0854002 + be88c49 commit c410c59
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions asmara.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,28 +243,28 @@ def __decoder__(self):
sev=severity.trace,
)
try:
if (
"samedec 0.2."
if not (
"samedec 0.1."
in Popen(["samedec", "-V"], stdout=PIPE)
.communicate()[0]
.decode("UTF-8")
.strip()
):
self.__decode__ = Popen(
["samedec", "-r", "24000"],
stdout=PIPE,
stdin=PIPE,
stderr=PIPE,
bufsize=1,
)
else:
utilities.autoPrint(
text=f"SAMEDEC is not version 0.2 or higher! Recommended version is 0.2.3.",
classType="DECODER",
sev=severity.fatal,
)
AS_MAN.killAsmara()
exit(1)
else:
self.__decode__ = Popen(
["samedec", "-r", "24000"],
stdout=PIPE,
stdin=PIPE,
stderr=PIPE,
bufsize=1,
)
except FileNotFoundError:
utilities.autoPrint(
text=f"Samedec is not installed on the computer. Please install SAMEDEC 0.2.3 or higher.",
Expand Down

0 comments on commit c410c59

Please sign in to comment.