Skip to content

Commit

Permalink
Add a bytton to optionally disable PSTITLEIMG
Browse files Browse the repository at this point in the history
This is only needed for certain games that need to run on very old
versions of POPS nd have it disabled by default.
There are some unresolved alignment issues in the generated EBOOT
for a small number of games that can cause issues if this is automatically
enabled.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
  • Loading branch information
sahlberg committed Aug 25, 2024
1 parent cc0ff73 commit b711662
Show file tree
Hide file tree
Showing 3 changed files with 464 additions and 445 deletions.
7 changes: 7 additions & 0 deletions pop-fe-psp.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def __init__(self, master=None):
self.pic1_tk = None
self.pkgdir = None
self.watermark = 'on'
self.nopstitleimg = 'off'
self.cdda = 'off'
self.pic0_disabled = 'off'
self.pic1_disabled = 'off'
Expand All @@ -107,6 +108,7 @@ def __init__(self, master=None):
'on_path_changed': self.on_path_changed,
'on_dir_changed': self.on_dir_changed,
'on_watermark': self.on_watermark,
'on_nopstitleimg': self.on_nopstitleimg,
'on_youtube_audio': self.on_youtube_audio,
'on_create_eboot': self.on_create_eboot,
'on_reset': self.on_reset,
Expand Down Expand Up @@ -168,6 +170,7 @@ def init_data(self):
self.pic1_tk = None
self.preview_tk = None
self.configs = []
self.builder.get_variable('nopstitleimg_variable').set(self.nopstitleimg)
self.builder.get_variable('watermark_variable').set(self.watermark)
self.builder.get_variable('cdda_variable').set(self.cdda)
for idx in range(1,6):
Expand Down Expand Up @@ -393,6 +396,9 @@ def has_transparency(img):
c.create_image(0, 0, image=self.preview_tk, anchor='nw')


def on_nopstitleimg(self):
self.nopstitleimg = self.builder.get_variable('nopstitleimg_variable').get()

def on_watermark(self):
self.watermark = self.builder.get_variable('watermark_variable').get()

Expand Down Expand Up @@ -560,6 +566,7 @@ def on_create_eboot(self):
self.pic1 if self.pic1_disabled =='off' else None,
self.cue_files, self.cu2_files, self.img_files, [],
aea_files, magic_word, subdir=self.subdir, snd0=snd0,
no_pstitleimg=True if self.nopstitleimg=='on' else False,
watermark=True if self.watermark=='on' else False,
subchannels=subchannels, manual=manual,
configs=self.configs,
Expand Down
Loading

0 comments on commit b711662

Please sign in to comment.