Skip to content

Commit

Permalink
Preparing message appears on launch when installing add-ons. It can t…
Browse files Browse the repository at this point in the history
…ake a few seconds to extract all the files.
  • Loading branch information
10yard committed Mar 23, 2024
1 parent ebcb4b1 commit b6425d2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions dk_patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ def apply_patches_and_addons():
def install_addons():
# Install addon files when found
for addon in reversed(glob("dkafe_*_addon_*.zip")):
# Installing message...
from launch import write_text, update_screen, dk_font, RED
write_text(f"PREPARING, PLEASE WAIT... ", font=dk_font, y=0, fg=RED)
update_screen()

# Do Install
with zipfile.ZipFile(addon) as zip_ref:
zip_ref.extractall()
if ARCH != "win64":
Expand Down
2 changes: 1 addition & 1 deletion interface/shell.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ local bronze, silver, gold = 0xffcd7f32, 0xffc0c0c0, 0xffd4af37
local i_attenuation = sound.attenuation

-- Adjustments for systems
local target_time = 5
local target_time = 6
local input_frame, input_frame2 = 60, 0
local scale, quick_start, hide_targets, y_offset, x_offset, y_padding = 0, 0, 0, 0, 0, 0
local state = False
Expand Down
2 changes: 1 addition & 1 deletion launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def check_patches_available():
if not applied_patches:
# Do we need a heading?
clear_screen()
write_text(f"INSTALLING ADD-ONS...", font=dk_font, y=0, fg=RED)
write_text(f"INSTALLING ADD-ONS... ", font=dk_font, y=0, fg=RED)
write_text(f"** THE CONSOLE ADD-ON PACK WAS INSTALLED **", font=pl_font, x=0, y=239, fg=PINK)
if applied_patches or installed_addons:
jump_to_continue(0)
Expand Down

0 comments on commit b6425d2

Please sign in to comment.