Compare commits

...

1 Commits

Author SHA1 Message Date
Gouvernathor 34165c7b2b Turn unnecessary class into namespace 2024-03-27 00:30:17 +01:00
3 changed files with 94 additions and 100 deletions

View File

@ -538,7 +538,7 @@ init python:
# Grab data
if fromfile:
try:
imported = ImagePayload().extract(path)
imported = image_payload.extract(path)
except Exception as e:
renpy.notify("Import failed: Corrupted file.")
print(e)

View File

@ -222,7 +222,7 @@ init python:
)
displayable_to_file(d, path, size=(310, 470) )
ImagePayload().inject("_temp.png", filename, str(exported))
image_payload.inject("_temp.png", filename, str(exported))
os.remove(path)
else:
set_clipboard(exported)
@ -286,4 +286,3 @@ init python:
if self.has_type(arg):
return True
return False

File diff suppressed because it is too large Load Diff