Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Game list cache + apps feature update #171

Merged
merged 4 commits into from
Jan 12, 2019
Merged

Game list cache + apps feature update #171

merged 4 commits into from
Jan 12, 2019

Conversation

sp193
Copy link
Contributor

@sp193 sp193 commented Jan 12, 2019

Pull Request checklist

Note: these are not necessarily requirements

  • I reformatted the code with clang-format
  • I checked to make sure my submission worked
  • I am the author of submission or have permission from the original author
  • Requires update of the PS2SDK
  • Requires update of the gsKit
  • Others (please specify below)

Pull Request description

-Refactored apps list to allow each app to have its own configuration file, stored within its own folder, within the APP folders on game devices.

  • Implemented game list cache.
  • Fixed compile-time warning in opl.c due to missing includes for PADEMU.
  • Removed "Fix for 8.3 filename" from sysLaunchLoaderElf(), to allow longer (alternate) boot paths to be specified.

APPS now can be stored within their own folder, within the APP folders on the game devices.

Each app should have its own title.cfg file. For example, on a USB disk:

APPS/
    LaunchELF/
        BOOT.ELF
        title.cfg

title.cfg needs the following lines, at least:

    title=Your Application Title
    boot=BOOTFILENAME.ELF

The old apps system is still supported.
The startup filename display now only displays the description of the device containing the ELF. It will still show the path to the ELF, for apps listed under the old format.

As for the game list cache:

This feature allows the scanning of devices for games to be sped up, by caching the existence of games in a file.

For USB & SMB shares, the list is automatically maintained by OPL and it will cache ISO files that do not have the boot filename in their names (i.e. mygametitle.iso).

For the HDD unit, the game cache is used by default and will only be refreshed if you press the refresh button. Automatic refresh of the HDD unit is disabled because it does not make much sense; the HDD cannot be hot-plugged. This is because scanning through the HDD for games is slow, but it is impossible to check for changes in game content without scanning the HDD...


Historical discussion for the game list cache feature: #158

…file. APPS now can be stored within their own folder, within the APP folders on the game devices.

Each app should have its own title.cfg file. For example, on a USB disk:
APPS/
    LaunchELF/
        BOOT.ELF
        title.cfg

title.cfg needs the following lines, at least:
    title=Your Application Title
    boot=BOOTFILENAME.ELF

The old apps system is still supported.
The startup filename display now only displays the description of the device containing the ELF. It will still show the path to the ELF, for apps listed under the old format.
The HDD unit has a different implementation from other modes, as scanning the partitions on the HDD already takes way too long. Hence the cache is always used, unless the user manually refreshes the list or renames/deletes a game.
Not sure why it's even required, but it prevents longer (alternate) paths from being set.
@sp193 sp193 mentioned this pull request Jan 12, 2019
@ElPatas1
Copy link
Contributor

ElPatas1 commented Jan 12, 2019

@sp193, i merge this pull request or i wait for a fix of the referenced
custom ELF bug?

Best regards.

Oh, i suppose the fix can be the removed fix for 8.3 filename, i merge it.

@ElPatas1 ElPatas1 merged commit caaeafb into ps2homebrew:master Jan 12, 2019
@sp193 sp193 deleted the gamelistcache branch January 13, 2019 03:49
AKuHAK pushed a commit that referenced this pull request Sep 30, 2021
Game list cache + apps feature update
citronalco pushed a commit to citronalco/OPL-Daily-Builds that referenced this pull request Sep 10, 2023
Game list cache + apps feature update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants