Full Code of xlenore/pscoverdl for AI

main 05d22468774b cached
23 files
10.4 MB
2.7M tokens
52 symbols
1 requests
Copy disabled (too large) Download .txt
Showing preview only (10,938K chars total). Download the full file to get everything.
Repository: xlenore/pscoverdl
Branch: main
Commit: 05d22468774b
Files: 23
Total size: 10.4 MB

Directory structure:
gitextract_uj__hotj/

├── .github/
│   └── workflows/
│       ├── build-release.yml
│       └── build.yml
├── .gitignore
├── LICENSE
├── README.md
├── VERSION
├── _archive/
│   ├── ps1coverdl/
│   │   └── DuckStation-cover-downloader/
│   │       ├── _dist.bat
│   │       ├── covers.py
│   │       ├── requirements.txt
│   │       └── version
│   └── ps2coverdl/
│       ├── 1.0/
│       │   ├── PCSX2 cover downloader.py
│       │   └── requirements.txt
│       └── 2.0/
│           ├── ps2coverdl.py
│           └── requirements.txt
├── build.sh
├── requirements.txt
└── src/
    ├── _dist.bat
    ├── app/
    │   └── icon.icns
    ├── gui.py
    ├── pscoverdl.py
    ├── requirements.txt
    └── resources/
        ├── GameIndex.yaml
        └── gamedb.json

================================================
FILE CONTENTS
================================================

================================================
FILE: .github/workflows/build-release.yml
================================================
name: Build & Release

on:
  push:
    tags:
      - "v*"
  workflow_dispatch:
    inputs:
      version:
        description: "Version tag (e.g. v1.3)"
        required: true

permissions:
  contents: write

jobs:
  build:
    runs-on: windows-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Set up Python
        uses: actions/setup-python@v5
        with:
          python-version: "3.11"
          cache: "pip"

      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip
          pip install pyinstaller
          pip install -r requirements.txt

      - name: Build executable
        working-directory: src
        run: |
          pyinstaller "gui.py" --onefile --clean --name pscoverdl --distpath "dist" --icon="app/icon.ico" --add-data="resources;resources" --add-data="icons;icons" --add-data="app;app"

      - name: Determine version tag
        id: version
        shell: bash
        run: |
          if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
            echo "tag=${{ github.event.inputs.version }}" >> "$GITHUB_OUTPUT"
          else
            echo "tag=${GITHUB_REF_NAME}" >> "$GITHUB_OUTPUT"
          fi

      - name: Create GitHub Release
        uses: softprops/action-gh-release@v2
        with:
          tag_name: ${{ steps.version.outputs.tag }}
          name: ${{ steps.version.outputs.tag }}
          generate_release_notes: true
          files: src/dist/pscoverdl.exe


================================================
FILE: .github/workflows/build.yml
================================================
name: Build PSCoverDL

on:
  push:
    tags:
      - "v*"          # trigger on version tags, e.g. v1.2
  workflow_dispatch:  # allow manual runs from the Actions tab

jobs:
  build:
    strategy:
      fail-fast: false
      matrix:
        include:
          - os: windows-latest
            name: Windows
            artifact: pscoverdl-windows

          - os: macos-latest
            name: macOS
            artifact: pscoverdl-macos

          - os: ubuntu-latest
            name: Linux
            artifact: pscoverdl-linux

    runs-on: ${{ matrix.os }}
    name: Build on ${{ matrix.name }}

    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      # -----------------------------------------------------------------------
      # Linux only: install Tkinter system dependency.
      # Tkinter is not bundled with the GitHub Actions Python on Ubuntu.
      # -----------------------------------------------------------------------
      - name: Install Tkinter (Linux only)
        if: matrix.os == 'ubuntu-latest'
        run: sudo apt-get update && sudo apt-get install -y python3-tk

      - name: Set up Python
        uses: actions/setup-python@v5
        with:
          python-version: "3.11"

      - name: Install dependencies
        run: pip install -r requirements.txt pyinstaller certifi

      # -----------------------------------------------------------------------
      # macOS only: convert icon.png → icon.icns for proper Finder/Dock icon.
      # Uses macOS's built-in iconutil — no extra dependencies needed.
      # -----------------------------------------------------------------------
      - name: Generate .icns icon (macOS only)
        if: matrix.os == 'macos-latest'
        run: |
          mkdir -p src/app/icon.iconset
          python3 - <<'EOF'
          from PIL import Image
          import os
          src = "src/app/icon.png"
          sizes = [16, 32, 64, 128, 256, 512]
          for s in sizes:
              img = Image.open(src).resize((s, s), Image.LANCZOS)
              img.save(f"src/app/icon.iconset/icon_{s}x{s}.png")
              img2 = Image.open(src).resize((s*2, s*2), Image.LANCZOS)
              img2.save(f"src/app/icon.iconset/icon_{s}x{s}@2x.png")
          EOF
          iconutil -c icns src/app/icon.iconset -o src/app/icon.icns

      # -----------------------------------------------------------------------
      # Windows build
      # -----------------------------------------------------------------------
      - name: Build with PyInstaller (Windows)
        if: matrix.os == 'windows-latest'
        shell: pwsh
        run: |
          $CTK_PATH = python -c "import customtkinter, os; print(os.path.dirname(customtkinter.__file__))"
          pyinstaller `
            --noconfirm `
            --onedir `
            --windowed `
            --name pscoverdl `
            --add-data "$CTK_PATH;customtkinter" `
            --add-data "src/resources;resources" `
            --add-data "src/icons;icons" `
            --add-data "src/app;app" `
            src/gui.py

      # -----------------------------------------------------------------------
      # macOS build — uses .icns for dock/Finder icon, uploads only the .app
      # -----------------------------------------------------------------------
      - name: Build with PyInstaller (macOS)
        if: matrix.os == 'macos-latest'
        shell: bash
        run: |
          CTK_PATH=$(python3 -c "import customtkinter, os; print(os.path.dirname(customtkinter.__file__))")
          pyinstaller \
            --noconfirm \
            --onedir \
            --windowed \
            --name pscoverdl \
            --icon src/app/icon.icns \
            --osx-bundle-identifier com.pscoverdl.app \
            --add-data "$CTK_PATH:customtkinter" \
            --add-data "src/resources:resources" \
            --add-data "src/icons:icons" \
            --add-data "src/app:app" \
            src/gui.py

      - name: List dist output (macOS debug)
        if: matrix.os == 'macos-latest'
        shell: bash
        run: find dist/ -maxdepth 3 -print

      # PyInstaller should produce pscoverdl.app automatically with --windowed
      # on macOS. If it doesn't (headless CI quirk), wrap the onedir manually.
      - name: Ensure .app bundle exists (macOS)
        if: matrix.os == 'macos-latest'
        shell: bash
        run: |
          if [ ! -d "dist/pscoverdl.app" ]; then
            echo ".app not found — wrapping onedir into .app bundle manually"
            APP="dist/pscoverdl.app/Contents/MacOS"
            mkdir -p "$APP"
            cp -r dist/pscoverdl/* "$APP/"
            # Minimal Info.plist so macOS recognises it as an app
            cat > dist/pscoverdl.app/Contents/Info.plist <<'PLIST'
          <?xml version="1.0" encoding="UTF-8"?>
          <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
            "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
          <plist version="1.0">
          <dict>
            <key>CFBundleName</key>
            <string>pscoverdl</string>
            <key>CFBundleExecutable</key>
            <string>pscoverdl</string>
            <key>CFBundleIdentifier</key>
            <string>com.pscoverdl.app</string>
            <key>CFBundleVersion</key>
            <string>1.0</string>
            <key>CFBundlePackageType</key>
            <string>APPL</string>
          </dict>
          </plist>
          PLIST
            echo ".app bundle created manually"
          else
            echo ".app bundle found at dist/pscoverdl.app"
          fi

      # -----------------------------------------------------------------------
      # Linux build
      # -----------------------------------------------------------------------
      - name: Build with PyInstaller (Linux)
        if: matrix.os == 'ubuntu-latest'
        shell: bash
        run: |
          CTK_PATH=$(python3 -c "import customtkinter, os; print(os.path.dirname(customtkinter.__file__))")
          pyinstaller \
            --noconfirm \
            --onedir \
            --windowed \
            --name pscoverdl \
            --add-data "$CTK_PATH:customtkinter" \
            --add-data "src/resources:resources" \
            --add-data "src/icons:icons" \
            --add-data "src/app:app" \
            src/gui.py

      # -----------------------------------------------------------------------
      # Upload artifacts.
      # macOS: zip the .app first so upload-artifact preserves bundle structure.
      #        (upload-artifact v4 walks into a directory path, flattening .app)
      # Windows/Linux: the full onedir folder.
      # -----------------------------------------------------------------------
      - name: Zip .app bundle (macOS)
        if: matrix.os == 'macos-latest'
        shell: bash
        run: |
          cd dist
          zip -r pscoverdl-macos.zip pscoverdl.app

      - name: Upload artifact (macOS — zipped .app)
        if: matrix.os == 'macos-latest'
        uses: actions/upload-artifact@v4
        with:
          name: ${{ matrix.artifact }}
          path: dist/pscoverdl-macos.zip
          if-no-files-found: error

      - name: Zip artifact (Windows)
        if: matrix.os == 'windows-latest'
        shell: pwsh
        run: |
          Compress-Archive -Path dist/pscoverdl/* -DestinationPath dist/pscoverdl-windows.zip

      - name: Tar artifact (Linux)
        if: matrix.os == 'ubuntu-latest'
        shell: bash
        run: |
          cd dist
          tar -czf pscoverdl-linux.tar.gz pscoverdl/

      - name: Upload artifact (Windows)
        if: matrix.os == 'windows-latest'
        uses: actions/upload-artifact@v4
        with:
          name: ${{ matrix.artifact }}
          path: dist/pscoverdl-windows.zip
          if-no-files-found: error

      - name: Upload artifact (Linux)
        if: matrix.os == 'ubuntu-latest'
        uses: actions/upload-artifact@v4
        with:
          name: ${{ matrix.artifact }}
          path: dist/pscoverdl-linux.tar.gz
          if-no-files-found: error

  # -------------------------------------------------------------------------
  # Release job — runs only on version tags, after all builds succeed.
  # Downloads the built artifacts and attaches them to a GitHub Release.
  # -------------------------------------------------------------------------
  release:
    name: Create GitHub Release
    needs: build
    runs-on: ubuntu-latest
    if: startsWith(github.ref, 'refs/tags/v')
    permissions:
      contents: write

    steps:
      - name: Download all artifacts
        uses: actions/download-artifact@v4
        with:
          path: artifacts/

      - name: List downloaded artifacts
        run: find artifacts/ -type f

      - name: Create release and upload files
        uses: softprops/action-gh-release@v2
        with:
          name: PSCoverDL ${{ github.ref_name }}
          draft: false
          prerelease: false
          files: |
            artifacts/pscoverdl-macos/pscoverdl-macos.zip
            artifacts/pscoverdl-windows/pscoverdl-windows.zip
            artifacts/pscoverdl-linux/pscoverdl-linux.tar.gz


================================================
FILE: .gitignore
================================================
pscoverdl.ini

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
#  Usually these files are written by a python script from a template
#  before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
#   For a library or package, you might want to ignore these files since the code is
#   intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
#   According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
#   However, in case of collaboration, if having platform-specific dependencies or dependencies
#   having no cross-platform support, pipenv may install dependencies that don't work, or not
#   install all needed dependencies.
#Pipfile.lock

# poetry
#   Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
#   This is especially recommended for binary packages to ensure reproducibility, and is more
#   commonly ignored for libraries.
#   https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
#   Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
#   pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
#   in version control.
#   https://pdm.fming.dev/#use-with-ide
.pdm.toml

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
#  JetBrains specific template is maintained in a separate JetBrains.gitignore that can
#  be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
#  and can be added to the global gitignore or merged into this file.  For a more nuclear
#  option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

================================================
FILE: LICENSE
================================================
                    GNU GENERAL PUBLIC LICENSE
                       Version 3, 29 June 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

                            Preamble

  The GNU General Public License is a free, copyleft license for
software and other kinds of works.

  The licenses for most software and other practical works are designed
to take away your freedom to share and change the works.  By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.  We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors.  You can apply it to
your programs, too.

  When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.

  To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights.  Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.

  For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received.  You must make sure that they, too, receive
or can get the source code.  And you must show them these terms so they
know their rights.

  Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.

  For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software.  For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.

  Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so.  This is fundamentally incompatible with the aim of
protecting users' freedom to change the software.  The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable.  Therefore, we
have designed this version of the GPL to prohibit the practice for those
products.  If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.

  Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary.  To prevent this, the GPL assures that
patents cannot be used to render the program non-free.

  The precise terms and conditions for copying, distribution and
modification follow.

                       TERMS AND CONDITIONS

  0. Definitions.

  "This License" refers to version 3 of the GNU General Public License.

  "Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.

  "The Program" refers to any copyrightable work licensed under this
License.  Each licensee is addressed as "you".  "Licensees" and
"recipients" may be individuals or organizations.

  To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy.  The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.

  A "covered work" means either the unmodified Program or a work based
on the Program.

  To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy.  Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.

  To "convey" a work means any kind of propagation that enables other
parties to make or receive copies.  Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.

  An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License.  If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.

  1. Source Code.

  The "source code" for a work means the preferred form of the work
for making modifications to it.  "Object code" means any non-source
form of a work.

  A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.

  The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form.  A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.

  The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities.  However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work.  For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.

  The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.

  The Corresponding Source for a work in source code form is that
same work.

  2. Basic Permissions.

  All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met.  This License explicitly affirms your unlimited
permission to run the unmodified Program.  The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work.  This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.

  You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force.  You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright.  Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.

  Conveying under any other circumstances is permitted solely under
the conditions stated below.  Sublicensing is not allowed; section 10
makes it unnecessary.

  3. Protecting Users' Legal Rights From Anti-Circumvention Law.

  No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.

  When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.

  4. Conveying Verbatim Copies.

  You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.

  You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.

  5. Conveying Modified Source Versions.

  You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:

    a) The work must carry prominent notices stating that you modified
    it, and giving a relevant date.

    b) The work must carry prominent notices stating that it is
    released under this License and any conditions added under section
    7.  This requirement modifies the requirement in section 4 to
    "keep intact all notices".

    c) You must license the entire work, as a whole, under this
    License to anyone who comes into possession of a copy.  This
    License will therefore apply, along with any applicable section 7
    additional terms, to the whole of the work, and all its parts,
    regardless of how they are packaged.  This License gives no
    permission to license the work in any other way, but it does not
    invalidate such permission if you have separately received it.

    d) If the work has interactive user interfaces, each must display
    Appropriate Legal Notices; however, if the Program has interactive
    interfaces that do not display Appropriate Legal Notices, your
    work need not make them do so.

  A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit.  Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.

  6. Conveying Non-Source Forms.

  You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:

    a) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by the
    Corresponding Source fixed on a durable physical medium
    customarily used for software interchange.

    b) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by a
    written offer, valid for at least three years and valid for as
    long as you offer spare parts or customer support for that product
    model, to give anyone who possesses the object code either (1) a
    copy of the Corresponding Source for all the software in the
    product that is covered by this License, on a durable physical
    medium customarily used for software interchange, for a price no
    more than your reasonable cost of physically performing this
    conveying of source, or (2) access to copy the
    Corresponding Source from a network server at no charge.

    c) Convey individual copies of the object code with a copy of the
    written offer to provide the Corresponding Source.  This
    alternative is allowed only occasionally and noncommercially, and
    only if you received the object code with such an offer, in accord
    with subsection 6b.

    d) Convey the object code by offering access from a designated
    place (gratis or for a charge), and offer equivalent access to the
    Corresponding Source in the same way through the same place at no
    further charge.  You need not require recipients to copy the
    Corresponding Source along with the object code.  If the place to
    copy the object code is a network server, the Corresponding Source
    may be on a different server (operated by you or a third party)
    that supports equivalent copying facilities, provided you maintain
    clear directions next to the object code saying where to find the
    Corresponding Source.  Regardless of what server hosts the
    Corresponding Source, you remain obligated to ensure that it is
    available for as long as needed to satisfy these requirements.

    e) Convey the object code using peer-to-peer transmission, provided
    you inform other peers where the object code and Corresponding
    Source of the work are being offered to the general public at no
    charge under subsection 6d.

  A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.

  A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling.  In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage.  For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product.  A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.

  "Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source.  The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.

  If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information.  But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).

  The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed.  Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.

  Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.

  7. Additional Terms.

  "Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law.  If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.

  When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it.  (Additional permissions may be written to require their own
removal in certain cases when you modify the work.)  You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.

  Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:

    a) Disclaiming warranty or limiting liability differently from the
    terms of sections 15 and 16 of this License; or

    b) Requiring preservation of specified reasonable legal notices or
    author attributions in that material or in the Appropriate Legal
    Notices displayed by works containing it; or

    c) Prohibiting misrepresentation of the origin of that material, or
    requiring that modified versions of such material be marked in
    reasonable ways as different from the original version; or

    d) Limiting the use for publicity purposes of names of licensors or
    authors of the material; or

    e) Declining to grant rights under trademark law for use of some
    trade names, trademarks, or service marks; or

    f) Requiring indemnification of licensors and authors of that
    material by anyone who conveys the material (or modified versions of
    it) with contractual assumptions of liability to the recipient, for
    any liability that these contractual assumptions directly impose on
    those licensors and authors.

  All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10.  If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term.  If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.

  If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.

  Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.

  8. Termination.

  You may not propagate or modify a covered work except as expressly
provided under this License.  Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).

  However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.

  Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.

  Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License.  If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.

  9. Acceptance Not Required for Having Copies.

  You are not required to accept this License in order to receive or
run a copy of the Program.  Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance.  However,
nothing other than this License grants you permission to propagate or
modify any covered work.  These actions infringe copyright if you do
not accept this License.  Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.

  10. Automatic Licensing of Downstream Recipients.

  Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License.  You are not responsible
for enforcing compliance by third parties with this License.

  An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations.  If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.

  You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License.  For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.

  11. Patents.

  A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based.  The
work thus licensed is called the contributor's "contributor version".

  A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version.  For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.

  Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.

  In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement).  To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.

  If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients.  "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.

  If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.

  A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License.  You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.

  Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.

  12. No Surrender of Others' Freedom.

  If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all.  For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.

  13. Use with the GNU Affero General Public License.

  Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work.  The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.

  14. Revised Versions of this License.

  The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time.  Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

  Each version is given a distinguishing version number.  If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation.  If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.

  If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.

  Later license versions may give you additional or different
permissions.  However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.

  15. Disclaimer of Warranty.

  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

  16. Limitation of Liability.

  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.

  17. Interpretation of Sections 15 and 16.

  If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.

                     END OF TERMS AND CONDITIONS

            How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

  To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    <one line to give the program's name and a brief idea of what it does.>
    Copyright (C) <year>  <name of author>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

  If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

    <program>  Copyright (C) <year>  <name of author>
    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
    This is free software, and you are welcome to redistribute it
    under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License.  Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".

  You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.

  The GNU General Public License does not permit incorporating your program
into proprietary programs.  If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library.  If this is what you want to do, use the GNU Lesser General
Public License instead of this License.  But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.


================================================
FILE: README.md
================================================
PSCoverDL

![image](https://github.com/xlenore/pscoverdl/assets/57191159/4c4b3042-85e4-45b5-8f1b-48a6f00a93ea)

### Features

- Portable
- GUI
- Settings file
- Multithreading

### How to use

- Select the desired emulator.
- Choose the output folder for covers (usually pcsx2/covers).
- Select the "gamelist.cache" file (pcsx2/cache).
- Choose your desired cover type.
- Press the start download button.

### Mac OS and Linux support now available 
<img width="1124" height="980" alt="image" src="https://github.com/user-attachments/assets/72f8130f-fddd-4b2d-a571-5a3dee8b1eb3" />

- MacOS tested and fully functioning
- Linux requires testing
- Credit @alexauga

### Credits
- [PCSX2](https://github.com/PCSX2/pcsx2 "PCSX2") and [Duckstation](https://github.com/stenzek/duckstation "Dckstation") and **everyone** involved in compiling all the titles into a [database](https://github.com/xlenore/pscoverdl/tree/main/src/resources "database").
- Thanks to all the [ps2-covers](https://github.com/xlenore/ps2-covers "ps2-covers") and [psx-covers](https://github.com/xlenore/psx-covers "psx-covers") contributors.
- @Bezbashni and @Zorklis for all their help.
- @andercard0 for your amazing 3D covers.


================================================
FILE: VERSION
================================================
1.1

================================================
FILE: _archive/ps1coverdl/DuckStation-cover-downloader/_dist.bat
================================================
pyinstaller "DuckStation cover downloader.py" --onefile --clean --distpath ""
@RD /S /Q "build"

================================================
FILE: _archive/ps1coverdl/DuckStation-cover-downloader/covers.py
================================================
"""
⣞⢽⢪⢣⢣⢣⢫⡺⡵⣝⡮⣗⢷⢽⢽⢽⣮⡷⡽⣜⣜⢮⢺⣜⢷⢽⢝⡽⣝
⠸⡸⠜⠕⠕⠁⢁⢇⢏⢽⢺⣪⡳⡝⣎⣏⢯⢞⡿⣟⣷⣳⢯⡷⣽⢽⢯⣳⣫⠇
⠀⠀⢀⢀⢄⢬⢪⡪⡎⣆⡈⠚⠜⠕⠇⠗⠝⢕⢯⢫⣞⣯⣿⣻⡽⣏⢗⣗⠏⠀
⠀⠪⡪⡪⣪⢪⢺⢸⢢⢓⢆⢤⢀⠀⠀⠀⠀⠈⢊⢞⡾⣿⡯⣏⢮⠷⠁⠀⠀
⠀⠀⠀⠈⠊⠆⡃⠕⢕⢇⢇⢇⢇⢇⢏⢎⢎⢆⢄⠀⢑⣽⣿⢝⠲⠉⠀⠀⠀⠀
⠀⠀⠀⠀⠀⡿⠂⠠⠀⡇⢇⠕⢈⣀⠀⠁⠡⠣⡣⡫⣂⣿⠯⢪⠰⠂⠀⠀⠀⠀
⠀⠀⠀⠀⡦⡙⡂⢀⢤⢣⠣⡈⣾⡃⠠⠄⠀⡄⢱⣌⣶⢏⢊⠂⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⢝⡲⣜⡮⡏⢎⢌⢂⠙⠢⠐⢀⢘⢵⣽⣿⡿⠁⠁⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠨⣺⡺⡕⡕⡱⡑⡆⡕⡅⡕⡜⡼⢽⡻⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⣼⣳⣫⣾⣵⣗⡵⡱⡡⢣⢑⢕⢜⢕⡝⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⣴⣿⣾⣿⣿⣿⡿⡽⡑⢌⠪⡢⡣⣣⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⡟⡾⣿⢿⢿⢵⣽⣾⣼⣘⢸⢸⣞⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠁⠇⠡⠩⡫⢿⣝⡻⡮⣒⢽⠋⠀⠀⠀
    
     NO COVERS?
"""


import re
from time import sleep
from urllib.error import HTTPError
from termcolor import colored
from colorama import init
import urllib.request
import os, sys, ssl
import platform

ssl._create_default_https_context = ssl._create_unverified_context
COVERS_URL = "https://raw.githubusercontent.com/xlenore/psx-covers/main/covers/"
VERSION_URL = "https://raw.githubusercontent.com/xlenore/psx-covers/main/DuckStation-cover-downloader/version"
VERSION = 1.1


def path():
    if getattr(sys, "frozen", False):
        path = os.path.dirname(os.path.realpath(sys.executable))
    elif __file__:
        path = os.path.dirname(__file__)
    return path


def check_version():
    try:
        version = urllib.request.urlopen(VERSION_URL)
        if float(version.read().decode("utf-8").replace("\n", "")) != VERSION:
            print("[LOG]:", colored(f"New update available!\n", "green"))
    except:
        pass


def serial_list():  # Get game serial
    with open(
        f'{os.path.join(path(), "cache", "gamelist.cache")}', errors="ignore"
    ) as file:
        regex = re.compile("(\w{4}-\d{5})").findall(file.read())
        serial_list = list(dict.fromkeys(regex))
        print("[LOG]:", colored(f"Found {len(serial_list)} games", "green"))
        if len(serial_list) == 0:
            print("[ERROR]:", colored(f"You have 0 games installed", "red"))
            input()
            quit()
        return serial_list


def existing_covers():
    covers = [
        w.replace(".jpg", "") for w in os.listdir(f'{os.path.join(path(), "covers")}')
    ]

    return covers


def download_covers(serial_list: list):  # Download Covers
    existing_cover = existing_covers()
    for i in range(len(serial_list)):
        game_serial = serial_list[i]
        if game_serial not in existing_cover:
            print("[LOG]:", colored(f"Downloading {game_serial} cover...", "green"))
            try:
                urllib.request.urlretrieve(
                    f"{COVERS_URL}{game_serial}.jpg",
                    f'{os.path.join("covers", "{game_serial}.jpg")}',
                )
                sleep(0.1)
            except HTTPError:
                print(
                    "[WARNING]",
                    colored(f"{game_serial} Not found. Skipping...", "yellow"),
                )
        else:
            print(
                "[WARNING]:",
                colored(
                    f"{game_serial} already exist in \covers. Skipping...", "yellow"
                ),
            )


def set_terminal_title(title):
    if platform.system() == "Windows":
        os.system(f"title {title}")


def run():
    set_terminal_title(f"DuckStation Cover Downloader {VERSION}")
    # check_version()
    download_covers(serial_list())
    print(
        "[LOG]:",
        colored(
            f"Done!, please report Not found | Low quality | Wrong covers in GitHub.",
            "green",
        ),
    )
    input()


init()
run()


================================================
FILE: _archive/ps1coverdl/DuckStation-cover-downloader/requirements.txt
================================================
colorama==0.4.4
PyYAML==6.0
termcolor==1.1.0

================================================
FILE: _archive/ps1coverdl/DuckStation-cover-downloader/version
================================================
1.1

================================================
FILE: _archive/ps2coverdl/1.0/PCSX2 cover downloader.py
================================================
"""
⣞⢽⢪⢣⢣⢣⢫⡺⡵⣝⡮⣗⢷⢽⢽⢽⣮⡷⡽⣜⣜⢮⢺⣜⢷⢽⢝⡽⣝
⠸⡸⠜⠕⠕⠁⢁⢇⢏⢽⢺⣪⡳⡝⣎⣏⢯⢞⡿⣟⣷⣳⢯⡷⣽⢽⢯⣳⣫⠇
⠀⠀⢀⢀⢄⢬⢪⡪⡎⣆⡈⠚⠜⠕⠇⠗⠝⢕⢯⢫⣞⣯⣿⣻⡽⣏⢗⣗⠏⠀
⠀⠪⡪⡪⣪⢪⢺⢸⢢⢓⢆⢤⢀⠀⠀⠀⠀⠈⢊⢞⡾⣿⡯⣏⢮⠷⠁⠀⠀
⠀⠀⠀⠈⠊⠆⡃⠕⢕⢇⢇⢇⢇⢇⢏⢎⢎⢆⢄⠀⢑⣽⣿⢝⠲⠉⠀⠀⠀⠀
⠀⠀⠀⠀⠀⡿⠂⠠⠀⡇⢇⠕⢈⣀⠀⠁⠡⠣⡣⡫⣂⣿⠯⢪⠰⠂⠀⠀⠀⠀
⠀⠀⠀⠀⡦⡙⡂⢀⢤⢣⠣⡈⣾⡃⠠⠄⠀⡄⢱⣌⣶⢏⢊⠂⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⢝⡲⣜⡮⡏⢎⢌⢂⠙⠢⠐⢀⢘⢵⣽⣿⡿⠁⠁⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠨⣺⡺⡕⡕⡱⡑⡆⡕⡅⡕⡜⡼⢽⡻⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⣼⣳⣫⣾⣵⣗⡵⡱⡡⢣⢑⢕⢜⢕⡝⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⣴⣿⣾⣿⣿⣿⡿⡽⡑⢌⠪⡢⡣⣣⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⡟⡾⣿⢿⢿⢵⣽⣾⣼⣘⢸⢸⣞⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠁⠇⠡⠩⡫⢿⣝⡻⡮⣒⢽⠋⠀⠀⠀

     NO COVERS?
"""


import os
import re
import sys
import urllib.request
from time import sleep
from urllib.error import HTTPError

import yaml
from colorama import init
from termcolor import colored

COVERS_URL = 'https://raw.githubusercontent.com/xlenore/ps2-covers/main/covers/'
VERSION_URL = 'https://raw.githubusercontent.com/LouiseSulyvahn/PCSX2_Cover_Downloader/main/version'
VERSION = 1.5


def path():
    if getattr(sys, 'frozen', False):
        path = os.path.dirname(os.path.realpath(sys.executable))
    elif __file__:
        path = os.path.dirname(__file__)
    return path


def check_version():
    try:
        version = urllib.request.urlopen(VERSION_URL)
        if float(version.read().decode('utf-8').replace('\n','')) != VERSION:
            print('[LOG]:', colored(f'New update available!\n', 'green'))
    except:
        pass


def serial_list():  # Get game serial
    with open(f'{path()}\cache\gamelist.cache', errors='ignore') as file:
        regex = re.compile('(\w{4}-\d{5})').findall(file.read())
        serial_list = list(dict.fromkeys(regex))
        print('[LOG]:', colored(f'Found {len(serial_list)} games', 'green'))
        if len(serial_list) == 0:
            print('[ERROR]:', colored(f'You have 0 games installed', 'red'))
            input()
            quit()
        return serial_list


def name_list():  # Get game name
    name_list = {}
    with open(f'{path()}\/resources\GameIndex.yaml', encoding='utf-8-sig') as file:
        for key, value in yaml.load(file, Loader=yaml.CBaseLoader).items():
            name_list[key] = value["name"]
    return name_list


def existing_covers():
    covers = [w.replace('.jpg', '') for w in os.listdir(f'{path()}\covers')]
    return covers


def serial_to_name(name_list, serial:str):  # Get game name using serial
    try:
        return name_list[serial]
    except KeyError:
        print('[WARNING]:', colored(f'{serial} Not found. Skipping...', 'yellow'))
        return None


def download_covers(serial_list:list, name_list):  # Download Covers
    if os.path.exists(f'{path()}\covers') == False:
        os.makedirs(f'{path()}\covers')
    existing_cover = existing_covers()
    for i in range(len(serial_list)):
        game_serial = serial_list[i]
        game_name = serial_to_name(name_list, game_serial)
        if game_name != None:
            if game_serial not in existing_cover:
                print('[LOG]:', colored(f'Downloading {game_serial} | {game_name} cover...', 'green'))
                try:
                    urllib.request.urlretrieve(f'{COVERS_URL}{game_serial}.jpg', f'covers/{game_serial}.jpg')
                    sleep(0.1)
                except HTTPError:
                    print('[WARNING]:', colored(f'{game_serial} | {game_name} Not found. Skipping...', 'yellow'))
            else:
                print('[WARNING]:', colored(f'{game_serial} | {game_name} already exist in /covers. Skipping...', 'yellow'))


def run():
    #check_version()
    download_covers(serial_list(), name_list())
    print('[LOG]:', colored(f'Done!, please report Not found | Low quality | Wrong covers in GitHub.', 'green'))
    input()


os.system(f'title PCSX2 Cover Downloader {VERSION}')
init()
run()

================================================
FILE: _archive/ps2coverdl/1.0/requirements.txt
================================================
colorama==0.4.4
PyYAML==6.0
termcolor==1.1.0

================================================
FILE: _archive/ps2coverdl/2.0/ps2coverdl.py
================================================
import argparse
import configparser
import os
import re
import sys
import urllib.request
from time import sleep
from tkinter import filedialog, messagebox
from urllib.error import HTTPError

import yaml
from termcolor import colored
from tqdm import tqdm

COVERS_URL = "https://raw.githubusercontent.com/xlenore/ps2-covers/main/covers/"
VERSION = "2.0"


def set_console_title():
    if os.name == "nt":  # Windows
        os.system(f"title PS2CoverDL {VERSION}")
    else:  # Linux
        os.system(f"echo -ne '\\033]0;PS2CoverDL {VERSION}\\007'")


def get_config():
    config = configparser.ConfigParser()
    if os.path.exists("ps2coverdl.ini"):
        config.read("ps2coverdl.ini")
    return config


def save_config(config):
    with open("ps2coverdl.ini", "w") as configfile:
        config.write(configfile)
    messagebox.showinfo(
        "PS2CoverDL",
        "The configuration was completed.\n\nIn case you want to change the configuration, delete the ps2coverdl.ini file.",
    )


def get_pcsx2_file(config):
    pcsx2_file = config.get("Settings", "pcsx2_file", fallback=None)
    if pcsx2_file is None:
        pcsx2_file = filedialog.askopenfilename(
            title="Select the pcsx2-qtx64-avx2.exe file",
            filetypes=(
                ("Executable files", "pcsx2-qtx64-avx2.exe"),
                ("All files", "*.*"),
            ),
        )
        if pcsx2_file == "" or pcsx2_file is None:
            sys.exit(0)
        if not config.has_section("Settings"):
            config.add_section("Settings")
        config.set("Settings", "pcsx2_file", pcsx2_file)
    return pcsx2_file


def serial_list(games_file):
    gamelist_cache = os.path.join(
        os.path.dirname(games_file), "cache", "gamelist.cache"
    )
    if not os.path.exists(gamelist_cache):
        print(colored("[ERROR]: gamelist.cache file not found", "red"))
        input()
        sys.exit(1)
    with open(gamelist_cache, errors="ignore") as file:
        regex = re.findall(r"(\w{4}-\d{5})", file.read())
        serial_list = list(set(regex))
        print(colored(f"[LOG]: {len(serial_list)} games found", "green"))
        if not serial_list:
            print(colored("[ERROR]: No games found", "red"))
            input()
            sys.exit(1)
        return serial_list


def name_list(games_file):
    name_list = {}
    gameindex_file = os.path.join(
        os.path.dirname(games_file), "resources", "GameIndex.yaml"
    )
    if not os.path.exists(gameindex_file):
        print(colored("[ERROR]: GameIndex.yaml file not found", "red"))
        input()
        sys.exit(1)
    with open(gameindex_file, encoding="utf-8-sig") as file:
        name_list = {
            key: value["name"]
            for key, value in yaml.load(file, Loader=yaml.CBaseLoader).items()
        }
    return name_list


def existing_covers(covers_dir):
    covers = [
        w.replace(".jpg", "") for w in os.listdir(covers_dir) if w.endswith(".jpg")
    ]
    return covers


def serial_to_name(name_list, serial):
    return name_list.get(serial, None)


def download_covers(serial_list, name_list, covers_dir, use_ssl):
    if not os.path.exists(covers_dir):
        os.makedirs(covers_dir)
    existing_cover = existing_covers(covers_dir)
    for game_serial in tqdm(
        serial_list,
        desc="Downloading covers",
        unit="cover",
        ncols=50,
        bar_format="{l_bar}{bar}| {n_fmt}/{total_fmt}",
    ):
        game_name = serial_to_name(name_list, game_serial)
        if game_name is not None:
            if game_serial not in existing_cover:
                tqdm.write(colored(f"{game_serial} | {game_name}", "green"))
                try:
                    url = f"{COVERS_URL}{game_serial}.jpg"
                    if not use_ssl:
                        url = url.replace("https://", "http://")
                        urllib.request.ssl._create_default_https_context = (
                            urllib.request.ssl._create_unverified_context
                        )
                    urllib.request.urlretrieve(
                        url, os.path.join(covers_dir, f"{game_serial}.jpg")
                    )
                    sleep(0.1)
                except HTTPError:
                    tqdm.write(
                        colored(
                            f"[{game_serial} | {game_name}] not found. Skipping...",
                            "yellow",
                        )
                    )
            else:
                tqdm.write(
                    colored(
                        f"[{game_serial} | {game_name}] already exists. Skipping...",
                        "yellow",
                    )
                )


def run(games_file, covers_dir, use_ssl):
    download_covers(serial_list(games_file), name_list(games_file), covers_dir, use_ssl)
    print(
        colored(
            f"[LOG]: Done! Please report Not found | Low quality | Wrong covers on GitHub.",
            "green",
        )
    )
    input()



if __name__ == "__main__":
    parser = argparse.ArgumentParser(description="PS2CoverDL CLI")
    parser.add_argument(
        "-dir",
        help="Specify the directory where the pcsx2-qtx64-avx2.exe file is located",
    )
    parser.add_argument(
        "-use_ssl", action="store", default=None, help="Use SSL (https)"
    )
    args = parser.parse_args()
    if args.dir:
        games_file_dir = args.dir
        games_file = os.path.join(games_file_dir, "pcsx2-qtx64-avx2.exe")
        covers_dir = os.path.join(games_file_dir, "covers")
    else:
        set_console_title()
        config = get_config()
        games_file = get_pcsx2_file(config)
        covers_dir = os.path.join(os.path.dirname(games_file), "covers")
        use_ssl = config.getboolean("Settings", "use_ssl", fallback=False)
        if not config.has_option("Settings", "use_ssl"):
            result = messagebox.askyesno(
                "Use SSL",
                "Do you want to use SSL (https)?\n\nRecommended: Yes\n\nIn case you have problems with SSL, select No.",
            )
            use_ssl = result
            config.set("Settings", "use_ssl", str(use_ssl))
            save_config(config)
        
    use_ssl = args.use_ssl
    if use_ssl is None:
        use_ssl = True
    elif use_ssl.lower() == "false":
        use_ssl = False

    run(games_file, covers_dir, use_ssl)


================================================
FILE: _archive/ps2coverdl/2.0/requirements.txt
================================================
colorama==0.4.6
PyYAML==6.0.1
termcolor==2.3.0
tqdm==4.64.1


================================================
FILE: build.sh
================================================
#!/usr/bin/env bash
# ---------------------------------------------------------------------------
# build.sh — PSCoverDL build script for macOS and Linux
#
# Produces a self-contained app in dist/pscoverdl/
#
# Usage:
#   chmod +x build.sh
#   ./build.sh
# ---------------------------------------------------------------------------

set -euo pipefail

# Resolve the directory this script lives in (repo root)
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
SRC_DIR="$SCRIPT_DIR/src"

echo "[build] Detecting platform..."
PLATFORM="$(uname -s)"
case "$PLATFORM" in
    Darwin) echo "[build] macOS detected" ;;
    Linux)  echo "[build] Linux detected" ;;
    *)      echo "[build] Unsupported platform: $PLATFORM"; exit 1 ;;
esac

# ---------------------------------------------------------------------------
# Locate the customtkinter package directory so PyInstaller can bundle it.
# PyInstaller does not auto-include customtkinter's data files (.json, .otf).
# ---------------------------------------------------------------------------
CTK_PATH="$(python3 -c "import customtkinter; import os; print(os.path.dirname(customtkinter.__file__))")"
echo "[build] customtkinter found at: $CTK_PATH"

# ---------------------------------------------------------------------------
# macOS only: generate .icns icon from icon.png for proper Finder/Dock icon
# ---------------------------------------------------------------------------
if [ "$PLATFORM" = "Darwin" ]; then
    echo "[build] Generating .icns icon..."
    mkdir -p "$SRC_DIR/app/icon.iconset"
    python3 - <<EOF
from PIL import Image
src = "$SRC_DIR/app/icon.png"
sizes = [16, 32, 64, 128, 256, 512]
for s in sizes:
    img = Image.open(src).resize((s, s), Image.LANCZOS)
    img.save(f"$SRC_DIR/app/icon.iconset/icon_{s}x{s}.png")
    img2 = Image.open(src).resize((s*2, s*2), Image.LANCZOS)
    img2.save(f"$SRC_DIR/app/icon.iconset/icon_{s}x{s}@2x.png")
EOF
    iconutil -c icns "$SRC_DIR/app/icon.iconset" -o "$SRC_DIR/app/icon.icns"
    echo "[build] .icns generated at $SRC_DIR/app/icon.icns"
    ICON_ARG="--icon=$SRC_DIR/app/icon.icns"
    BUNDLE_ARG="--osx-bundle-identifier=com.pscoverdl.app"
else
    ICON_ARG=""
    BUNDLE_ARG=""
fi

# ---------------------------------------------------------------------------
# Run PyInstaller via python3 -m to avoid PATH issues
# ---------------------------------------------------------------------------
python3 -m PyInstaller \
    --noconfirm \
    --onedir \
    --windowed \
    "--name=pscoverdl" \
    ${ICON_ARG:+"$ICON_ARG"} \
    ${BUNDLE_ARG:+"$BUNDLE_ARG"} \
    "--add-data=$CTK_PATH:customtkinter" \
    "--add-data=$SRC_DIR/resources:resources" \
    "--add-data=$SRC_DIR/icons:icons" \
    "--add-data=$SRC_DIR/app:app" \
    "$SRC_DIR/gui.py"

echo ""
echo "[build] Done. Output is in: $SCRIPT_DIR/dist/pscoverdl/"

if [ "$PLATFORM" = "Darwin" ]; then
    echo "[build] macOS .app bundle: $SCRIPT_DIR/dist/pscoverdl.app"
fi



================================================
FILE: requirements.txt
================================================
certifi==2024.2.2
charset-normalizer==3.3.2
customtkinter==5.2.2
darkdetect==0.8.0
idna==3.6
packaging==23.2
pillow==10.2.0
PyYAML==6.0.1
requests==2.31.0
termcolor==2.4.0
tk==0.1.0
tqdm==4.66.2
urllib3==2.2.1


================================================
FILE: src/_dist.bat
================================================
pyinstaller "gui.py" --onefile --clean --distpath "" --icon="app/icon.ico" --add-data="resources;resources" --add-data="icons;icons" --add-data="app;app"
@RD /S /Q "build"
rename gui.exe pscoverdl.exe

================================================
FILE: src/gui.py
================================================
"""
⣞⢽⢪⢣⢣⢣⢫⡺⡵⣝⡮⣗⢷⢽⢽⢽⣮⡷⡽⣜⣜⢮⢺⣜⢷⢽⢝⡽⣝
⠸⡸⠜⠕⠕⠁⢁⢇⢏⢽⢺⣪⡳⡝⣎⣏⢯⢞⡿⣟⣷⣳⢯⡷⣽⢽⢯⣳⣫⠇
⠀⠀⢀⢀⢄⢬⢪⡪⡎⣆⡈⠚⠜⠕⠇⠗⠝⢕⢯⢫⣞⣯⣿⣻⡽⣏⢗⣗⠏⠀
⠀⠪⡪⡪⣪⢪⢺⢸⢢⢓⢆⢤⢀⠀⠀⠀⠀⠈⢊⢞⡾⣿⡯⣏⢮⠷⠁⠀⠀
⠀⠀⠀⠈⠊⠆⡃⠕⢕⢇⢇⢇⢇⢇⢏⢎⢎⢆⢄⠀⢑⣽⣿⢝⠲⠉⠀⠀⠀⠀
⠀⠀⠀⠀⠀⡿⠂⠠⠀⡇⢇⠕⢈⣀⠀⠁⠡⠣⡣⡫⣂⣿⠯⢪⠰⠂⠀⠀⠀⠀
⠀⠀⠀⠀⡦⡙⡂⢀⢤⢣⠣⡈⣾⡃⠠⠄⠀⡄⢱⣌⣶⢏⢊⠂⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⢝⡲⣜⡮⡏⢎⢌⢂⠙⠢⠐⢀⢘⢵⣽⣿⡿⠁⠁⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠨⣺⡺⡕⡕⡱⡑⡆⡕⡅⡕⡜⡼⢽⡻⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⣼⣳⣫⣾⣵⣗⡵⡱⡡⢣⢑⢕⢜⢕⡝⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⣴⣿⣾⣿⣿⣿⡿⡽⡑⢌⠪⡢⡣⣣⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⡟⡾⣿⢿⢿⢵⣽⣾⣼⣘⢸⢸⣞⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠁⠇⠡⠩⡫⢿⣝⡻⡮⣒⢽⠋⠀⠀⠀
    
    NO COVERS?
"""

import sys
import threading
import customtkinter as ctk
from tkinter import filedialog
import tkinter as tk
import os
from pathlib import Path
from PIL import Image, ImageTk
import configparser
import pscoverdl
import requests
import certifi

VERSION = 1.1

# Cross-platform font: MS Sans Serif only exists on Windows
if sys.platform == "win32":
    APP_FONT = ("MS Sans Serif", 12, "bold")
else:
    APP_FONT = ("Helvetica", 12, "bold")


def get_config_path() -> Path:
    """
    Return a platform-appropriate path for pscoverdl.ini.

    - Windows : %APPDATA%\\pscoverdl\\pscoverdl.ini
    - macOS   : ~/Library/Application Support/pscoverdl/pscoverdl.ini
    - Linux   : $XDG_CONFIG_HOME/pscoverdl/pscoverdl.ini  (default ~/.config)
    """
    if sys.platform == "win32":
        base = Path(os.environ.get("APPDATA", Path.home()))
    elif sys.platform == "darwin":
        base = Path.home() / "Library" / "Application Support"
    else:
        base = Path(os.environ.get("XDG_CONFIG_HOME", Path.home() / ".config"))

    config_dir = base / "pscoverdl"
    config_dir.mkdir(parents=True, exist_ok=True)
    return config_dir / "pscoverdl.ini"


class pscoverdl_gui(ctk.CTk):
    def __init__(self):
        super().__init__()
        self.check_updates(VERSION)

        # --- Cross-platform icon loading ---
        # .ico is Windows-only. Use .png on macOS/Linux.
        icon_dir = os.path.join(os.path.dirname(
            os.path.realpath(__file__)), "app")
        if sys.platform == "win32":
            icon_file = os.path.join(icon_dir, "icon.ico")
        else:
            icon_file = os.path.join(icon_dir, "icon.png")

        if os.path.isfile(icon_file):
            icon_photo = ImageTk.PhotoImage(Image.open(icon_file))
            self.wm_iconphoto(True, icon_photo)

        self.geometry("450x400")
        self.resizable(False, False)
        self.font = APP_FONT
        self.grid_rowconfigure(0, weight=1)
        self.grid_columnconfigure(1, weight=1)

        # --- Phase 1 Fix: use os.path.join consistently for image paths ---
        image_path = os.path.join(os.path.dirname(
            os.path.realpath(__file__)), "icons")

        self.ps1_image = ctk.CTkImage(
            Image.open(os.path.join(image_path, "ps1.png")), size=(20, 20)
        )
        self.ps2_image = ctk.CTkImage(
            Image.open(os.path.join(image_path, "ps2.png")), size=(20, 20)
        )

        # region nav frame
        self.navigation_frame = ctk.CTkFrame(self, corner_radius=0)
        self.navigation_frame.grid(row=0, column=0, sticky="nsew")
        self.navigation_frame.grid_rowconfigure(4, weight=1)

        self.duckstation = ctk.CTkButton(
            self.navigation_frame,
            corner_radius=0,
            height=40,
            border_spacing=10,
            font=self.font,
            text="DuckStation",
            fg_color="transparent",
            text_color=("gray10", "gray90"),
            hover_color=("gray70", "gray30"),
            image=self.ps1_image,
            anchor="w",
            command=self.duckstation_button_event,
        )
        self.duckstation.grid(row=1, column=0, sticky="ew")

        self.pcsx2 = ctk.CTkButton(
            self.navigation_frame,
            corner_radius=0,
            height=40,
            border_spacing=10,
            font=self.font,
            text="PCSX2",
            fg_color="transparent",
            text_color=("gray10", "gray90"),
            hover_color=("gray70", "gray30"),
            image=self.ps2_image,
            anchor="w",
            command=self.pcsx2_button_event,
        )
        self.pcsx2.grid(row=2, column=0, sticky="ew")

        # endregion

        # region duckstation frame
        self.duckstation_frame = ctk.CTkFrame(
            self, corner_radius=0, fg_color="transparent"
        )

        # covers Dir
        self.duckstation_covers_directory_textbox = ctk.CTkEntry(
            self.duckstation_frame, placeholder_text="Cover Directory", width=200
        )
        self.duckstation_covers_directory_textbox.grid(
            row=0, column=0, padx=10, pady=10, sticky="w"
        )

        self.duckstation_covers_directory_button = ctk.CTkButton(
            self.duckstation_frame,
            text="Browse",
            command=lambda: self.select_directory("duckstation", False),
            width=10,
        )
        self.duckstation_covers_directory_button.grid(
            row=0, column=1, padx=5, pady=5, sticky="e"
        )

        self.duckstation_gamecache_textbox = ctk.CTkEntry(
            self.duckstation_frame, placeholder_text="Game Cache", width=200
        )
        self.duckstation_gamecache_textbox.grid(
            row=1, column=0, padx=10, pady=10, sticky="w"
        )

        self.duckstation_gamecache_button = ctk.CTkButton(
            self.duckstation_frame,
            text="Browse",
            command=lambda: self.select_directory("duckstation", True),
            width=10,
        )
        self.duckstation_gamecache_button.grid(
            row=1, column=1, padx=5, pady=5, sticky="e"
        )

        self.duckstation_cover_type_var = tk.IntVar(value=0)

        self.duckstation_label_radio_group = ctk.CTkLabel(
            master=self.duckstation_frame, text="Cover Type:"
        )
        self.duckstation_label_radio_group.grid(
            row=2, column=0, padx=10, pady=10, sticky="w"
        )

        self.duckstation_radio_button_1 = ctk.CTkRadioButton(
            master=self.duckstation_frame,
            text="Default",
            variable=self.duckstation_cover_type_var,
            value=0
        )
        self.duckstation_radio_button_1.grid(
            row=3, column=0, pady=10, padx=20, sticky="w"
        )

        self.duckstation_radio_button_2 = ctk.CTkRadioButton(
            master=self.duckstation_frame,
            text="3D",
            variable=self.duckstation_cover_type_var,
            value=1
        )
        self.duckstation_radio_button_2.grid(
            row=4, column=0, pady=10, padx=20, sticky="w"
        )

        self.duckstation_use_ssl_checkbox = ctk.CTkCheckBox(
            self.duckstation_frame, text="Use SSL"
        )
        self.duckstation_use_ssl_checkbox.grid(
            row=5, column=0, padx=10, pady=10, sticky="w"
        )
        
        self.duckstation_fallback_checkbox = ctk.CTkCheckBox(
            self.duckstation_frame, text="Fallback to other cover type if not found"
        )
        self.duckstation_fallback_checkbox.grid(
            row=6, column=0, columnspan=2, padx=10, pady=10, sticky="w"
        )


        # duckstation download button
        self.start_download_button = ctk.CTkButton(
            self.duckstation_frame,
            text="Start Download",
            command=lambda: self.start_download("duckstation"),
        )
        self.start_download_button.grid(row=7, column=0, padx=10, pady=10, sticky="w")

        # endregion

        # region pcsx2 frame
        self.pcsx2_frame = ctk.CTkFrame(
            self, corner_radius=0, fg_color="transparent")

        # pcsx2 covers Dir textbox
        self.pcsx2_covers_directory_textbox = ctk.CTkEntry(
            self.pcsx2_frame, placeholder_text="Cover Directory", width=200
        )
        self.pcsx2_covers_directory_textbox.grid(
            row=0, column=0, padx=10, pady=10, sticky="w"
        )

        # pcsx2 browser button
        self.pcsx2_covers_directory_button = ctk.CTkButton(
            self.pcsx2_frame,
            text="Browse",
            command=lambda: self.select_directory("pcsx2", False),
            width=10,
        )
        self.pcsx2_covers_directory_button.grid(
            row=0, column=1, padx=5, pady=5, sticky="e"
        )

        # pcsx2 cache textbox
        self.pcsx2_gamecache_textbox = ctk.CTkEntry(
            self.pcsx2_frame, placeholder_text="Game Cache", width=200
        )
        self.pcsx2_gamecache_textbox.grid(
            row=1, column=0, padx=10, pady=10, sticky="w")

        # pcsx2 browser button
        self.pcsx2_gamecache_button = ctk.CTkButton(
            self.pcsx2_frame,
            text="Browse",
            command=lambda: self.select_directory("pcsx2", True),
            width=10,
        )
        self.pcsx2_gamecache_button.grid(
            row=1, column=1, padx=5, pady=5, sticky="e")

        self.pcsx2_cover_type_var = tk.IntVar(value=0)

        # pcsx2 covertype radiobuttons
        self.pcsx2_label_radio_group = ctk.CTkLabel(
            master=self.pcsx2_frame, text="Cover Type:"
        )
        self.pcsx2_label_radio_group.grid(
            row=2, column=0, padx=10, pady=10, sticky="w")

        self.pcsx2_radio_button_1 = ctk.CTkRadioButton(
            master=self.pcsx2_frame,
            text="Default",
            variable=self.pcsx2_cover_type_var,
            value=0
        )
        self.pcsx2_radio_button_1.grid(
            row=3, column=0, pady=10, padx=20, sticky="w")

        self.pcsx2_radio_button_2 = ctk.CTkRadioButton(
            master=self.pcsx2_frame,
            text="3D",
            variable=self.pcsx2_cover_type_var,
            value=1
        )
        self.pcsx2_radio_button_2.grid(
            row=4, column=0, pady=10, padx=20, sticky="w")

        # pcsx2 use_ssl button
        self.pcsx2_use_ssl_checkbox = ctk.CTkCheckBox(self.pcsx2_frame, text="Use SSL")
        self.pcsx2_use_ssl_checkbox.grid(row=5, column=0, padx=10, pady=10, sticky="w")

        self.pcsx2_fallback_checkbox = ctk.CTkCheckBox(
            self.pcsx2_frame, text="Fallback to other cover type if not found"
        )
        self.pcsx2_fallback_checkbox.grid(row=6, column=0, columnspan=2, padx=10, pady=10, sticky="w")

        # pcsx2 download button
        self.start_download_button = ctk.CTkButton(
            self.pcsx2_frame,
            text="Start Download",
            command=lambda: self.start_download("pcsx2"),
        )
        self.start_download_button.grid(row=7, column=0, padx=10, pady=10, sticky="w")

        # endregion

        self.load_configurations()

    def select_frame_by_name(self, name):
        self.duckstation.configure(
            fg_color=("gray75", "gray25")
            if name == "duckstation_frame"
            else "transparent"
        )
        self.pcsx2.configure(
            fg_color=(
                "gray75", "gray25") if name == "pcsx2_frame" else "transparent"
        )

        # show selected frame
        if name == "duckstation_frame":
            self.duckstation_frame.grid(row=0, column=1, sticky="nsew")
            self.pcsx2_frame.grid_forget()
        elif name == "pcsx2_frame":
            self.pcsx2_frame.grid(row=0, column=1, sticky="nsew")
            self.duckstation_frame.grid_forget()

    def duckstation_button_event(self):
        self.select_frame_by_name("duckstation_frame")

    def pcsx2_button_event(self):
        self.select_frame_by_name("pcsx2_frame")

    def select_directory(self, emulator: str, is_cache: bool):
        # emulator - pcsx2, duckstation
        if emulator == "pcsx2":
            if is_cache:
                filetypes = (("gamelist", "*.cache"),)
                file_path = filedialog.askopenfilename(filetypes=filetypes)
                self.pcsx2_gamecache_textbox.delete(0, "end")
                self.pcsx2_gamecache_textbox.insert(0, file_path)
            else:
                file_path = filedialog.askdirectory()
                self.pcsx2_covers_directory_textbox.delete(0, "end")
                self.pcsx2_covers_directory_textbox.insert(0, file_path)
        elif emulator == "duckstation":
            if is_cache:
                filetypes = (("gamelist", "*.cache"),)
                file_path = filedialog.askopenfilename(filetypes=filetypes)
                self.duckstation_gamecache_textbox.delete(0, "end")
                self.duckstation_gamecache_textbox.insert(0, file_path)
            else:
                file_path = filedialog.askdirectory()
                self.duckstation_covers_directory_textbox.delete(0, "end")
                self.duckstation_covers_directory_textbox.insert(0, file_path)

    def load_configurations(self):
        config_path = get_config_path()
        if config_path.is_file():
            try:
                config = configparser.ConfigParser()
                config.read(config_path)

                duckstation_covers_dir = config.get("Duckstation", "cover_directory")
                duckstation_game_cache = config.get("Duckstation", "game_cache")
                duckstation_cover_type = config.getint("Duckstation", "cover_type")
                duckstation_use_ssl = config.getboolean("Duckstation", "use_ssl")
                duckstation_fallback = config.getboolean("Duckstation", "fallback")

                pcsx2_covers_dir = config.get("PCSX2", "cover_directory")
                pcsx2_game_cache = config.get("PCSX2", "game_cache")
                pcsx2_cover_type = config.getint("PCSX2", "cover_type")
                pcsx2_use_ssl = config.getboolean("PCSX2", "use_ssl")
                pcsx2_fallback = config.getboolean("PCSX2", "fallback")

                self.duckstation_covers_directory_textbox.insert(
                    0, duckstation_covers_dir
                )
                self.duckstation_gamecache_textbox.insert(
                    0, duckstation_game_cache)
                self.duckstation_cover_type_var.set(duckstation_cover_type)

                if duckstation_use_ssl:
                    self.duckstation_use_ssl_checkbox.select()
                
                if duckstation_fallback:
                    self.duckstation_fallback_checkbox.select()
                else:
                    self.duckstation_fallback_checkbox.deselect()

                self.pcsx2_covers_directory_textbox.insert(0, pcsx2_covers_dir)
                self.pcsx2_gamecache_textbox.insert(0, pcsx2_game_cache)
                self.pcsx2_cover_type_var.set(pcsx2_cover_type)
                
                if pcsx2_use_ssl:
                    self.pcsx2_use_ssl_checkbox.select()
                    
                if pcsx2_fallback:
                    self.pcsx2_fallback_checkbox.select()
                else:
                    self.pcsx2_fallback_checkbox.deselect()
            except:
                print("A problem occurred while trying to read pscoverdl.ini")

    def save_configurations(self):
        config = configparser.ConfigParser()

        config["Duckstation"] = {
            "cover_directory": self.duckstation_covers_directory_textbox.get(),
            "game_cache": self.duckstation_gamecache_textbox.get(),
            "cover_type": str(self.duckstation_cover_type_var.get()),
            "use_ssl": str(self.duckstation_use_ssl_checkbox.get()),
            "fallback": str(self.duckstation_fallback_checkbox.get())
        }

        config["PCSX2"] = {
            "cover_directory": self.pcsx2_covers_directory_textbox.get(),
            "game_cache": self.pcsx2_gamecache_textbox.get(),
            "cover_type": str(self.pcsx2_cover_type_var.get()),
            "use_ssl": str(self.pcsx2_use_ssl_checkbox.get()),
            "fallback": str(self.pcsx2_fallback_checkbox.get())
        }

        with open(get_config_path(), "w") as configfile:
            config.write(configfile)

    def start_download(self, emulator: str):
        # Collect args before entering the thread (must read Tkinter widgets on main thread)
        if emulator == "pcsx2":
            args = (
                self.pcsx2_covers_directory_textbox.get(),
                self.pcsx2_gamecache_textbox.get(),
                self.pcsx2_cover_type_var.get(),
                self.pcsx2_use_ssl_checkbox.get(),
                emulator,
                self.pcsx2_fallback_checkbox.get()
            )
        elif emulator == "duckstation":
            args = (
                self.duckstation_covers_directory_textbox.get(),
                self.duckstation_gamecache_textbox.get(),
                self.duckstation_cover_type_var.get(),
                self.duckstation_use_ssl_checkbox.get(),
                emulator,
                self.duckstation_fallback_checkbox.get()
            )
        else:
            return

        # Disable both download buttons while running
        self._set_download_buttons_state("disabled")

        def _run():
            pscoverdl.download_covers(*args)
            # Schedule UI updates back on the main thread via after()
            self.after(0, self._on_download_complete)

        threading.Thread(target=_run, daemon=True).start()

    def _on_download_complete(self):
        """Called on the main thread when the background download finishes."""
        self.save_configurations()
        self._set_download_buttons_state("normal")

    def _set_download_buttons_state(self, state: str):
        """Enable or disable both emulator download buttons at once."""
        for frame in (self.duckstation_frame, self.pcsx2_frame):
            for widget in frame.winfo_children():
                if isinstance(widget, ctk.CTkButton) and widget.cget("text") == "Start Download":
                    widget.configure(state=state)

    def check_updates(self, version: float):
        """Fetch the latest version number in a background thread to avoid blocking startup."""
        def _fetch():
            try:
                rep_version_str = requests.get(
                    "https://github.com/xlenore/pscoverdl/raw/main/VERSION",
                    timeout=5,
                    verify=certifi.where(),
                ).text.strip()
                try:
                    rep_version = float(rep_version_str)
                except ValueError:
                    rep_version = version
            except requests.exceptions.RequestException:
                rep_version = version

            new_title = (
                f"PSCoverDL - {version}"
                f"{' | NEW VERSION AVAILABLE' if version != rep_version else ''}"
            )
            self.after(0, lambda: self.title(new_title))

        # Set a neutral title immediately, then update it when the request completes
        self.title(f"PSCoverDL - {version}")
        threading.Thread(target=_fetch, daemon=True).start()


if __name__ == "__main__":
    app = pscoverdl_gui()
    app.mainloop()


================================================
FILE: src/pscoverdl.py
================================================
import os
import re
import concurrent.futures
import yaml
import json
from termcolor import colored
from tqdm import tqdm
from pathlib import Path
import requests
import certifi

PS1_COVERS_URL_DEFAULT = (
    "https://raw.githubusercontent.com/xlenore/psx-covers/main/covers/default"
)
PS1_COVERS_URL_3D = (
    "https://raw.githubusercontent.com/xlenore/psx-covers/main/covers/3d"
)

PS2_COVERS_URL_DEFAULT = (
    "https://raw.githubusercontent.com/xlenore/ps2-covers/main/covers/default"
)
PS2_COVERS_URL_3D = (
    "https://raw.githubusercontent.com/xlenore/ps2-covers/main/covers/3d"
)


class BaseCoverDownloader:
    def __init__(self, cover_dir, gamelist_dir, cover_type, use_ssl, emulator, fallback=False):
        self.cover_dir = Path(cover_dir)
        self.gamelist_dir = gamelist_dir
        self.cover_type = cover_type
        self.use_ssl = use_ssl
        self.emulator = emulator
        self.fallback = fallback

    def get_serial_list(self, gamelist_cache_path, existing_covers):
        if not os.path.exists(gamelist_cache_path):
            print(colored("[ERROR]: gamelist.cache file not found", "red"))
            return []

        with open(gamelist_cache_path, errors="ignore") as file:
            regex = re.findall(r"(\w{4}-\d{5})", file.read())
            serial_list = list(set(regex))
            print(colored(f"[LOG]: {len(serial_list)} games found", "green"))
            print(
                colored(
                    f"[LOG]: Removing already downloaded covers from queue...", "green"
                )
            )
            serial_list = [
                game_serial
                for game_serial in serial_list
                if game_serial not in existing_covers
            ]

            return serial_list

    def existing_covers(self):
        covers = set()
        for pattern in ("*.jpg", "*.png"):
            for filename in self.cover_dir.glob(pattern):
                covers.add(filename.stem)
        return list(covers)

    def serial_to_name(self, name_list, game_serial):
        return name_list.get(game_serial)

    def download_cover(self, url, cover_path):
        try:
            if not self.use_ssl:
                url = url.replace("https://", "http://")
            response = requests.get(url, verify=certifi.where())
            if response.status_code == 200:
                with open(cover_path, "wb") as file:
                    file.write(response.content)
                return True
        except requests.exceptions.RequestException:
            pass
        return False

    def download(self):
        if not self.cover_dir.exists():
            self.cover_dir.mkdir(parents=True)

        existing_covers = self.existing_covers()
        name_list = self.get_name_list()
        serial_list = self.get_serial_list(self.gamelist_dir, existing_covers)

        if self.emulator == "pcsx2":
            covers_url_default = PS2_COVERS_URL_DEFAULT
            covers_url_3d = PS2_COVERS_URL_3D
        elif self.emulator == "duckstation":
            covers_url_default = PS1_COVERS_URL_DEFAULT
            covers_url_3d = PS1_COVERS_URL_3D
        else:
            print(
                colored(f"[ERROR]: Invalid emulator: {self.emulator}", "red"))
            return

        covers_url = covers_url_default
        if self.cover_type == 1:
            covers_url = covers_url_3d

        if self.cover_type == 0:
            cover_urls = [
                f"{covers_url}/{game_serial}.jpg"
                for game_serial in serial_list
                if game_serial not in existing_covers
            ]
        elif self.cover_type == 1:
            cover_urls = [
                f"{covers_url}/{game_serial}.png"
                for game_serial in serial_list
                if game_serial not in existing_covers
            ]

        if not serial_list:
            print(
                colored(f"[LOG]: All covers have already been downloaded", "green"))
            return

        workers = 4
        with concurrent.futures.ThreadPoolExecutor(max_workers=workers) as executor:
            results = []
            for url in cover_urls:
                cover_path = self.cover_dir.joinpath(Path(url).name)
                results.append(executor.submit(
                    self.download_cover, url, cover_path))

            failed = []
            for result, url in tqdm(
                zip(results, cover_urls),
                total=len(cover_urls),
                desc="Downloading covers",
                unit="cover",
                ncols=50,
                bar_format="{l_bar}{bar}| {n_fmt}/{total_fmt}",
            ):
                game_serial = Path(url).stem
                game_name = self.serial_to_name(name_list, game_serial)

                if result.result():
                    tqdm.write(
                        colored(f"{game_serial} | {game_name}", "green"))
                else:
                    failed.append((game_serial, game_name))

        if failed and self.fallback:
            if self.cover_type == 1:
                fallback_url_base = covers_url_default
                fallback_ext = ".jpg"
            else:
                fallback_url_base = covers_url_3d
                fallback_ext = ".png"

            fallback_urls = [
                f"{fallback_url_base}/{serial}{fallback_ext}"
                for serial, _ in failed
            ]

            with concurrent.futures.ThreadPoolExecutor(max_workers=workers) as fallback_executor:
                fallback_results = []
                for fb_url in fallback_urls:
                    cover_path = self.cover_dir.joinpath(Path(fb_url).name)
                    fallback_results.append(fallback_executor.submit(self.download_cover, fb_url, cover_path))

                for fb_result, (serial, name) in tqdm(
                    zip(fallback_results, failed),
                    total=len(failed),
                    desc="Downloading fallbacks",
                    unit="cover",
                    ncols=50,
                    bar_format="{l_bar}{bar}| {n_fmt}/{total_fmt}",
                ):
                    if fb_result.result():
                        tqdm.write(colored(f"{serial} | {name} (fallback)", "green"))
                    else:
                        tqdm.write(
                            colored(
                                f"[{serial} | {name}] not found. Skipping...", "yellow"
                            )
                        )
        elif failed:
            for serial, name in failed:
                print(colored(f"[{serial} | {name}] not found. Skipping...", "yellow"))


class PCSX2CoverDownloader(BaseCoverDownloader):
    def __init__(self, cover_dir, gamelist_dir, cover_type, use_ssl, emulator, fallback=False):
        super().__init__(cover_dir, gamelist_dir, cover_type, use_ssl, emulator, fallback)

    def get_name_list(self):
        name_list = {}

        gameindex_file = (
            Path(__file__).resolve().parent.joinpath(
                "resources", "GameIndex.yaml")
        )

        if not gameindex_file.exists():
            print(colored("[ERROR]: GameIndex.yaml file not found", "red"))
            return {}

        with open(gameindex_file, encoding="utf-8-sig") as file:
            name_list = {
                key: value["name"]
                for key, value in yaml.load(file, Loader=yaml.CBaseLoader).items()
            }
        return name_list


class DuckStationCoverDownloader(BaseCoverDownloader):
    def __init__(self, cover_dir, gamelist_dir, cover_type, use_ssl, emulator, fallback=False):
        super().__init__(cover_dir, gamelist_dir, cover_type, use_ssl, emulator, fallback)

    def get_name_list(self):
        name_list = {}

        gamedb_file = (
            Path(__file__).resolve().parent.joinpath(
                "resources", "gamedb.json")
        )

        if not gamedb_file.exists():
            print(colored("[ERROR]: gamedb.json file not found", "red"))
            return {}

        with open(gamedb_file, encoding="utf-8") as file:
            gameindex = json.load(file)
            name_list = {item["serial"]: item["name"] for item in gameindex}
        return name_list


def download_covers(cover_dir, gamelist_dir, cover_type, use_ssl, emulator, fallback=False):
    if emulator == "pcsx2":
        downloader = PCSX2CoverDownloader(
            cover_dir, gamelist_dir, cover_type, use_ssl, emulator, fallback
        )
    elif emulator == "duckstation":
        downloader = DuckStationCoverDownloader(
            cover_dir, gamelist_dir, cover_type, use_ssl, emulator, fallback
        )
    else:
        print(colored(f"[ERROR]: Invalid emulator: {emulator}", "red"))
        return

    downloader.download()


================================================
FILE: src/requirements.txt
================================================
customtkinter==5.2.0
Pillow==10.1.0
PyYAML==6.0.1
Requests==2.31.0
termcolor==2.3.0
tqdm==4.64.1


================================================
FILE: src/resources/GameIndex.yaml
================================================
# ---------------------------------------------
# PCSX2 Game Database!
# ---------------------------------------------

# ---------------------------------------------
# Credits
# ---------------------------------------------
# Game Data (serials, titles, and region info) is
# based on the information found at:
# https://web.archive.org/web/20141105075540/http://sonyindex.com/,
# https://serialstation.com,
# https://psxdatacenter.com,
# http://redump.org/
#
# Additional Games and Data by PCSX2 team

# ---------------------------------------------
# Notes
# ---------------------------------------------
# For basics on the YAML syntax, see here - https://docs.ansible.com/ansible/latest/reference_appendices/YAMLSyntax.html
#
# For gamefixes/roundmodes/clampmodes, PCSX2 will use the current user
# settings if the game database does not explicitly change the values.

# ---------------------------------------------
# Usage
# ---------------------------------------------
# For comprehensive usage examples / explanations, see the following documentation:
# https://github.com/PCSX2/pcsx2/blob/master/pcsx2/Docs/GameIndex.md

# ---------------------------------------------
# -- Game List
# ---------------------------------------------

ALCH-00001:
  name: "Katakamuna - Ushinawareta Ingaritsu [Deluxe Pack]"
  region: "NTSC-J"
ALCH-00003:
  name: "Chocolat Maid Cafe Curio [Limited Edition]"
  region: "NTSC-J"
ALCH-00005:
  name: "Haru no Ashioto - Step of Spring [Paku Paku Pack]"
  region: "NTSC-J"
ALCH-00007:
  name: "Parfait - Chocolat Second Style [Limited Edition]"
  region: "NTSC-J"
ALCH-00008:
  name: "Aria - The Natural - Tooi Yume no Mirage [Limited Edition]"
  region: "NTSC-J"
ALCH-00009:
  name: "Higurashi no Naku Koro ni Matsuri [First Print Limited Edition]"
  region: "NTSC-J"
ALCH-00010:
  name: "Kono Aozora ni Yakusoku wo - Melody of the Sun and Sea [Limited Edition]"
  region: "NTSC-J"
ALCH-00011:
  name: "Pure x Cure RE-Covery [Koi no Kyuukyuu Set]"
  region: "NTSC-J"
ALCH-00014:
  name: "Aria - The Origination ~Aoi Hoshi no El Cielo~ [Limited Edition]"
  region: "NTSC-J"
ALCH-00015:
  name: "Sugar+Spice! - Anoko no Suteki na Nanimokamo [First Press Limited Edition]"
  region: "NTSC-J"
ALCH-00016:
  name: "Koisuru Otome to Shugo no Tate - The Shield of Aigis [Limited Edition]"
  region: "NTSC-J"
ALCH-00017:
  name: "Triggerheart Exelica Enhanced [Nendroid Super Set]"
  region: "NTSC-J"
ALCH-00021:
  name: "Sekirei - Mirai Kara no Okurimono [Special Pack]"
  region: "NTSC-J"
ALCH-00027:
  name: "Suzunone Seven - Rebirth Knot [Limited Edition]"
  region: "NTSC-J"
ALCH-00028:
  name: "Hana to Otome ni Shukufuku wo - Harukaze no Okurimono [Saint Box]"
  region: "NTSC-J"
ALCH-0004:
  name: "Duel Savior Destiny [Messiah Box]"
  region: "NTSC-J"
CPCS-01005:
  name: "Gun Survivor 4 - BioHazard - Heroes Never Die [with GunCon2]"
  region: "NTSC-J"
  gsHWFixes:
    halfPixelOffset: 1 # Fixes character offset with flashlight and blurriness.
    alignSprite: 1 # Fixes vertical lines.
    roundSprite: 2 # Fixes font artifacts.
    mergeSprite: 1 # Fixes flame-like bleeding.
CPCS-01020:
  name: "Monster Hunter 2 [DX Hunters Box]"
  region: "NTSC-J"
  compat: 5
  clampModes:
    vuClampMode: 3 # Fixes lighting on character models as caves and other locations don't turn mobs into glow-in-the-dark creatures by themselves.
  gsHWFixes:
    maximumBlendingLevel: 0 # Fixes unnecessary load on the GPU.
GUST-00009:
  name: "Mana Khemia - Alchemists of Al-Revis [Premium Box]"
  region: "NTSC-J"
  roundModes:
    eeRoundMode: 0 # Fixes jump issue.
  gameFixes:
    - SoftwareRendererFMVHack # Vertical lines in FMV.
  gsHWFixes:
    roundSprite: 1 # Fixes misalignment of textures in the Pause Menu.
PAPX-90201:
  name: "Fantavision [Taikenban]"
  region: "NTSC-J"
PAPX-90202:
  name: "IQ Remix - Intelligent Qube [Trial]"
  region: "NTSC-J"
PAPX-90203:
  name: "Gran Turismo 2000 [Trial]"
  region: "NTSC-J"
  gsHWFixes:
    getSkipCount: "GSC_PolyphonyDigitalGames" # Fixes post processing.
PAPX-90204:
  name: "TVDJ"
  region: "NTSC-J"
PAPX-90205:
  name: "Dark Cloud"
  region: "NTSC-J"
PAPX-90206:
  name: "Blood - The Last Vampire"
  region: "NTSC-J"
PAPX-90207:
  name: "Gran Turismo 3 - A-Spec - Autobacs Gentei Replay Theater"
  region: "NTSC-J"
  gsHWFixes:
    getSkipCount: "GSC_PolyphonyDigitalGames" # Fixes post processing.
PAPX-90208:
  name: "Gran Turismo 3 - A-Spec - Replay Theater"
  region: "NTSC-J"
  gsHWFixes:
    getSkipCount: "GSC_PolyphonyDigitalGames" # Fixes post processing.
PAPX-90209:
  name: "Gran Turismo 3 - A-Spec - Netz Toyota - Replay Theater Disc"
  region: "NTSC-J"
  gsHWFixes:
    getSkipCount: "GSC_PolyphonyDigitalGames" # Fixes post processing.
PAPX-90210:
  name: "Yappa RPG desho."
  region: "NTSC-J"
PAPX-90211:
  name: "Extermination"
  region: "NTSC-J"
PAPX-90212:
  name: "Boku to Maou"
  region: "NTSC-J"
PAPX-90213:
  name: "Phase Paradox"
  region: "NTSC-J"
PAPX-90215:
  name: "Ka [Trial]"
  region: "NTSC-J"
  gsHWFixes:
    halfPixelOffset: 2 # Fixes blurriness.
PAPX-90216:
  name: "Bravo Music"
  region: "NTSC-J"
PAPX-90218:
  name: "SkyGunner"
  region: "NTSC-J"
PAPX-90220:
  name: "Surveillance - Kanshisha"
  region: "NTSC-J"
PAPX-90222:
  name: "Jak x Daxter - Kyuu Sekai no Isan [Demo, Taikenban]"
  region: "NTSC-J"
  gsHWFixes:
    mipmap: 2 # Fixes broken textures.
    trilinearFiltering: 1 # Fixes water textures.
    cpuSpriteRenderBW: 4 # Fixes character and water textures.
    cpuSpriteRenderLevel: 2 # Needed for above.
PAPX-90223:
  name: "Jak x Daxter - Kyuu Sekai no Isan [Demo, Taikenban]"
  region: "NTSC-J"
  gsHWFixes:
    mipmap: 2 # Fixes broken textures.
    trilinearFiltering: 1 # Fixes water textures.
    cpuSpriteRenderBW: 4 # Fixes character and water textures.
    cpuSpriteRenderLevel: 2 # Needed for above.
PAPX-90224:
  name: "Sidewinder F"
  region: "NTSC-J"
PAPX-90225:
  name: "Legaia - Duel Saga - Special Disc"
  region: "NTSC-J"
PAPX-90226:
  name: "Otostaz"
  region: "NTSC-J"
PAPX-90228:
  name: "Otostaz"
  region: "NTSC-J"
PAPX-90229:
  name: "XI [sái] - XI-Go"
  region: "NTSC-J"
PAPX-90230:
  name: "Arc the Lad - Seirei no Tasogare - Premiere Disc"
  region: "NTSC-J"
PAPX-90231:
  name: "Kaitou Sly Cooper [Demo, Taikenban]"
  region: "NTSC-J"
PAPX-90232:
  name: "Chain Dive"
  region: "NTSC-J"
PAPX-90233:
  name: "Bakusou Mountain Bikers"
  region: "NTSC-J"
PAPX-90234:
  name: "Katamari Damacy"
  region: "NTSC-J"
PAPX-90235:
  name: "XIII"
  region: "NTSC-J"
PAPX-90236:
  name: "Minna Daisuki Katamari Damacy"
  region: "NTSC-J"
PAPX-90330:
  name: "Saru! Get You! 2 - Ukki Ukki Disc"
  region: "NTSC-J"
PAPX-90501:
  name: "Dark Cloud"
  region: "NTSC-J"
PAPX-90502:
  name: "The Yamanote-sen - Train Simulator Real"
  region: "NTSC-J"
PAPX-90503:
  name: "PoPoLoCrois - Hajimari no Bouken [Fan Gentei Disc]"
  region: "NTSC-J"
PAPX-90504:
  name: "Gran Turismo Concept - Airtrek Turbo Special Edition [Demo]"
  region: "NTSC-J"
  gsHWFixes:
    getSkipCount: "GSC_PolyphonyDigitalGames" # Fixes post processing.
PAPX-90505:
  name: "2002 Natsu no Osusume Soft Otameshi Disc"
  region: "NTSC-J"
PAPX-90506:
  name: "Dark Chronicle [Demo, Taikenban]"
  region: "NTSC-J"
  compat: 5
  clampModes:
    eeClampMode: 3 # Fixes textbox.
  gsHWFixes:
    roundSprite: 2 # Fixes font artifacts.
    cpuSpriteRenderBW: 2 # Fixes lines in geometry.
    cpuSpriteRenderLevel: 2 # Needed for above.
PAPX-90507:
  name: "Official Disc 2003"
  region: "NTSC-J"
PAPX-90508:
  name: "Gran Turismo 4 - Lupo Cup Training Version"
  region: "NTSC-J"
PAPX-90511:
  name: "Siren - Trial Disc"
  region: "NTSC-J"
PAPX-90512:
  name: "Gran Turismo 4 - Toyota Prius [Trial]"
  region: "NTSC-J"
  clampModes:
    vuClampMode: 2 # Text in GT mode works.
    # eeClampMode = 3  Text in races works.
  gsHWFixes:
    mipmap: 2 # Mipmap + trilinear, improves ground textures to match sw renderer.
    trilinearFiltering: 1
    halfPixelOffset: 1 # Fixes weird edge shadows and depth bleed which happens on the edge as well.
    getSkipCount: "GSC_PolyphonyDigitalGames" # Fixes post processing.
PAPX-90514:
  name: "Fuyu no Osusume Soft Otameshi Disc"
  region: "NTSC-J"
PAPX-90515:
  name: "Fuyu no Osusume Soft Otameshi Disc 2003-2004"
  region: "NTSC-J"
PAPX-90516:
  name: "Jak and Daxter II [Trial]"
  region: "NTSC-J"
  gsHWFixes:
    mipmap: 2 # Fixes broken textures.
    trilinearFiltering: 1 # Fixes water textures.
    cpuSpriteRenderBW: 4 # Fixes character and water textures.
    cpuSpriteRenderLevel: 2 # Needed for above.
    autoFlush: 2 # Fixes lighting.
PAPX-90517:
  name: "Prince of Persia - Jikan no Suna [Trial]"
  region: "NTSC-J"
  gsHWFixes:
    autoFlush: 2 # Reduces post-processing misalignment.
PAPX-90519:
  name: "Doko Demo Issho - Toro to Ippai"
  region: "NTSC-J"
PAPX-90521:
  name: "Waga Ryuu o Miyo - Pride of the Dragon Peace"
  region: "NTSC-J"
PAPX-90522:
  name: "Genji"
  region: "NTSC-J"
PAPX-90523:
  name: "Gran Turismo 4 - Online Test Version"
  region: "NTSC-J"
PAPX-90524:
  name: "Wild Arms - The Vth Vanguard"
  region: "NTSC-J"
PBGP-0061:
  name: "Suika A.S+ Eternal Name [First Press Limited Edition]"
  region: "NTSC-J"
PBGP-0063:
  name: "Saishuu Shiken Kujira - Alive [First Press Limited Edition]"
  region: "NTSC-J"
PBGP-0065:
  name: "D.C. Da Capo The Origin [First Limited Edition]"
  region: "NTSC-J"
  gsHWFixes:
    roundSprite: 2 # Reduces sprite artifacts like in the menu.
PBPX-95201:
  name: "Utility Disc [Version 1.00]"
  region: "NTSC-J"
PBPX-95202:
  name: "Utility Disc [Version 1.01]"
  region: "NTSC-J"
PBPX-95203:
  name: "Utility Disc [Version 1.01]"
  region: "NTSC-J"
PBPX-95204:
  name: "PlayStation 2 - Demo Disc 2000"
  region: "PAL-M5"
PBPX-95205:
  name: "PlayStation 2 - Demo Disc 2000"
  region: "PAL-M5"
PBPX-95206:
  name: "DVD Player Version 2.01"
  region: "NTSC-J"
PBPX-95207:
  name: "DVD Player Version 2.10"
  region: "NTSC-J"
PBPX-95208:
  name: "DVD Player Version 2.10"
  region: "PAL-M8"
PBPX-95209:
  name: "DVD Player Version 2.10"
  region: "PAL-A"
PBPX-95210:
  name: "DVD Player Version 2.10"
  region: "NTSC-U"
PBPX-95211:
  name: "HDD Utility Disc Version 1.00"
  region: "NTSC-U"
PBPX-95216:
  name: "HDD Utility Disc Version 1.00 [Beta]"
  region: "NTSC-U"
PBPX-95218:
  name: "DVD Player Version 2.12"
  region: "NTSC-U"
PBPX-95219:
  name: "DVD Player Version 2.14"
  region: "PAL-E"
PBPX-95220:
  name: "DVD Player Version 2.14"
  region: "PAL-M7"
PBPX-95221:
  name: "DVD Player Version 2.12"
  region: "NTSC-J"
PBPX-95222:
  name: "DVD Player Version 2.14"
  region: "NTSC-J"
PBPX-95223:
  name: "DVD Player Version 2.14"
  region: "NTSC-U"
PBPX-95224:
  name: "DVD Player Version 2.16"
  region: "NTSC-J"
PBPX-95228:
  name: "DVD Player Version 3.00"
  region: "NTSC-J"
PBPX-95237:
  name: "HDD Utility Disc"
  region: "NTSC-U"
PBPX-95239:
  name: "Online Start-Up Disc v3.0"
  region: "NTSC-U"
PBPX-95242:
  name: "Online Start-Up Disc v3.0"
  region: "NTSC-U"
PBPX-95245:
  name: "Online Start-Up Disc v1.0"
  region: "NTSC-U"
PBPX-95246:
  name: "Online Start-Up Disc v3.5 - Broadband Only"
  region: "NTSC-U"
PBPX-95247:
  name: "Online Start-Up Disc v3.5 - Broadband Only"
  region: "NTSC-U"
PBPX-95248:
  name: "Online Start-Up Disc 4.0 - Broadband Only"
  region: "NTSC-U"
PBPX-95250:
  name: "Online Start-Up Disc v1.0"
  region: "NTSC-Unk"
PBPX-95251:
  name: "Online Start-Up Disc 4.0 - Broadband Only"
  region: "NTSC-U"
PBPX-95501:
  name: "PS2 Linux Beta Release 1"
  region: "NTSC-J"
PBPX-95502:
  name: "Gran Turismo 3 - A-Spec"
  region: "NTSC-J"
  gsHWFixes:
    getSkipCount: "GSC_PolyphonyDigitalGames" # Fixes post processing.
PBPX-95503:
  name: "Gran Turismo 3 - A-Spec [PS2 Bundle]"
  region: "NTSC-U"
  memcardFilters:
    - "PBPX-95503"
    - "SCUS-97102"
  gsHWFixes:
    getSkipCount: "GSC_PolyphonyDigitalGames" # Fixes post processing.
PBPX-95506:
  name: "PlayStation 2 - Demo Disc 2001"
  region: "PAL-M5"
  patches:
    default:
      content: |-
        // 7ACF7E03
        comment=You must enable the EETimingHack when playing the WRC demo to avoids random hangs.
        comment=You must change the EE Clamping mode to Full when playing the Klonoa 2 demo to avoids misplaced objects.
        comment=You must change the VU0 Clamping mode to extra + sign when playing the Klonoa 2 demo to fixes reflections issues.
PBPX-95507:
  name: "Linux (for PlayStation 2) Release 1.0 (Disc 1) (Runtime Environment)"
  region: "NTSC-U"
PBPX-95508:
  name: "Linux (for PlayStation 2) Release 1.0 (Disc 2) (Software Packages)"
  region: "NTSC-U"
PBPX-95509:
  name: "Linux Release 1.0 Runtime Environment [Disc 1]"
  region: "PAL-E"
PBPX-95510:
  name: "Linux (for PlayStation 2) Release 1.0 (Disc 2) (Software Packages)"
  region: "PAL-E"
PBPX-95514:
  name: "PlayStation 2 - Demo Disc 2002"
  region: "PAL-M5"
PBPX-95516:
  name: "Ratchet & Clank - [Trial Edition]"
  region: "NTSC-J"
  gameFixes:
    - EETimingHack # Fixes SPR errors while going in-game.
  roundModes:
    eeRoundMode: 0 # Fixes Hydrodisplacer behaviour.
  gsHWFixes:
    mipmap: 1
PBPX-95517:
  name: "Network Adapter Start-Up Disc"
  region: "NTSC-U"
PBPX-95519:
  name: "Network Adaptor Start-Up Disc v2.0"
  region: "NTSC-U"
PBPX-95520:
  name: "PlayStation 2 - Demo Disc 2002"
  region: "PAL-M5"
PBPX-95522:
  name: "Kidou Senshi Z Gundam - A.E.U.G. vs. Titans"
  region: "NTSC-J"
PBPX-95523:
  name: "Gran Turismo 4 - Prologue [PlayStation 2 Racing Pack]"
  region: "NTSC-J"
  gsHWFixes:
    mipmap: 2 # Mipmap + trilinear, improves ground textures to match sw renderer.
    trilinearFiltering: 1
    halfPixelOffset: 1 # Fixes weird edge shadows and depth bleed which happens on the edge as well.
    getSkipCount: "GSC_PolyphonyDigitalGames" # Fixes post processing.
  # eeClampMode = 3  Text in races works.
  # vuClampMode = 2  Text in GT mode works.
PBPX-95524:
  name: "Gran Turismo 4 - Prologue [PlayStation 2 Racing Pack]"
  region: "NTSC-C"
  compat: 5
  gsHWFixes:
    mipmap: 2 # Mipmap + trilinear, improves ground textures to match sw renderer.
    trilinearFiltering: 1
    halfPixelOffset: 1 # Fixes weird edge shadows and depth bleed which happens on the edge as well.
    getSkipCount: "GSC_PolyphonyDigitalGames" # Fixes post processing.
  # eeClampMode = 3  Text in races works.
  # vuClampMode = 2  Text in GT mode works.
PBPX-95525:
  name: "Final Fantasy XII"
  region: "NTSC-J-K"
PBPX-95601:
  name: "Gran Turismo 4 [PlayStation 2 Racing Pack]"
  region: "NTSC-J"
  compat: 5
  clampModes:
    vuClampMode: 2 # Text in GT mode works.
  gsHWFixes:
    mipmap: 2 # Mipmap + trilinear, improves ground textures to match sw renderer.
    trilinearFiltering: 1
    halfPixelOffset: 1 # Fixes weird edge shadows and depth bleed which happens on the edge as well.
    getSkipCount: "GSC_PolyphonyDigitalGames" # Fixes post processing.
  memcardFilters:
    - "SCAJ-20066"
    - "SCAJ-30006"
    - "SCAJ-30007"
    - "SCAJ-30008"
    - "SCPS-15055"
    - "SCPS-17001"
    - "SCPS-19252"
    - "SCPS-19304"
    - "SCPS-15009"
    - "SCPS-55007"
  # eeClampMode = 3  Text in races works.
PCPX-96301:
  name: "I.Q Remix+ - Intelligent Qube"
  region: "NTSC-J"
PCPX-96302:
  name: "Fantavision"
  region: "NTSC-J"
PCPX-96303:
  name: "6-gatsu Hatsubai Title Promotion Disc (Aconcagua - Boku no Natsuyasumi - TVDJ)"
  region: "NTSC-J"
PCPX-96304:
  name: "Scandal"
  region: "NTSC-J"
PCPX-96305:
  name: "Play-Pre Plus 004 - 2000 June (Disc 2)"
  region: "NTSC-J"
PCPX-96306:
  name: "Bikkuri Mouse"
  region: "NTSC-J"
PCPX-96310:
  name: "X-treme Racing SSX"
  region: "NTSC-J"
PCPX-96311:
  name: "Gran Turismo 3 Trial Disk Volume 1"
  region: "NTSC-J"
  gsHWFixes:
    getSkipCount: "GSC_PolyphonyDigitalGames" # Fixes post processing.
PCPX-96312:
  name: "Gran Turismo 3 - A-Spec - Autobacs Tentou Shiyuu Disc"
  region: "NTSC-J"
  gsHWFixes:
    getSkipCount: "GSC_PolyphonyDigitalGames" # Fixes post processing.
PCPX-96314:
  name: "The Sky Odyssey"
  region: "NTSC-J"
  clampModes:
    vu0ClampMode: 3 # Fixes runway line thickness on minimap.
PCPX-96315:
  name: "Phase Paradox"
  region: "NTSC-J"
PCPX-96316:
  name: "Phase Paradox"
  region: "NTSC-J"
PCPX-96317:
  name: "Ka [Trial]"
  region: "NTSC-J"
  gsHWFixes:
    halfPixelOffset: 2 # Fixes blurriness.
PCPX-96318:
  name: "Rimococoron"
  region: "NTSC-J"
PCPX-96319:
  name: "Piposaru 2001"
  region: "NTSC-J"
PCPX-96320:
  name: "PaRappa the Rapper 2"
  region: "NTSC-J"
PCPX-96321:
  name: "SkyGunner [Trial]"
  region: "NTSC-J"
PCPX-96322:
  name: "Ico [Trial]"
  region: "NTSC-J"
  clampModes:
    eeClampMode: 2 # Otherwise freezes in various spots, check full intro.
    vuClampMode: 1 # Otherwise camera does not focus correctly on main character.
  gsHWFixes:
    mipmap: 1
    halfPixelOffset: 1 # Fixes effect misalignment.
    moveHandler: "MV_Ico" # Fixes depth buffer post-processing.
PCPX-96323:
  name: "Toro to Kyuujitsu"
  region: "NTSC-J"
PCPX-96324:
  name: "Dual Hearts"
  region: "NTSC-J"
PCPX-96328:
  name: "3 Title Special Disc (Saru! Get You! 2 - PoPoLoCrois: Hajimari no Bouken - Boku no Natsuyasumi 2)"
  region: "NTSC-J"
PCPX-96330:
  name: "Arc the Lad - Seirei no Tasogare - Premiere Disc"
  region: "NTSC-J"
PCPX-96554:
  name: "Games of Our Style - Tokyo Game Show 2003 Disc"
  region: "NTSC-J"
PCPX-96603:
  name: "Dark Cloud"
  region: "NTSC-J"
PCPX-96605:
  name: "MiruMiru 2000-nen 12-gatsudo Juchuugou"
  region: "NTSC-J"
PCPX-96606:
  name: "Play-Pre 2 Volume 0 - 2001 February"
  region: "NTSC-J"
PCPX-96607:
  name: "2000-2001 Winter Lineup"
  region: "NTSC-J"
PCPX-96608:
  name: "MiruMiru 2001-nen 1-gatsudo Juchuugou"
  region: "NTSC-J"
PCPX-96609:
  name: "Gran Turismo 3 - A-Spec - Tentou Shiyuu Disc Vol. 2"
  region: "NTSC-J"
  gsHWFixes:
    getSkipCount: "GSC_PolyphonyDigitalGames" # Fixes post processing.
PCPX-96610:
  name: "MiruMiru 2001-nen 2-gatsudo Juchuugou"
  region: "NTSC-J"
PCPX-96611:
  name: "Play-Pre 2 Volume 1 - 2001 April"
  region: "NTSC-J"
PCPX-96612:
  name: "MiruMiru 2001-nen 3-gatsudo Juchuugou"
  region: "NTSC-J"
PCPX-96613:
  name: "MiruMiru 2001-nen 4-gatsudo Juchuugou"
  region: "NTSC-J"
PCPX-96614:
  name: "MiruMiru 2001-nen 5-gatsudo Juchuugou"
  region: "NTSC-J"
PCPX-96615:
  name: "MiruMiru 2001-nen 6-gatsudo Juchuugou"
  region: "NTSC-J"
PCPX-96616:
  name: "PurePure 2 Volume 2"
  region: "NTSC-J"
PCPX-96617:
  name: "MiruMiru 2001-nen 8-gatsudo Juchuugou"
  region: "NTSC-J"
PCPX-96618:
  name: "MiruMiru 2001-nen 7-gatsudo Juchuugou"
  region: "NTSC-J"
PCPX-96619:
  name: "Genshi no Kotoba"
  region: "NTSC-J"
PCPX-96620:
  name: "MiruMiru 2001-nen 9-gatsudo Juchuugou"
  region: "NTSC-J"
PCPX-96621:
  name: "MiruMiru 2001-nen 10-gatsudo Juchuugou"
  region: "NTSC-J"
PCPX-96622:
  name: "Play-Pre 2 Volume 3 - 2001 December"
  region: "NTSC-J"
PCPX-96624:
  name: "Gran Turismo Concept - 2001 Tokyo"
  region: "NTSC-J"
PCPX-96625:
  name: "Play-Pre 2 Volume 4 - 2002 April"
  region: "NTSC-J"
PCPX-96626:
  name: "PlayStation Index (DVD-ROM-ban) - PlayStation 2 Official Soft Catalog 2002 April"
  region: "NTSC-J"
PCPX-96627:
  name: "2002 Natsu no Osusume Soft Otameshi Disc"
  region: "NTSC-J"
PCPX-96628:
  name: "Play-Pre 2 Volume 5 - 2002 August"
  region: "NTSC-J"
PCPX-96629:
  name: "Fuyu no Osusume Soft Otameshi Disc 2002"
  region: "NTSC-J"
PCPX-96630:
  name: "Play-Pre 2 Volume 6 - 2002 December"
  region: "NTSC-J"
PCPX-96631:
  name: "Koedashite Ikou. Taikenban"
  region: "NTSC-J"
PCPX-96632:
  name: "Play-Pre 2 Volume 7 - 2003 April"
  region: "NTSC-J"
PCPX-96633:
  name: "Play-Pre 2 Volume 7 - 2003 April - CM Collection"
  region: "NTSC-J"
PCPX-96634:
  name: "Gran Turismo - Subaru Driving Simulator Version"
  region: "NTSC-J"
PCPX-96635:
  name: "Play-Pre 2 Volume 8 - 2003 August"
  region: "NTSC-J"
PCPX-96636:
  name: "Siren"
  region: "NTSC-J"
PCPX-96638:
  name: "EyeToy - Play"
  region: "NTSC-J"
PCPX-96639:
  name: "Play-Pre 2 Volume 9 - 2003 December"
  region: "NTSC-J"
PCPX-96641:
  name: "Play-Pre 2 Volume 10 - 2004 April"
  region: "NTSC-J"
PCPX-96646:
  name: "Play-Pre 2 Volume 11 - 2004 August"
  region: "NTSC-J"
PCPX-96649:
  name: "Gran Turismo 4 [Demo]"
  region: "NTSC-J"
  compat: 5
  clampModes:
    vuClampMode: 2 # Text in GT mode works.
  gsHWFixes:
    mipmap: 2 # Mipmap + trilinear, improves ground textures to match sw renderer.
    trilinearFiltering: 1
    halfPixelOffset: 1 # Fixes weird edge shadows and depth bleed which happens on the edge as well.
    getSkipCount: "GSC_PolyphonyDigitalGames" # Fixes post processing.
  # eeClampMode = 3  Text in races works.
PCPX-96653:
  name: "Ratchet & Clank 3"
  region: "NTSC-J"
  gameFixes:
    - EETimingHack # Fixes SPR errors while going in-game.
  gsHWFixes:
    mipmap: 1 # Fixes garbage textures in the distance.
    disablePartialInvalidation: 1 # Prevents the situation that a level (Aquatos) doesn't render characters and geometry.
    halfPixelOffset: 2 # Fixes misaligned bloom.
    autoFlush: 2 # Helps fix misaligned bloom.
PCPX-96655:
  name: "Play-Pre 2 Volume 12 - 2004 December"
  region: "NTSC-J"
PCPX-96656:
  name: "Play-Pre 2 Volume 12 - 2004 December - PSP Movie Collection & CM Collection"
  region: "NTSC-J"
PCPX-96657:
  name: "Saru! Get You! 3"
  region: "NTSC-J"
PCPX-96660:
  name: "Tourist Trophy [Demo]"
  region: "NTSC-J"
  clampModes:
    vuClampMode: 2 # Fixes SPS in TT Mode menu caused by the moving tooltips.
  gsHWFixes:
    getSkipCount: "GSC_PolyphonyDigitalGames" # Fixes post processing.
PCPX-98017:
  name: "Ratchet & Clank - Giri Giri Ginga no Giga Battle [Demo]"
  region: "NTSC-J"
  gameFixes:
    - EETimingHack # Fixes SPR errors while going in-game.
  gsHWFixes:
    mipmap: 1
    halfPixelOffset: 2 # Fixes misaligned bloom.
    autoFlush: 2 # Helps fix misaligned bloom.
PCPX-98041:
  name: "Saru! Get You! Million Monkeys"
  region: "NTSC-J"
PCPX-98042:
  name: "Minna no Tennis"
  region: "NTSC-J"
  roundModes:
    vu1RoundMode: 1 # Fixes the display of scores and text ingame.
PDPX-99109:
  name: "DVD Player Version 3.04"
  region: "NTSC-J"
PKP2-00702:
  name: "Pandora - Kimi no Namae o Boku wa Shiru [Limited Edition]"
  region: "NTSC-J"
  gameFixes:
    - SoftwareRendererFMVHack # Vertical and horizontal lines in FMV.
PUPX-93033:
  name: "PlayStation Seizou Kensa-you Disc 3 CD-ROM US-ban Ver1.1"
  region: "NTSC-U"
SCAJ-10001:
  name: "Makai Senki Disgaea"
  region: "NTSC-Unk"
SCAJ-10003:
  name: "Taiko no Tatsujin - Doki! Shinkyoku Darake no Haru Matsuri"
  region: "NTSC-Unk"
SCAJ-10004:
  name: "Time Crisis 2 [PlayStation 2 The Best]"
  region: "NTSC-Unk"
SCAJ-10006:
  name: "Taiko no Tatsujin - Appare Sandaime"
  region: "NTSC-Unk"
SCAJ-10007:
  name: "Taiko no Tatsujin - Waku Waku Anime Matsuri"
  region: "NTSC-Unk"
SCAJ-10008:
  name: "Taiko no Tatsujin - Atsumare! Matsuri da!! Yondaime"
  region: "NTSC-Unk"
  gsHWFixes:
    alignSprite: 1 # Fixes vertical lines.
SCAJ-10009:
  name: "Psikyo Shooting Collection Vol.1 - Strikers 1-2"
  region: "NTSC-Unk"
  gameFixes:
    - EETimingHack # Fixes part II intro screen.
SCAJ-10010:
  name: "Mahjong Party - Play Mahjong with Swimsuit Beauty"
  region: "NTSC-Unk"
  compat: 5
SCAJ-10011:
  name: "Taiko no Tatsujin - Go! Go! Godaime"
  region: "NTSC-Unk"
  gsHWFixes:
    alignSprite: 1 # Fixes vertical lines.
SCAJ-10012:
  name: "Taiko Drum Master"
  region: "NTSC-Unk"
  gsHWFixes:
    alignSprite: 1 # Fixes vertical lines.
SCAJ-10013:
  name: "Taiko no Tatsujin - Tobikkiri! Anime Special"
  region: "NTSC-Unk"
  gsHWFixes:
    alignSprite: 1 # Fixes vertical lines.
SCAJ-10014:
  name: "Taiko no Tatsujin - Wai Wai Happy! Rokudaime"
  region: "NTSC-Unk"
  gsHWFixes:
    alignSprite: 1 # Fixes vertical lines.
SCAJ-10015:
  name: "Taiko no Tatsujin - Doka! to Oomori Nanadaime"
  region: "NTSC-Unk"
  gsHWFixes:
    alignSprite: 1 # Fixes vertical lines.
SCAJ-20001:
  name: "Ratchet & Clank"
  region: "NTSC-Unk"
  gameFixes:
    - EETimingHack # Fixes SPR errors while going in-game.
  gsHWFixes:
    mipmap: 1
SCAJ-20002:
  name: "Gallop Racer 6 - Revolution"
  region: "NTSC-Unk"
SCAJ-20003:
  name: "Warrior in Argus"
  region: "NTSC-J"
SCAJ-20004:
  name: "dot hack - Outbreak Part 3"
  region: "NTSC-Unk"
  memcardFilters:
    - "SCPS-55029"
    - "SCPS-55042"
    - "SCAJ-20004"
    - "SCAJ-20024"
    - "SLPS-25121"
    - "SLPS-25143"
    - "SLPS-25158"
    - "SLPS-25202"
    - "SLPS-73230"
    - "SLPS-73231"
    - "SLPS-73232"
    - "SLPS-73233"
SCAJ-20005:
  name: "Guilty Gear XX"
  region: "NTSC-J"
SCAJ-20006:
  name: "Gunbarl Collection with Time Crisis"
  region: "NTSC-Unk"
SCAJ-20007:
  name: "Xi[sai] Go"
  region: "NTSC-Unk"
SCAJ-20008:
  name: "V-Rally 3"
  region: "NTSC-Unk"
  gsHWFixes:
    preloadFrameData: 1 # Fixes fog and make lights on cars work again.
    autoFlush: 2 # Fixes sun luminosity and penetration of objects.
  gameFixes:
    - EETimingHack # Fixes random graphical corruption.
SCAJ-20009:
  name: "Herdy Gerdy"
  region: "NTSC-Unk"
SCAJ-20010:
  name: "Bakusou Dekotora Densetsu - Otoko Hanamichi Yume Roman"
  region: "NTSC-Unk"
  gsHWFixes:
    textureInsideRT: 1 # Fixes inside RT shuffling.
    getSkipCount: "GSC_BigMuthaTruckers"
SCAJ-20011:
  name: "Armored Core 3 - Silent Line"
  region: "NTSC-HK"
  gsHWFixes:
    halfPixelOffset: 2 # Corrects positioning of reflections on suit's surfaces.
  memcardFilters:
    - "SCAJ-20011"
    - "SCPS-55014"
    - "SLPS-25112"
    - "SLPS-25169"
    - "SLPS-73417"
    - "SLPS-73420"
SCAJ-20012:
  name: "Venus & Braves"
  region: "NTSC-Unk"
SCAJ-20013:
  name: "MotoGP 3"
  region: "NTSC-Unk"
  gsHWFixes:
    roundSprite: 2 # Fixes lines at the edges of the HUD.
    mipmap: 2 # Mipmap + trilinear, improves road and grass textures to match sw renderer.
    trilinearFiltering: 1
SCAJ-20014:
  name: "Time Splitter"
  region: "NTSC-Unk"
SCAJ-20015:
  name: "Shin Megami Tensei III - Nocturne"
  region: "NTSC-Unk"
  roundModes:
    eeRoundMode: 0 # Ladder glitch in "Assembly of Nihilo B11" level.
SCAJ-20016:
  name: "Warrior of Argus"
  region: "NTSC-C-E"
SCAJ-20017:
  name: "Sly Cooper"
  region: "NTSC-Unk"
SCAJ-20018:
  name: "This is Football 2003"
  region: "NTSC-Unk"
SCAJ-20019:
  name: "Arc the Lad - Twilight of the Spirits"
  region: "NTSC-J"
SCAJ-20020:
  name: "Drag-on Dragoon"
  region: "NTSC-C-J"
  clampModes:
    eeClampMode: 3 # Characters are visible in-game.
  gsHWFixes:
    texturePreloading: 1 # Performs better with partial preload because it is slow on locations outside gameplay foremost.
    mergeSprite: 1 # Fixes misaligned white lines.
    PCRTCOverscan: 1 # Fixes missing HUD.
SCAJ-20021:
  name: "Metal Slug 3"
  region: "NTSC-Unk"
  gsHWFixes:
    gpuPaletteConversion: 2 # Stops excessive VRAM usage with preloading on.
SCAJ-20022:
  name: "Super Robot Wars - Alpha 2nd"
  region: "NTSC-Unk"
SCAJ-20023:
  name: "Soul Calibur II"
  region: "NTSC-Unk"
  clampModes:
    vuClampMode: 2 # Respawn issues, Fixes SPS, avoids teleporting characters.
  gsHWFixes:
    alignSprite: 1 # Fixes vertical lines.
    recommendedBlendingLevel: 3 # Fixes menu transparency.
SCAJ-20024:
  name: "dot hack - Quarantine Part 4"
  region: "NTSC-Unk"
  memcardFilters:
    - "SCPS-55029"
    - "SCPS-55042"
    - "SCAJ-20004"
    - "SCAJ-20024"
    - "SLPS-25121"
    - "SLPS-25143"
    - "SLPS-25158"
    - "SLPS-25202"
    - "SLPS-73230"
    - "SLPS-73231"
    - "SLPS-73232"
    - "SLPS-73233"
SCAJ-20025:
  name: "Grand Prix Challenge"
  region: "NTSC-Unk"
  gameFixes:
    - VIFFIFOHack
SCAJ-20026:
  name: "Generation of Chaos 3"
  region: "NTSC-Unk"
SCAJ-20027:
  name: "Tenchu 3"
  region: "NTSC-Unk"
SCAJ-20028:
  name: "Tales of Destiny 2"
  region: "NTSC-Unk"
SCAJ-20029:
  name: "R-Type Final"
  region: "NTSC-Unk"
  compat: 5
SCAJ-20032:
  name: "Ka 2 - Let's Go Hawaiian"
  region: "NTSC-Unk"
SCAJ-20033:
  name: "Guilty Gear XX #Reload"
  region: "NTSC-Unk"
SCAJ-20034:
  name: "Summon Night 3"
  region: "NTSC-Unk"
SCAJ-20035:
  name: "Dead to Rights"
  region: "NTSC-Unk"
SCAJ-20037:
  name: "Monster Farm 4"
  region: "NTSC-Unk"
  compat: 5
  gsHWFixes:
    halfPixelOffset: 1 # Corrects shadow misalignment.
SCAJ-20038:
  name: "Arc the Lad - Twilight of the Spirits"
  region: "NTSC-Unk"
SCAJ-20039:
  name: "Sidewinder V"
  region: "NTSC-Unk"
SCAJ-20040:
  name: "King of Fighters 2001, The"
  region: "NTSC-Unk"
SCAJ-20041:
  name: "Energy Airforce - Aim Strike!"
  region: "NTSC-Unk"
  gsHWFixes:
    autoFlush: 2 # Corrects post-processing effect on jet exhausts.
SCAJ-20043:
  name: "ChainDive"
  region: "NTSC-Unk"
SCAJ-20044:
  name: "Tomb Raider - The Angel of Darkness"
  region: "NTSC-Unk"
  gsHWFixes:
    autoFlush: 2 # Fixes lava effect.
SCAJ-20045:
  name: "Shadow Tower Abyss"
  region: "NTSC-Unk"
SCAJ-20046:
  name: "Siren"
  region: "NTSC-Unk"
  gsHWFixes:
    roundSprite: 1 # Fixes gaps between menu options.
    cpuSpriteRenderBW: 4 # Fixes sky rendering.
    cpuSpriteRenderLevel: 2 # Needed for above.
SCAJ-20047:
  name: "Time Crisis 3"
  region: "NTSC-Unk"
  gsHWFixes:
    texturePreloading: 0 # Performs much better with no preload.
SCAJ-20048:
  name: "R - Racing Evolution"
  region: "NTSC-J"
  gsHWFixes:
    alignSprite: 1 # Fixes vertical lines.
SCAJ-20050:
  name: "Fatal Frame II - Crimson Butterfly"
  region: "NTSC-Unk"
SCAJ-20052:
  name: "Ratchet & Clank 2 - Gagaga! Ginga no Commando-ssu"
  region: "NTSC-J"
SCAJ-20055:
  name: "Battle Gear 3"
  region: "NTSC-Unk"
  clampModes:
    vuClampMode: 3 # Stops car from falling through track.
SCAJ-20056:
  name: "Bujingai"
  region: "NTSC-Unk"
SCAJ-20057:
  name: "Front Mission 4"
  region: "NTSC-Unk"
  gsHWFixes:
    preloadFrameData: 1 # Fixes mech shadows.
    roundSprite: 2 # Fixes font artifacts.
SCAJ-20058:
  name: "Terminator 3 - Rise of the Machines"
  region: "NTSC-Unk"
SCAJ-20059:
  name: "Minna no Golf 4"
  region: "NTSC-Unk"
SCAJ-20060:
  name: "Time Crisis 3"
  region: "NTSC-Unk"
  gsHWFixes:
    texturePreloading: 0 # Performs much better with no preload.
SCAJ-20061:
  name: "Seven Samurai 20XX"
  region: "NTSC-Unk"
SCAJ-20062:
  name: "Crouching Tiger, Hidden Dragon"
  region: "NTSC-Unk"
  gameFixes:
    - InstantDMAHack # Fixes FMVs to be visible.
SCAJ-20063:
  name: "Popolocrois - The Law of the Moon"
  region: "NTSC-Unk"
SCAJ-20064:
  name: "Nebula - Echo Night"
  region: "NTSC-Unk"
SCAJ-20065:
  name: "EyeToy - Play [with Camera]"
  region: "NTSC-Unk"
SCAJ-20066:
  name: "Gran Turismo 4 - Prologue"
  region: "NTSC-Unk"
  compat: 5
  gsHWFixes:
    mipmap: 2 # Mipmap + trilinear, improves ground textures to match sw renderer.
    trilinearFiltering: 1
    halfPixelOffset: 1 # Fixes weird edge shadows and depth bleed which happens on the edge as well.
    getSkipCount: "GSC_PolyphonyDigitalGames" # Fixes post processing.
  memcardFilters:
    - "SCAJ-20066"
    - "SCAJ-30006"
    - "SCAJ-30007"
    - "SCAJ-30008"
    - "SCPS-15055"
    - "SCPS-17001"
    - "SCPS-19252"
    - "SCPS-19304"
    - "SCPS-15009"
    - "SCPS-55007"
  # eeClampMode = 3  Text in races works.
  # vuClampMode = 2  Text in GT mode works.
SCAJ-20067:
  name: "GunGrave O.D."
  region: "NTSC-Unk"
SCAJ-20068:
  name: "Final Fantasy X-2 International"
  region: "NTSC-Unk"
  gameFixes:
    - SoftwareRendererFMVHack # Fixes brightness and overlapping subtitles.
  gsHWFixes:
    roundSprite: 1 # Fixes font artifacts.
SCAJ-20069:
  name: "Gallop Racer - Lucky 7"
  region: "NTSC-Unk"
SCAJ-20070:
  name: "Star Ocean 3 [Director's Cut]"
  region: "NTSC-Unk"
  gameFixes:
    - VuAddSubHack
  gsHWFixes:
    halfPixelOffset: 2 # Fixes bloom and ghosting in certain areas.
    roundSprite: 1 # Fixes door transition vertical lines and mini-map artifacts.
    textureInsideRT: 1 # Fixes missing battle effects.
SCAJ-20072:
  name: "Ghost in the Shell - Stand Alone Complex"
  region: "NTSC-Unk"
  gsHWFixes:
    halfPixelOffset: 1 # Fixes texture and lighting misalignment.
    mergeSprite: 1 # Fixes most vertical lines and lighting misalignment.
    getSkipCount: "GSC_GiTS"
SCAJ-20073:
  name: "Jak and Daxter II"
  region: "NTSC-Unk"
  gsHWFixes:
    mipmap: 2 # Fixes broken textures.
    trilinearFiltering: 1 # Fixes water textures.
    cpuSpriteRenderBW: 4 # Fixes character and water textures.
    cpuSpriteRenderLevel: 2 # Needed for above.
    autoFlush: 2 # Fixes lighting.
SCAJ-20074:
  name: "King of Fighters 2002, The"
  region: "NTSC-Unk"
SCAJ-20075:
  name: "Dragon Quest V - Bride of the Sky"
  region: "NTSC-Unk"
SCAJ-20076:
  name: "Armored Core - Nexus [Disc 1]"
  region: "NTSC-Unk"
  gsHWFixes:
    halfPixelOffset: 1 # Fixes misaligned blur.
    recommendedBlendingLevel: 3 # Fixes level brightness.
  memcardFilters:
    - "SCAJ-20076"
    - "SCAJ-20077"
    - "SLPS-25338"
    - "SLPS-25339"
    - "SLPS-73202"
    - "SLPS-73203"
SCAJ-20077:
  name: "Armored Core - Nexus [Disc 2]"
  region: "NTSC-Unk"
  gsHWFixes:
    halfPixelOffset: 1 # Fixes misaligned blur.
    recommendedBlendingLevel: 3 # Fixes level brightness.
  memcardFilters:
    - "SCAJ-20076"
    - "SCAJ-20077"
    - "SLPS-25338"
    - "SLPS-25339"
    - "SLPS-73202"
    - "SLPS-73203"
SCAJ-20078:
  name: "Kuon"
  region: "NTSC-Unk"
  roundModes:
    eeRoundMode: 0 # Fixes Sugoroku mini-game.
  speedHacks:
    instantVU1: 1 # This option enabled brings about 15% more FPS when I tested it, *your experience may differ.
    mtvu: 0 # For some reason this games halves the internal game FPS with this option.
  gsHWFixes:
    halfPixelOffset: 2 # Reduces ghosting.
    preloadFrameData: 1 # Fixes red cracklines on walls.
SCAJ-20079:
  name: "Katamari Damacy"
  region: "NTSC-Unk"
  roundModes:
    vu1RoundMode: 0 # Fixes SPS.
  clampModes:
    vu1ClampMode: 3 # Fixes SPS.
  speedHacks:
    mvuFlag: 0 # Fixes performance and falling through floor and other gameplay.
SCAJ-20080:
  name: "Kaena"
  region: "NTSC-Unk"
SCAJ-20081:
  name: "Xenosaga Freaks"
  region: "NTSC-Unk"
SCAJ-20082:
  name: "GunGrave OD"
  region: "NTSC-Unk"
SCAJ-20083:
  name: "Bakuso! Mountain Bikers"
  region: "NTSC-Unk"
SCAJ-20084:
  name: "MLB '04"
  region: "NTSC-Unk"
SCAJ-20085:
  name: "Sakurazaka Shouboutai"
  region: "NTSC-Unk"
SCAJ-20086:
  name: "Xenosaga Episode II - Jenseits von Gut und Bose [Disc 1 of 2]"
  region: "NTSC-Unk"
  gsHWFixes:
    autoFlush: 2 # Fixes shadows in cutscenes.
    halfPixelOffset: 2 # Fixes lighting misalignment and shadows.
    roundSprite: 2 # Fixes font artifacts.
  memcardFilters:
    - "SLPS-29001"
    - "SLPS-29002"
    - "SLPS-29005"
    - "SLPS-25368"
    - "SLPS-25353"
    - "SLPS-73224"
SCAJ-20087:
  name: "Xenosaga Episode II - Jenseits von Gut und Bose [Disc 2 of 2]"
  region: "NTSC-Unk"
  gsHWFixes:
    autoFlush: 2 # Fixes shadows in cutscenes.
    halfPixelOffset: 2 # Fixes lighting misalignment and shadows.
    roundSprite: 2 # Fixes font artifacts.
  memcardFilters:
    - "SLPS-29001"
    - "SLPS-29002"
    - "SLPS-29005"
    - "SLPS-25368"
    - "SLPS-25353"
    - "SLPS-73224"
SCAJ-20088:
  name: "Yu Zi - Qiang Jiu Shui Tang Da Zuo Zhan"
  region: "NTSC-C"
SCAJ-20089:
  name: "Athens 2004"
  region: "NTSC-Unk"
SCAJ-20090:
  name: "Gacha Mecha Stadium - Saru Battle"
  region: "NTSC-Unk"
  gsHWFixes:
    halfPixelOffset: 2 # Corrects fullscreen bloom misalignment.
SCAJ-20092:
  name: "Samurai Spirits Zero"
  region: "NTSC-Unk"
SCAJ-20093:
  name: "Tenchu Kurenai"
  region: "NTSC-Unk"
SCAJ-20094:
  name: "Minna no Golf 4 [PlayStation 2 The Best]"
  region: "NTSC-Unk"
SCAJ-20095:
  name: "Digital Devil Saga - Avatar Tuner"
  region: "NTSC-Unk"
  gameFixes:
    - EETimingHack
SCAJ-20096:
  name: "Guilty Gear Isuka"
  region: "NTSC-Unk"
SCAJ-20097:
  name: "EyeToy - FuriFuri Dance Tengoku"
  region: "NTSC-Unk"
SCAJ-20098:
  name: "EyeToy - Oosawagi! Ukkiiuki Game Tenkomori!!"
  region: "NTSC-Unk"
SCAJ-20099:
  name: "Ico"
  region: "NTSC-Unk"
  compat: 5
  clampModes:
    eeClampMode: 2 # Otherwise freezes in various spots, check full intro.
    vuClampMode: 1 # Otherwise camera does not focus correctly on main character.
  gsHWFixes:
    mipmap: 1
    halfPixelOffset: 1 # Fixes effect misalignment.
    moveHandler: "MV_Ico" # Fixes depth buffer post-processing.
SCAJ-20100:
  name: "Tenchu Kurenai"
  region: "NTSC-C-J"
SCAJ-20101:
  name: "EyeToy - Saru"
  region: "NTSC-Unk"
SCAJ-20102:
  name: "Tales of Symphonia"
  region: "NTSC-Unk"
  gsHWFixes:
    alignSprite: 1 # Fixes vertical lines.
    getSkipCount: "GSC_TalesofSymphonia"
SCAJ-20104:
  name: "Ace Combat 5 - The Unsung War"
  region: "NTSC-Unk"
  gameFixes:
    - SoftwareRendererFMVHack # Fixes FMVs disabling hash cache.
  gsHWFixes:
    recommendedBlendingLevel: 3
    mipmap: 1
    halfPixelOffset: 3 # Fixes ghosting in foggy maps.
    roundSprite: 1 # Fixes font and HUD artifacts.
    alignSprite: 1 # Fixes vertical lines.
    mergeSprite: 1 # Fixes vertical lines.
    cpuCLUTRender: 1 # Fixes sun occlusion.
SCAJ-20105:
  name: "Armored Core - Nine breaker"
  region: "NTSC-Unk"
  gsHWFixes:
    halfPixelOffset: 1 # Fixes misaligned blur.
    recommendedBlendingLevel: 3 # Fixes level brightness.
SCAJ-20107:
  name: "Bakufuu Slash! Kizna Arashi"
  region: "NTSC-Unk"
SCAJ-20108:
  name: "Arc the Lad - Generation"
  region: "NTSC-Unk"
SCAJ-20109:
  name: "Ratchet & Clank 3 - Up your Arsenal"
  region: "NTSC-Unk"
  gameFixes:
    - EETimingHack # Fixes SPR errors while going in-game.
  gsHWFixes:
    mipmap: 1 # Fixes garbage textures in the distance.
    disablePartialInvalidation: 1 # Prevents the situation that a level (Aquatos) doesn't render characters and geometry.
    halfPixelOffset: 2 # Fixes misaligned bloom.
    autoFlush: 2 # Helps fix misaligned bloom.
SCAJ-20110:
  name: "Dragon Quest VIII - Sora to Daichi to Norowareshi Himegimi"
  region: "NTSC-Unk"
  gsHWFixes:
    autoFlush: 2 # Fixes missing bloom from surfaces like windows.
    # halfPixelOffset: 1 # Aligns shadows properly, but causes grid lines to appear in sea travel.
    halfPixelOffset: 2 # Sharpens world in far distances, aligns some bloom better.
    roundSprite: 1 # Fixes font artifacts.
SCAJ-20111:
  name: "Crash Bandicoot 5"
  region: "NTSC-Unk"
  gameFixes:
    - XGKickHack # Fixes bad Geometry.
  gsHWFixes:
    halfPixelOffset: 2 # Fixes depth lines.
SCAJ-20112:
  name: "Tales of Rebirth"
  region: "NTSC-Unk"
  speedHacks:
    mvuFlag: 0 # Fixes graphical corruptions.
SCAJ-20113:
  name: "Dragon Quest & Final Fantasy in Itadaki Street"
  region: "NTSC-Unk"
SCAJ-20114:
  name: "Tsukiyo ni Saraba"
  region: "NTSC-Unk"
SCAJ-20115:
  name: "Yoshitsune Eiyuuden"
  region: "NTSC-Unk"
SCAJ-20116:
  name: "Death by Degrees - Tekken - Nina Williams"
  region: "NTSC-C-J"
  gsHWFixes:
    alignSprite: 1 # Fixes FMV lines.
    getSkipCount: "GSC_DeathByDegreesTekkenNinaWilliams"
SCAJ-20117:
  name: "Fu-un Bakumatsu-den"
  region: "NTSC-Unk"
SCAJ-20118:
  name: "Radiata Stories"
  region: "NTSC-J"
  gameFixes:
    - VuAddSubHack
  gsHWFixes:
    alignSprite: 1 # Fixes vertical bars.
    halfPixelOffset: 2 # Fixes misalignment bloom effects.
SCAJ-20119:
  name: "Gladiator - Road to Freedom"
  region: "NTSC-J"
  gsHWFixes:
    halfPixelOffset: 3 # Fixes bloom misalignment still a bit misaligned.
    roundSprite: 1 # Fixes bloom misalignment still a bit misaligned.
    cpuCLUTRender: 1 # Fixes sun background on the windows when selecting your 'race'.
SCAJ-20120:
  name: "Digital Devil Saga - Avatar Tuner 2"
  region: "NTSC-Unk"
  gameFixes:
    - EETimingHack
  memcardFilters:
    - "SCAJ-20120"
    - "SLPM-65795"
    - "SLPM-66373"
    - "SCAJ-20095"
    - "SLPM-65597"
    - "SLPM-66372"
SCAJ-20121:
  name: "Armored Core - Formula Front"
  region: "NTSC-Unk"
  gsHWFixes:
    halfPixelOffset: 1 # Fixes misaligned blur.
    cpuSpriteRenderBW: 1 # Fixes broken shadow caused by HPO 1.
    cpuSpriteRenderLevel: 2 # Needed for above.
SCAJ-20122:
  name: "Swords of Destiny"
  region: "NTSC-Unk"
SCAJ-20123:
  name: "Wild ARMs - The 4th Detonator"
  region: "NTSC-Unk"
  gsHWFixes:
    textureInsideRT: 1
    wildArmsHack: 1 # Fixes font artifacts and out-of-bound 2D textures.
    roundSprite: 1 # Fixes font artifacts.
    gpuPaletteConversion: 2 # Fixes micro-stuttering and drops in performance while also reducing hash cache explosions and GS usage.
  memcardFilters:
    - "SCAJ-20123"
    - "SCPS-15091"
    - "SCPS-15092"
    - "SCPS-19313"
    - "SCPS-19322"
    - "SCPS-19323"
    - "SCAJ-30002"
    - "SCPS-17002"
    - "SCPS-19251"
    - "SCPS-19253"
SCAJ-20124:
  name: "Romancing Saga - Minstrel Song"
  region: "NTSC-Unk"
SCAJ-20125:
  name: "Tekken 5"
  region: "NTSC-Unk"
  clampModes:
    eeClampMode: 2 # Fixes camera and stops constant coin noises on Pirates Cove.
  gsHWFixes:
    alignSprite: 1
    getSkipCount: "GSC_Tekken5"
SCAJ-20126:
  name: "Tekken 5"
  region: "NTSC-Unk"
  clampModes:
    eeClampMode: 2 # Fixes camera and stops constant coin noises on Pirates Cove.
  gsHWFixes:
    alignSprite: 1
    getSkipCount: "GSC_Tekken5"
SCAJ-20127:
  name: "EyeToy - Play 2 [with Camera]"
  region: "NTSC-Unk"
SCAJ-20128:
  name: "EyeToy - Play 2"
  region: "NTSC-Unk"
SCAJ-20129:
  name: "Ponkotsu Roman Daikatsugeki Bumpy Trot"
  region: "NTSC-Unk"
  gsHWFixes:
    getSkipCount: "GSC_SteambotChronicles" # Causes green (incorrect) water but removes depth and blur issues.
    roundSprite: 1 # Fixes colored 3D anaglyph bleeding effects.
SCAJ-20130:
  name: "Namco x Capcom"
  region: "NTSC-Unk"
SCAJ-20131:
  name: "namCollection - Namco 50th Anniversary"
  region: "NTSC-Unk"
SCAJ-20132:
  name: "Drag-on Dragoon 2 - Fuuin no Aka, Haitoku no Kuro"
  region: "NTSC-J"
  clampModes:
    eeClampMode: 2 # Fixes wrong color on some characters and breakable objects.
  gsHWFixes:
    halfPixelOffset: 1 # Fixes ghosting characters.
    mergeSprite: 1 # Align sprite fixes FMVs but not garbage in-game, so needs merge sprite instead.
    texturePreloading: 1 # Performs better with partial preload because it is slow on locations outside gameplay foremost.
SCAJ-20133:
  name: "Kagero 2 - Dark Illusion"
  region: "NTSC-Unk"
SCAJ-20134:
  name: "Genji"
  region: "NTSC-Unk"
SCAJ-20135:
  name: "Minna Daisuki Katamari Damacy"
  region: "NTSC-Unk"
  roundModes:
    vu1RoundMode: 0 # Fixes SPS.
  clampModes:
    vu1ClampMode: 3 # Fixes SPS.
  speedHacks:
    mvuFlag: 0 # Fixes performance and falling through floor and other gameplay.
  memcardFilters:
    - "SCAJ-20135"
    - "SLPS-25467"
    - "SLPS-73241"
    - "SCAJ-20079"
    - "SLPS-25360"
    - "SLPS-73210"
    - "SLPS-73240"
SCAJ-20136:
  name: "Ace Combat 5 - The Unsung War [PlayStation 2 The Best]"
  region: "NTSC-Unk"
  gameFixes:
    - SoftwareRendererFMVHack # Fixes FMVs disabling hash cache.
  gsHWFixes:
    recommendedBlendingLevel: 3
    mipmap: 1
    halfPixelOffset: 3 # Fixes ghosting in foggy maps.
    roundSprite: 1 # Fixes font and HUD artifacts.
    alignSprite: 1 # Fixes vertical lines.
    mergeSprite: 1 # Fixes vertical lines.
    cpuCLUTRender: 1 # Fixes sun occlusion.
SCAJ-20137:
  name: "Musashiden II - Blademaster"
  region: "NTSC-Unk"
  gameFixes:
    - EETimingHack # Fixes garbled character animation.
SCAJ-20138:
  name: "Ape Escape 3"
  region: "NTSC-Unk"
  gsHWFixes:
    preloadFrameData: 1 # Fixes black background in the pause menu.
    mipmap: 2 # Fixes miptrick texture effects.
    trilinearFiltering: 1 # Fixes miptrick blending.
    halfPixelOffset: 2 # Fixes misaligned blur.
    autoFlush: 2 # Fixes corruption in cutscenes and brightens the image.
SCAJ-20139:
  name: "Zero - Shisei no Koe" # Fatal Frame - Rei - Irezumi no Sei
  region: "NTSC-Unk"
  gsHWFixes:
    halfPixelOffset: 1 # Reduces blurriness.
SCAJ-20140:
  name: "Bleach - Erabareshi Tamashi"
  region: "NTSC-Unk"
SCAJ-20141:
  name: "Grandia III"
  region: "NTSC-J"
SCAJ-20143:
  name: "Armored Core - Last Raven"
  region: "NTSC-Unk"
  gsHWFixes:
    cpuSpriteRenderBW: 2 # Fixes glow effects, but breaks shadows of certain objects.
    cpuSpriteRenderLevel: 2 # Needed for above.
    halfPixelOffset: 2 # Corrects shadow alignment and reduces blurriness.
    recommendedBlendingLevel: 3 # Fixes level and map menu brightness.
SCAJ-20144:
  name: "Zhuo Hou La 3"
  region: "NTSC-C"
  gsHWFixes:
    preloadFrameData: 1 # Fixes black background in the pause menu.
    mipmap: 2 # Fixes miptrick texture effects.
    trilinearFiltering: 1 # Fixes miptrick blending.
    halfPixelOffset: 2 # Fixes misaligned blur.
    autoFlush: 2 # Fixes corruption in cutscenes and brightens the image.
SCAJ-20145:
  name: "Tales of Legendia"
  region: "NTSC-J"
  gameFixes:
    - SoftwareRendererFMVHack # Fixes garbage textures presumably from texture cache issue.
  gsHWFixes:
    getSkipCount: "GSC_TalesOfLegendia"
SCAJ-20146:
  name: "Wang Da Yu Ju Xiang"
  region: "NTSC-C"
  compat: 5
  gsHWFixes:
    mipmap: 1
    halfPixelOffset: 1 # Fixes misalignments and borders on side.
  memcardFilters:
    - "SCAJ-20146"
    - "SCAJ-20196"
    - "SCAJ-20099"
    - "SCPS-11003"
    - "SCPS-19103"
    - "SCPS-19151"
    - "SCPS-55001"
SCAJ-20147:
  name: "Heavy Metal Thunder"
  region: "NTSC-J"
SCAJ-20148:
  name: "Tokyo Bus Guide 2"
  region: "NTSC-Unk"
SCAJ-20149:
  name: "Kingdom Hearts - Final Mix [Ultimate Hits]"
  region: "NTSC-Unk"
SCAJ-20150:
  name: "Critical Velocity"
  region: "NTSC-Unk"
SCAJ-20151:
  name: "MotoGP 4"
  region: "NTSC-Unk"
SCAJ-20152:
  name: "Urban Reign"
  region: "NTSC-J"
  gameFixes:
    - EETimingHack # Mitigates bounciness of vertical shaking but better fix with EE cyclerate +1.
  gsHWFixes:
    alignSprite: 1 # Fixes vertical lines.
    textureInsideRT: 1 # Fixes corruption.
    getSkipCount: "GSC_UrbanReign"
SCAJ-20153:
  name: "Code Age Commanders"
  region: "NTSC-J"
SCAJ-20154:
  name: "Prince of Persia - Warrior Within"
  region: "NTSC-Unk"
  gsHWFixes:
    autoFlush: 2 # Reduces post-processing misalignment.
SCAJ-20155:
  name: "Yoshitsune Eiyuuden Shura - The Story of Hero Yoshitsune Shura"
  region: "NTSC-Unk"
SCAJ-20156:
  name: "Gallop Racer 8 - Live Horse Racing"
  region: "NTSC-Unk"
SCAJ-20157:
  name: "Ratchet & Clank 4th - GiriGiri Gingano Giga-battle"
  region: "NTSC-Unk"
  gameFixes:
    - EETimingHack # Fixes SPR errors while going in-game.
  gsHWFixes:
    mipmap: 1 # Fixes broken textures.
    disablePartialInvalidation: 1 # Prevents world geometry and some models from vanishing when pausing or opening vendor.
    halfPixelOffset: 2 # Fixes misaligned bloom.
    autoFlush: 2 # Helps fix misaligned bloom.
SCAJ-20158:
  name: "Ikusa Gami"
  region: "NTSC-Unk"
  gameFixes:
    - VIF1StallHack # Fixes black screen on boot.
  gsHWFixes:
    autoFlush: 2 # Fixes missing bloom effects.
    halfPixelOffset: 2 # Fixes misaligned lighting and bloom.
SCAJ-20159:
  name: "Soul Calibur III"
  region: "NTSC-C"
  gameFixes:
    - EETimingHack # Fixes bad colours on character select when in Progressive Scan.
  clampModes:
    vuClampMode: 2 # Respawn issues, Fixes SPS, avoids teleporting characters.
  gsHWFixes:
    alignSprite: 1 # Fixes vertical lines.
    halfPixelOffset: 3 # Fixes blurriness (normal vertex causes vertical lines).
    recommendedBlendingLevel: 3 # Fixes menu transparency.
SCAJ-20160:
  name: "Yoshitsuneki"
  region: "NTSC-Unk"
SCAJ-20161:
  name: "Siren 2"
  region: "NTSC-J"
  gameFixes:
    - XGKickHack # Fixes SPS.
  gsHWFixes:
    mergeSprite: 1 # Fixes vertical lines in-game.
    preloadFrameData: 1 # Fixes some missing effects.
SCAJ-20162:
  name: "Rogue Galaxy"
  region: "NTSC-Unk"
  gsHWFixes:
    autoFlush: 2 # Fix glow effects from lamps.
    roundSprite: 1 # Fix mini-map and field menu.
    preloadFrameData: 1 # Fixes corrupt textures especially on water.
    disablePartialInvalidation: 1 # Prevents UI and subtitles from disappearing.
SCAJ-20163:
  name: "Tales of the Abyss"
  region: "NTSC-Unk"
  gsHWFixes:
    halfPixelOffset: 2 # Fixes ghosting.
    autoFlush: 2 # Fixes post lighting.
SCAJ-20164:
  name: "Kingdom Hearts II"
  region: "NTSC-Unk"
  gsHWFixes:
    autoFlush: 2 # Fixes effects.
    roundSprite: 2 # Fixes upscaling artifacts.
SCAJ-20165:
  name: "Bleach - Hanatareshi Yabou"
  region: "NTSC-Unk"
SCAJ-20166:
  name: "Front Mission 5 - Scars of the War"
  region: "NTSC-Unk"
  gsHWFixes:
    halfPixelOffset: 1 # Fixes blurriness but no fix for font or other artifacts possible with round sprite.
SCAJ-20167:
  name: "Siren 2"
  region: "NTSC-C-J"
  gameFixes:
    - XGKickHack # Fixes SPS.
  gsHWFixes:
    mergeSprite: 1 # Fixes vertical lines in-game.
    preloadFrameData: 1 # Fixes some missing effects.
SCAJ-20168:
  name: "Rule of Rose"
  region: "NTSC-Unk"
SCAJ-20169:
  name: "Dirge of Cerberus - Final Fantasy VII"
  region: "NTSC-Unk"
  gsHWFixes:
    autoFlush: 2 # Fixes lighting.
SCAJ-20170:
  name: "Tourist Trophy"
  region: "NTSC-C"
  compat: 5
  clampModes:
    vuClampMode: 2 # Fixes SPS in TT Mode menu caused by the moving tooltips.
  gsHWFixes:
    getSkipCount: "GSC_PolyphonyDigitalGames" # Fixes post processing.
SCAJ-20171:
  name: "Zettai Zetsumei Toshi 2 - Itetsuita Kioku Tachi"
  region: "NTSC-J"
  gsHWFixes:
    getSkipCount: "GSC_ZettaiZetsumeiToshi2"
SCAJ-20172:
  name: "Final Fantasy XII"
  region: "NTSC-Unk"
SCAJ-20173:
  name: "Ace Combat Zero - The Belkan War"
  region: "NTSC-Unk"
  gameFixes:
    - SoftwareRendererFMVHack # Fixes FMVs disabling hash cache.
  gsHWFixes:
    recommendedBlendingLevel: 3
    mipmap: 1
    halfPixelOffset: 3 # Fixes ghosting in foggy maps.
    roundSprite: 1 # Fixes HUD artifacts.
    alignSprite: 1 # Fixes vertical lines.
    mergeSprite: 1 # Better aligns main menu strips, improving font readability.
  memcardFilters:
    - "SCAJ-20173"
    - "SLPS-25629"
    - "SLPS-73250"
    - "SLPS-25052"
    - "SLPS-73205"
    - "SLPS-73410"
    - "SCAJ-20104"
    - "SCAJ-20136"
    - "SLPS-25418"
    - "SLPS-73218"
SCAJ-20175:
  name: "Dragon Quest - Shounen Yangus to Fushigi no Dungeon"
  region: "NTSC-J"
SCAJ-20176:
  name: "Curious George"
  region: "NTSC-HK"
SCAJ-20177:
  name: "Valkyrie Profile 2 - Silmeria"
  region: "NTSC-Unk"
  compat: 5
  gameFixes:
    - VuAddSubHack
  gsHWFixes:
    halfPixelOffset: 2 # Reduces bloom misalignment.
    roundSprite: 1 # Fixes area transition vertical lines and lessens red forest vertical lines.
    textureInsideRT: 1 # Required for swirl battle transition.
    nativePaletteDraw: 1
SCAJ-20178:
  name: "Ape Escape - Million Monkeys"
  region: "NTSC-Unk"
  compat: 5
SCAJ-20179:
  name: "Xenosaga Episode III - Also Sprach Zarathustra [Disc 1 of 2]"
  region: "NTSC-Unk"
  gsHWFixes:
    autoFlush: 2 # Fixes shadows in cutscenes.
    halfPixelOffset: 2 # Fixes lighting misalignment and reduces ground shadows (probably texture cache issue).
    roundSprite: 2 # Fixes font artifacts.
    textureInsideRT: 1 # Fixes bad crystal surfaces.
SCAJ-20180:
  name: "Xenosaga Episode III - Also Sprach Zarathustra [Disc 2 of 2]"
  region: "NTSC-Unk"
  gsHWFixes:
    autoFlush: 2 # Fixes shadows in cutscenes.
    halfPixelOffset: 2 # Fixes lighting misalignment and reduces ground shadows (probably texture cache issue).
    roundSprite: 2 # Fixes font artifacts.
    textureInsideRT: 1 # Fixes bad crystal surfaces.
SCAJ-20181:
  name: "Minna no Tennis"
  region: "NTSC-Unk"
  roundModes:
    vu1RoundMode: 1 # Fixes the display of scores and text ingame.
SCAJ-20182:
  name: "Tales of Destiny"
  region: "NTSC-Unk"
  gameFixes:
    - FpuMulHack
SCAJ-20183:
  name: "Wild ARMs - The Vth Vanguard"
  region: "NTSC-J"
  gsHWFixes:
    roundSprite: 1 # Fixes font sizes.
    cpuFramebufferConversion: 1 # Fixes sepia-tone flashback sequences.
    gpuPaletteConversion: 2 # Fixes micro-stuttering and drops in performance while also reducing hash cache explosions and GS usage.
SCAJ-20184:
  name: "Seiken Densetsu 4"
  region: "NTSC-Unk"
SCAJ-20185:
  name: "Super Robot Taisen - Original Generations"
  region: "NTSC-Unk"
SCAJ-20188:
  name: "Final Fantasy XII - International - Zodiac Job System"
  region: "NTSC-Unk"
SCAJ-20190:
  name: "God of War II"
  region: "NTSC-Unk"
  gsHWFixes:
    alignSprite: 1 # Fixes water vertical lines.
    halfPixelOffset: 2 # Fixes misaligned bloom.
    roundSprite: 1 # Fixes chromatic effect.
    autoFlush: 1 # Fixes sun occlusion.
SCAJ-20191:
  name: "Super Robot Taisen OG - Original Generations Gaiden [Limited Edition]"
  region: "NTSC-Unk"
SCAJ-20192:
  name: "Super Robot Taisen OG - Original Generations Gaiden"
  region: "NTSC-Unk"
SCAJ-20193:
  name: "Tales of Destiny [Director's Cut] [Premium Box]"
  region: "NTSC-C-J"
  gameFixes:
    - FpuMulHack
SCAJ-20194:
  name: "Minna no Golf 4 [PlayStation 2 The Best]"
  region: "NTSC-Unk"
SCAJ-20195:
  name: "Ape Escape 3 [PlayStation 2 The Best]"
  region: "NTSC-C"
  gsHWFixes:
    preloadFrameData: 1 # Fixes black background in the pause menu.
    mipmap: 2 # Fixes miptrick texture effects.
    trilinearFiltering: 1 # Fixes miptrick blending.
    halfPixelOffset: 2 # Fixes misaligned blur.
    autoFlush: 2 # Fixes corruption in cutscenes and brightens the image.
SCAJ-20196:
  name: "Wang Da Yu Ju Xiang [PlayStation 2 The Best]"
  region: "NTSC-C"
  gsHWFixes:
    mipmap: 1
    halfPixelOffset: 1 # Fixes misalignments and borders on side.
  memcardFilters:
    - "SCAJ-20146"
    - "SCAJ-20196"
    - "SCAJ-20099"
    - "SCPS-11003"
    - "SCPS-19103"
    - "SCPS-19151"
    - "SCPS-55001"
SCAJ-20197:
  name: "Valkyrie Profile 2 - Silmeria [Ultimate Hits]"
  region: "NTSC-Unk"
  compat: 5
  gameFixes:
    - VuAddSubHack
  gsHWFixes:
    halfPixelOffset: 2 # Reduces bloom misalignment.
    roundSprite: 1 # Fixes area transition vertical lines and lessens red forest vertical lines.
    textureInsideRT: 1 # Required for swirl battle transition.
    nativePaletteDraw: 1
SCAJ-20198:
  name: "Everybody's Tennis [PlayStation 2 The Best]"
  region: "NTSC-Unk"
SCAJ-20199:
  name: "Tekken 5 [PlayStation 2 The Best]"
  region: "NTSC-Unk"
  clampModes:
    eeClampMode: 2 # Fixes camera and stops constant coin noises on Pirates Cove.
  gsHWFixes:
    alignSprite: 1
    getSkipCount: "GSC_Tekken5"
SCAJ-25002:
  name: "Shinobi"
  region: "NTSC-Unk"
SCAJ-25004:
  name: "Kingdom Hearts - Final Mix"
  region: "NTSC-Unk"
SCAJ-25008:
  name: "Initial D - Special Stage"
  region: "NTSC-Unk"
SCAJ-25012:
  name: "Final Fantasy X-2"
  region: "NTSC-Unk"
  gameFixes:
    - SoftwareRendererFMVHack # Fixes brightness and overlapping subtitles.
  gsHWFixes:
    roundSprite: 1 # Fixes font artifacts.
SCAJ-25026:
  name: "Kunoichi Shinobi"
  region: "NTSC-Unk"
  gsHWFixes:
    getSkipCount: "GSC_Kunoichi"
SCAJ-25034:
  name: "Sakura Taisen Monogatari"
  region: "NTSC-Unk"
SCAJ-25037:
  name: "Astro Boy Atom"
  region: "NTSC-Unk"
  roundModes:
    eeRoundMode: 0 # Fixes character behaviour.
  gsHWFixes:
    autoFlush: 1 # Fixes flame bloom.
    halfPixelOffset: 2 # Fixes misaligned bloom.
SCAJ-25045:
  name: "Sakura Taisen V - Episode 0"
  region: "NTSC-Unk"
SCAJ-25047:
  name: "Dororo"
  region: "NTSC-Unk"
  gsHWFixes:
    minimumBlendingLevel: 2 # Fixes dark font to more bright like software mode.
SCAJ-30001:
  name: "Xenosaga - Episode I - Der Wille zur Macht [PlayStation 2 The Best]"
  region: "NTSC-Unk"
  compat: 5
  gsHWFixes:
    autoFlush: 2 # Fixes shadows in cutscenes.
    halfPixelOffset: 2 # Removes puppet lines shadows.
    roundSprite: 2 # Fixes font artifacts.
SCAJ-30002:
  name: "Wild ARMs - Alter Code F"
  region: "NTSC-J"
  gsHWFixes:
    wildArmsHack: 1 # Fixes font artifacts and out-of-bound 2D textures.
    gpuPaletteConversion: 2 # Fixes micro-stuttering and drops in performance while also reducing hash cache explosions and GS usage.
SCAJ-30003:
  name: "Siren"
  region: "NTSC-Unk"
  gsHWFixes:
    roundSprite: 1 # Fixes gaps between menu options.
    cpuSpriteRenderBW: 4 # Fixes sky rendering.
    cpuSpriteRenderLevel: 2 # Needed for above.
SCAJ-30004:
  name: "Kan Wo Long Xian Shen Wei"
  region: "NTSC-C"
SCAJ-30005:
  name: "Gacha Mecha Stadium - Saru Battle"
  region: "NTSC-Unk"
  gsHWFixes:
    halfPixelOffset: 2 # Corrects fullscreen bloom misalignment.
SCAJ-30006:
  name: "Gran Turismo 4"
  region: "NTSC-Unk"
  clampModes:
    vuClampMode: 2 # Text in GT mode works.
  gsHWFixes:
    mipmap: 2 # Mipmap + trilinear, improves ground textures to match sw renderer.
    trilinearFiltering: 1
    halfPixelOffset: 1 # Fixes weird edge shadows and depth bleed which happens on the edge as well.
    getSkipCount: "GSC_PolyphonyDigitalGames" # Fixes post processing.
  memcardFilters:
    - "SCAJ-20066"
    - "SCAJ-30006"
    - "SCAJ-30007"
    - "SCAJ-30008"
    - "SCPS-15055"
    - "SCPS-17001"
    - "SCPS-19252"
    - "SCPS-19304"
    - "SCPS-15009"
    - "SCPS-55007"
  # eeClampMode = 3  Text in races works.
SCAJ-30007:
  name: "Gran Turismo 4"
  region: "NTSC-Unk"
  compat: 5
  clampModes:
    vuClampMode: 2 # Text in GT mode works.
    # eeClampMode = 3  Text in races works.
  gsHWFixes:
    mipmap: 2 # Mipmap + trilinear, improves ground textures to match sw renderer.
    trilinearFiltering: 1
    halfPixelOffset: 1 # Fixes weird edge shadows and depth bleed which happens on the edge as well.
    getSkipCount: "GSC_PolyphonyDigitalGames" # Fixes post processing.
SCAJ-30008:
  name: "Gran Turismo 4 [PlayStation 2 The Best]"
  region: "NTSC-Unk"
  clampModes:
    vuClampMode: 2 # Text in GT mode works.
    # eeClampMode = 3  Text in races works.
  gsHWFixes:
    mipmap: 2 # Mipmap + trilinear, improves ground textures to match sw renderer.
    trilinearFiltering: 1
    halfPixelOffset: 1 # Fixes weird edge shadows and depth bleed which happens on the edge as well.
    getSkipCount: "GSC_PolyphonyDigitalGames" # Fixes post processing.
  memcardFilters:
    - "SCAJ-20066"
    - "SCAJ-30006"
    - "SCAJ-30007"
    - "SCAJ-30008"
    - "SCPS-15055"
    - "SCPS-17001"
    - "SCPS-19252"
    - "SCPS-19304"
    - "SCPS-15009"
    - "SCPS-55007"
SCAJ-30010:
  name: "God of War"
  region: "NTSC-E"
  gsHWFixes:
    alignSprite: 1 # Fixes water vertical lines.
    roundSprite: 1 # Fixes vertical lines and minor ghosting.
    autoFlush: 1 # Fixes sun going through walls.
SCAJ-30011:
  name: "God of War II"
  region: "NTSC-E"
  gsHWFixes:
    alignSprite: 1 # Fixes water vertical lines.
    halfPixelOffset: 2 # Fixes misaligned bloom.
    roundSprite: 1 # Fixes chromatic effect.
    autoFlush: 1 # Fixes sun occlusion.
SCCS-40001:
  name: "Ape Escape 2"
  region: "NTSC-C"
  gsHWFixes:
    mipmap: 2 # Fixes miptrick texture effects.
    trilinearFiltering: 1 # Fixes miptrick blending.
SCCS-40002:
  name: "Devil May Cry 2 - Disc 1"
  region: "NTSC-C"
SCCS-40003:
  name: "Devil May Cry 2 - Disc 2"
  region: "NTSC-C"
SCCS-40004:
  name: "XIGO - Zuihou de Touzi"
  region: "NTSC-C"
SCCS-40005:
  name: "Ico"
  region: "NTSC-C"
  compat: 5
  clampModes:
    eeClampMode: 2 # Otherwise freezes in various spots, check full intro.
    vuClampMode: 1 # Otherwise camera does not focus correctly on main character.
  gsHWFixes:
    mipmap: 1
    halfPixelOffset: 1 # Fixes effect misalignment.
    moveHandler: "MV_Ico" # Fixes depth buffer post-processing.
SCCS-40006:
  name: "Zhen Sanguo Wushuang 2"
  region: "NTSC-C"
SCCS-40007:
  name: "Arc the Lad - Seirei no Tasogare"
  region: "NTSC-C"
SCCS-40009:
  name: "Dragon Ball Z 2"
  region: "NTSC-C"
SCCS-40010:
  name: "Super Puzzle Bobble 2"
  region: "NTSC-C"
SCCS-40011:
  name: "Armored Core 2 - Another Age"
  region: "NTSC-C"
SCCS-40014:
  name: "World Soccer Winning Eleven 7 - International"
  region: "NTSC-C"
SCCS-40015:
  name: "Viorate no Atelier - Gramnad no Renkinjutsushi 2"
  region: "NTSC-C"
SCCS-40016:
  name: "Ape Escape - Pumped & Primed"
  region: "NTSC-C"
  gsHWFixes:
    halfPixelOffset: 2 # Corrects fullscreen bloom misalignment.
SCCS-40017:
  name: "EyeToy - Play"
  region: "NTSC-C"
  compat: 5
SCCS-40018:
  name: "Saru EyeToy - Oosawagi! Ukkiuki Game Tenkomori!!"
  region: "NTSC-C"
  compat: 5
SCCS-40019:
  name: "Formula One 04"
  region: "NTSC-C"
SCCS-40022:
  name: "World Soccer Winning Eleven 8 - Asia Championship"
  region: "NTSC-C"
  compat: 5
SCCS-60001:
  name: "Sakura Taisen - Atsuki Chishio Ni"
  region: "NTSC-C"
SCCS-60002:
  name: "Gran Turismo 4 [Review Copy]"
  region: "NTSC-C"
  gsHWFixes:
    mipmap: 2 # Mipmap + trilinear, improves ground textures to match sw renderer.
    trilinearFiltering: 1
    halfPixelOffset: 1 # Fixes weird edge shadows and depth bleed which happens on the edge as well.
    getSkipCount: "GSC_PolyphonyDigitalGames" # Fixes post processing.
SCED-50041:
  name: "Tekken Tag Tournament [Demo]"
  region: "PAL-E"
  gsHWFixes:
    alignSprite: 1 # Fixes vertical lines.
SCED-50065:
  name: "Official PlayStation 2 Magazine Demo 1"
  region: "PAL-M5"
SCED-50066:
  name: "Official PlayStation 2 Magazine Demo 2"
  region: "PAL-M5"
SCED-50067:
  name: "Official PlayStation 2 Magazine Demo 3"
  region: "PAL-M5"
SCED-50133:
  name: "PS2 Bonus Demo Jan 2001"
  region: "PAL-M5"
SCED-50140:
  name: "Official PlayStation 2 Magazine Demo 5"
  region: "PAL-M5"
SCED-50141:
  name: "Official PlayStation 2 Magazine Demo 6"
  region: "PAL-M5"
SCED-50142:
  name: "Official PlayStation 2 Magazine Demo 7"
  region: "PAL-M5"
SCED-50143:
  name: "Official PlayStation 2 Magazine Demo 8"
  region: "PAL-M5"
SCED-50144:
  name: "Official PlayStation 2 Magazine Demo 9"
  region: "PAL-M5"
SCED-50145:
  name: "Official PlayStation 2 Magazine Demo 10"
  region: "PAL-M5"
SCED-50146:
  name: "Official PlayStation 2 Magazine Demo 11"
  region: "PAL-M5"
SCED-50147:
  name: "Official PlayStation 2 Magazine Demo 12"
  region: "PAL-M5"
SCED-50148:
  name: "Official PlayStation 2 Magazine Demo 13"
  region: "PAL-M5"
SCED-50149:
  name: "Official PlayStation 2 Magazine Demo 14"
  region: "PAL-M5"
SCED-50150:
  name: "Official PlayStation 2 Magazine Demo 15"
  region: "PAL-M5"
SCED-50151:
  name: "Official PlayStation 2 Magazine Demo 16"
  region: "PAL-M5"
SCED-50152:
  name: "Official PlayStation 2 Magazine Demo 17"
  region: "PAL-M5"
SCED-50153:
  name: "Official PlayStation 2 Magazine Demo 18" # Australian
  region: "PAL-M5"
SCED-50154:
  name: "Official PlayStation 2 Magazine Demo 19"
  region: "PAL-M5"
SCED-50161:
  name: "Official PlayStation 2 Magazine-UK Greatest Hits Volume 1 - Special Edition - Buyers Guide"
  region: "PAL-M5"
SCED-50162:
  name: "Official PlayStation 2 Magazine-UK Greatest Hits Volume 2 - Special Edition - A-Z of PS2"
  region: "PAL-M5"
SCED-50163:
  name: "Official PlayStation 2 Magazine-UK Greatest Hits Volume 3 - Special Edition - Players Guide"
  region: "PAL-M5"
SCED-50164:
  name: "Official PlayStation 2 Magazine-UK Greatest Hits Volume 4 - Special Edition - Yearbook 2001"
  region: "PAL-M5"
SCED-50254:
  name: "Official Review of the 2000 FIA Formula 1 World Championship [Formula One 2001 Bonus Disc]"
  region: "PAL-Unk"
SCED-50286:
  name: "Red Faction [Demo]"
  region: "PAL-Unk"
SCED-50313:
  name: "Formula One 2001 [Demo]"
  region: "PAL-E"
SCED-50381:
  name: "Official PlayStation 2 Magazine Demo 8"
  region: "PAL-M5"
SCED-50404:
  name: "Official PlayStation 2 Magazine Demo 10" # German
  region: "PAL-E-G"
SCED-50449:
  name: "This is Football 2002 [Demo]"
  region: "PAL-M6"
SCED-50450:
  name: "Le Monde des Bleus 2002 [Demo]"
  region: "PAL-F"
SCED-50460:
  name: "Official PlayStation 2 Magazine Demo 11" # German
  region: "PAL-E-G"
SCED-50463:
  name: "Official PlayStation 2 Magazine Demo 11" # French
  region: "PAL-M5"
SCED-50506:
  name: "Official PlayStation 2 Magazine Demo 12" # German
  region: "PAL-M5"
SCED-50520:
  name: "World Rally Championship [Demo]"
  region: "PAL-E"
  compat: 5
  roundModes:
    eeRoundMode: 0 # Fixes crash when using the Subaru.
  gameFixes:
    - EETimingHack # Fix in-game Freeze.
SCED-50543:
  name: "Official PlayStation 2 Magazine Demo 12" # French
  region: "PAL-M5"
SCED-50569:
  name: "Play PlayStation 2 Demo Disc playable demos and videos Sept - Oct - Nov 2001"
  region: "PAL-E"
SCED-50593:
  name: "Official PlayStation 2 Magazine Demo 13" # French
  region: "PAL-M5"
SCED-50594:
  name: "Official PlayStation 2 Magazine Demo 13" # German
  region: "PAL-G"
SCED-50610:
  name: "Official PlayStation 2 Magazine Demo 14" # Australian
  region: "PAL-M5"
SCED-50614:
  name: "Jak and Daxter - The Precursor Legacy [Demo]"
  region: "PAL-M6"
  gsHWFixes:
    mipmap: 2 # Fixes broken textures.
    trilinearFiltering: 1 # Fixes water textures.
    cpuSpriteRenderBW: 4 # Fixes character and water textures.
    cpuSpriteRenderLevel: 2 # Needed for above.
SCED-50615:
  name: "Official Demo Disc 1 - Retail Edition November 01"
  region: "PAL-E"
SCED-50622:
  name: "Official PlayStation 2 Magazine Demo 14" # German
  region: "PAL-E-G"
SCED-50633:
  name: "Gravity Sucks"
  region: "PAL-M5"
SCED-50642:
  name: "Final Fantasy X [Demo] [Final Fantasy VI PS1 - Bonus Disc]"
  region: "PAL-E"
  roundModes:
    eeRoundMode: 1 # Fixes reverse control and boss in some places.
  gsHWFixes:
    roundSprite: 2 # Fixes font artifacts.
SCED-50660:
  name: "Dropship - United Peace Force"
  region: "PAL-A"
  speedHacks:
    instantVU1: 0 # Fixes corrupted textures.
    mtvu: 0 # Fixes corrupted textures.
SCED-50675:
  name: "Official PlayStation 2 Magazine Demo 16"
  region: "PAL-M5"
SCED-50685:
  name: "Official PlayStation 2 Magazine Demo 15"
  region: "PAL-E-G"
SCED-50697:
  name: "Official PlayStation 2 Magazine Demo 17" # German
  region: "PAL-E-G"
SCED-50698:
  name: "Official PlayStation 2 Magazine Demo 18" # German
  region: "PAL-E-G"
SCED-50699:
  name: "Official PlayStation 2 Magazine Demo 20" # German
  region: "PAL-E-G"
SCED-50700:
  name: "Official PlayStation 2 Magazine Demo 21" # German
  region: "PAL-E-G"
SCED-50701:
  name: "Official PlayStation 2 Magazine Demo 22" # German
  region: "PAL-E-G"
SCED-50708:
  name: "Official PlayStation 2 Magazine Demo 15"
  region: "PAL-S"
SCED-50732:
  name: "Official Demo Disc Retail Edition February 02"
  region: "PAL-F"
SCED-50733:
  name: "Play PlayStation 2 Demo Disc playable demos and videos Jan - Feb 2002"
  region: "PAL-E"
SCED-50734:
  name: "PS2 Bonus Demo Jan 2002"
  region: "PAL-M5"
SCED-50736:
  name: "Official PlayStation 2 Magazine Demo 16" # German
  region: "PAL-E-G"
SCED-50742:
  name: "Official PlayStation 2 Magazine Demo 21"
  region: "PAL-M5"
SCED-50743:
  name: "Official PlayStation 2 Magazine Demo 20"
  region: "PAL-M5"
SCED-50744:
  name: "Official PlayStation 2 Magazine Demo 22"
  region: "PAL-M5"
SCED-50745:
  name: "Official PlayStation 2 Magazine Demo 23"
  region: "PAL-M5"
SCED-50746:
  name: "Official PlayStation 2 Magazine Demo 24"
  region: "PAL-M5"
SCED-50747:
  name: "Official PlayStation 2 Magazine Demo 25"
  region: "PAL-M5"
SCED-50748:
  name: "Official PlayStation 2 Magazine Demo 26"
  region: "PAL-M5"
SCED-50749:
  name: "Official PlayStation 2 Magazine Demo 27"
  region: "PAL-M5"
SCED-50750:
  name: "Official PlayStation 2 Magazine Demo 28"
  region: "PAL-M5"
SCED-50761:
  name: "Sega Cubed Demo"
  region: "PAL-E"
SCED-50768:
  name: "Wipeout Fusion"
  region: "PAL-E"
  gsHWFixes:
    PCRTCOffsets: 1 # Fixes viewport shaking.
SCED-50780:
  name: "Official PlayStation 2 Magazine Germany Special Edition 1"
  region: "PAL-G"
SCED-50781:
  name: "Destruction Derby Arenas [Beta]"
  region: "PAL-M5"
  roundModes:
    vu1RoundMode: 0 # Fixes tyre textures.
  gsHWFixes:
    halfPixelOffset: 2 # Corrects shadow position.
SCED-50783:
  name: "Official PlayStation 2 Magazine-UK Greatest Hits Volume 6 - Special Edition - Awards 2002"
  region: "PAL-M5"
SCED-50784:
  name: "Official PlayStation 2 Magazine-UK Greatest Hits Volume 5 - Special Edition - Action Heroes"
  region: "PAL-M5"
SCED-50785:
  name: "Official PlayStation 2 Magazine-UK Greatest Hits Volume 7 - Special Edition - Sports Games"
  region: "PAL-M5"
SCED-50786:
  name: "Official PlayStation 2 Magazine-UK Greatest Hits Volume 8 - Special Edition - Racing Games"
  region: "PAL-M5"
SCED-50811:
  name: "Selector Demo 01"
  region: "PAL-M5"
SCED-50825:
  name: "Official PlayStation 2 Magazine Demo 18"
  region: "PAL-M5"
SCED-50844:
  name: "Ico [Demo]"
  region: "PAL-M5"
  clampModes:
    eeClampMode: 2 # Otherwise freezes in various spots, check full intro.
    vuClampMode: 1 # Otherwise camera does not focus correctly on main character.
  gsHWFixes:
    mipmap: 1
    halfPixelOffset: 1 # Fixes effect misalignment.
    moveHandler: "MV_Ico" # Fixes depth buffer post-processing.
SCED-50907:
  name: "Final Fantasy X [Bonus Disc - Beyond Final Fantasy]"
  region: "PAL-Unk"
  roundModes:
    eeRoundMode: 1 # Fixes reverse control and boss in some places.
  gsHWFixes:
    roundSprite: 2 # Fixes font artifacts.
SCED-50916:
  name: "Ratchet & Clank [Demo]"
  region: "PAL-M5"
  gameFixes:
    - EETimingHack # Fixes SPR errors while going in-game.
  gsHWFixes:
    mipmap: 1
SCED-50932:
  name: "Smash Court Tennis - Pro Tournament [Demo]"
  region: "PAL-M5"
SCED-50945:
  name: "Official PlayStation 2 Magazine Demo 20"
  region: "PAL-M5"
SCED-50989:
  name: "Official PlayStation 2 Magazine Demo 21"
  region: "PAL-M5"
SCED-50990:
  name: "Frequency [Demo]"
  region: "PAL-E"
SCED-51016:
  name: "Official PlayStation 2 Magazine Demo 22-23"
  region: "PAL-M5"
SCED-51075:
  name: "Ratchet & Clank [Regular Demo]"
  region: "PAL-M5"
  gameFixes:
    - EETimingHack # Fixes SPR errors while going in-game.
  roundModes:
    eeRoundMode: 0 # Fixes Hydrodisplacer behaviour.
  gsHWFixes:
    mipmap: 1
SCED-51111:
  name: "Magazine Ufficiale PlayStation 2 Demo Italia 08-02"
  region: "PAL-M5"
SCED-51120:
  name: "Tekken 4 [Demo]"
  region: "PAL-E"
  gsHWFixes:
    alignSprite: 1 # Fixes vertical lines.
SCED-51140:
  name: "PS2 Bonus Demo 03"
  region: "PAL-M5"
SCED-51146:
  name: "Selector Demo 03"
  region: "PAL-E"
SCED-51147:
  name: "Official PlayStation 2 Magazine Demo 24"
  region: "PAL-M5"
SCED-51148:
  name: "PlayStation Experience [Demo]"
  region: "PAL-E"
SCED-51161:
  name: "Das Offizielle PlayStation 2 Magazin - Special Edition 2"
  region: "PAL-G"
SCED-51163:
  name: "Official PlayStation 2 Magazine Demo 23"
  region: "PAL-S"
SCED-51165:
  name: "This Is Football 2003"
  region: "PAL-M7"
SCED-51166:
  name: "Le Monde des Bleus 2003 - Un Nouveau Défi"
  region: "PAL-F"
SCED-51173:
  name: "Magazine Ufficiale PlayStation 2 Demo Italia 09/02"
  region: "PAL-I"
SCED-51185:
  name: "Official PlayStation 2 Magazine Demo 24" # German
  region: "PAL-E-G"
SCED-51187:
  name: "SCEE Catalogue Video"
  region: "PAL-M5"
SCED-51262:
  name: "Official PlayStation 2 Magazine Demo 25" # German
  region: "PAL-E-G"
SCED-51269:
  name: "Selector Demo 04"
  region: "PAL-E"
SCED-51278:
  name: "SCEE Catalogue Video 3+"
  region: "PAL-M5"
SCED-51279:
  name: "Official PlayStation 2 Magazine Demo 25"
  region: "PAL-M5"
SCED-51280:
  name: "Official PlayStation 2 Magazine-UK Greatest Hits Volume 9 - Special Edition - Buyers Guide"
  region: "PAL-E"
SCED-51304:
  name: "WRC II Extreme - Peugeot Special Demo"
  region: "PAL-F"
SCED-51305:
  name: "WRC II Extreme [Press Kit]"
  region: "PAL-E"
  gameFixes:
    - XGKickHack # Fixes SPS.
  gsHWFixes:
    halfPixelOffset: 1 # Fixes texture misalignment.
SCED-51314:
  name: "Kingdom Hearts"
  region: "PAL-M5"
SCED-51319:
  name: "Official PlayStation 2 Magazine Demo 27" # German
  region: "PAL-E-G"
SCED-51321:
  name: "Official PlayStation 2 Magazine Demo 26"
  region: "PAL-S"
SCED-51351:
  name: "Getaway, The [Demo]"
  region: "PAL-E"
  gsHWFixes:
    recommendedBlendingLevel: 3 # Fixes the fog wall.
    textureInsideRT: 1
    texturePreloading: 1 # Performs much better with partial preload.
    halfPixelOffset: 2 # Fixes outlines around characters.
    getSkipCount: "GSC_GetawayGames"
SCED-51352:
  name: "Gran Turismo - Nissan Micra Edition [Demo]"
  region: "PAL-E"
  gsHWFixes:
    getSkipCount: "GSC_PolyphonyDigitalGames" # Fixes post processing.
SCED-51359:
  name: "Official PlayStation 2 Magazine Demo 27"
  region: "PAL-M5"
SCED-51366:
  name: "Ape Escape 2 [Demo]"
  region: "PAL-M5"
  gsHWFixes:
    mipmap: 2 # Fixes miptrick texture effects.
    trilinearFiltering: 1 # Fixes miptrick blending.
SCED-51375:
  name: "Germany Special Issue 3"
  region: "PAL-G"
SCED-51376:
  name: "Official PlayStation 2 Magazine Demo 28" # German
  region: "PAL-E-G"
SCED-51384:
  name: "Official PlayStation 2 Magazine Demo 29"
  region: "PAL-M5"
SCED-51389:
  name: "Best PS2 Games Ever 10"
  region: "PAL-E"
SCED-51405:
  name: "Space Channel 5 - Part 2 Special Demo"
  region: "PAL-A"
SCED-51406:
  name: "The Mark of Kri"
  region: "PAL-M5"
SCED-51411:
  name: "Magazine Ufficiale PlayStation 2 Italia 02/03"
  region: "PAL-I"
SCED-51432:
  name: "Official PlayStation 2 Magazine Demo 29" # German
  region: "PAL-E-G"
SCED-51440:
  name: "Official PlayStation 2 Magazine Demo 29"
  region: "PAL-M5"
SCED-51444:
  name: "Official PlayStation 2 Magazine-UK - Crime Special"
  region: "PAL-E"
SCED-51452:
  name: "Sly Raccoon"
  region: "PAL-M5"
SCED-51454:
  name: "Tango - Game On Demo Disc 1"
  region: "PAL-E"
SCED-51457:
  name: "Official PlayStation 2 Magazine Demo 30"
  region: "PAL-M5"
SCED-51483:
  name: "Official PlayStation 2 Magazine Demo 30" # German
  region: "PAL-E-G"
SCED-51484:
  name: "Primal"
  region: "PAL-M5"
  roundModes:
    vu1RoundMode: 1 # Fixes SPS.
    eeRoundMode: 0 # Fixes textures on the doors.
  clampModes:
    vu1ClampMode: 0 # Fix other SPS.
SCED-51485:
  name: "Official PlayStation 2 Magazine Demo 30" # Australian
  region: "PAL-E"
SCED-51486:
  name: "Bonus Demo 4"
  region: "PAL-M5"
SCED-51489:
  name: "Official PlayStation 2 Magazine Demo 30"
  region: "PAL-M5"
SCED-51491:
  name: "Primal + The Mark of Kri"
  region: "PAL-E"
SCED-51505:
  name: "Official PlayStation 2 Magazine-UK Special Edition 11 - The World's Best PS2 Games Ever"
  region: "PAL-E"
SCED-51506:
  name: "Primal + The Mark of Kri + War of the Monsters"
  region: "PAL-M5"
SCED-51512:
  name: "Official PlayStation 2 Magazine Germany Special Edition 2003/01"
  region: "PAL-G"
SCED-51529:
  name: "Official PlayStation 2 Magazine Demo 31"
  region: "PAL-M5"
SCED-51530:
  name: "Official PlayStation 2 Magazine Demo 32"
  region: "PAL-M5"
SCED-51531:
  name: "Official PlayStation 2 Magazine Demo 33"
  region: "PAL-M5"
SCED-51532:
  name: "Official PlayStation 2 Magazine Demo 34"
  region: "PAL-M5"
SCED-51533:
  name: "Official PlayStation 2 Magazine Demo 35"
  region: "PAL-M5"
SCED-51534:
  name: "Official PlayStation 2 Magazine Demo 36"
  region: "PAL-M5"
SCED-51535:
  name: "Official PlayStation 2 Magazine Demo 40"
  region: "PAL-M5"
SCED-51536:
  name: "Official PlayStation 2 Magazine Demo 41"
  region: "PAL-M5"
SCED-51537:
  name: "Official PlayStation 2 Magazine Demo 37"
  region: "PAL-M5"
SCED-51538:
  name: "Official PlayStation 2 Magazine Demo 38"
  region: "PAL-M5"
SCED-51539:
  name: "Official PlayStation 2 Magazine Demo 42"
  region: "PAL-M5"
SCED-51540:
  name: "Official PlayStation 2 Magazine Demo 39"
  region: "PAL-M5"
SCED-51541:
  name: "Official PlayStation 2 Magazine-UK Special Edition 12 - PlayStation 2 Blockbusters!"
  region: "PAL-E"
SCED-51542:
  name: "Official PlayStation 2 Magazine-UK Special Edition 13 - Girls! Motors! Guns! War! Monsters!"
  region: "PAL-E"
SCED-51543:
  name: "Official PlayStation 2 Magazine-UK Special Edition 14 - The Hit Squad"
  region: "PAL-E"
SCED-51544:
  name: "Official PlayStation 2 Magazine-UK Special Edition 15 - Summer Blockbusters!"
  region: "PAL-E"
SCED-51545:
  name: "Official PlayStation 2 Magazine-UK Special Edition 16 - Buyers Guide"
  region: "PAL-E"
SCED-51546:
  name: "Official PlayStation 2 Magazine-UK Special Edition 17 - The Best Games of 2003!"
  region: "PAL-E"
SCED-51549:
  name: "Official PlayStation 2 Magazine Germany Special Edition 2003/02"
  region: "PAL-G"
SCED-51551:
  name: "Official PlayStation 2 Magazine Germany Special Edition 2003/03"
  region: "PAL-G"
SCED-51552:
  name: "Official PlayStation 2 Magazine Demo 30"
  region: "PAL-S"
SCED-51556:
  name: "Official PlayStation 2 Magazine Demo 31"
  region: "PAL-M5"
SCED-51558:
  name: "Official PlayStation 2 Magazine Demo 32"
  region: "PAL-M5"
SCED-51559:
  name: "Official PlayStation 2 Magazine Demo 33"
  region: "PAL-M5"
SCED-51560:
  name: "Official PlayStation 2 Magazine Demo 34" # French
  region: "PAL-F"
SCED-51561:
  name: "Official PlayStation 2 Magazine Demo 35"
  region: "PAL-M5"
SCED-51563:
  name: "Official PlayStation 2 Magazine Demo 37"
  region: "PAL-M5"
SCED-51565:
  name: "Official PlayStation 2 Magazine Demo 40"
  region: "PAL-M5"
SCED-51566:
  name: "Official PlayStation 2 Magazine Demo 31" # German
  region: "PAL-E-G"
SCED-51567:
  name: "Official PlayStation 2 Magazine Demo 32" # German
  region: "PAL-E-G"
SCED-51568:
  name: "Official PlayStation 2 Magazine Demo 33" # German
  region: "PAL-E-G"
  roundModes:
    vu1RoundMode: 1 # Fixes SPS (Primal).
  clampModes:
    vu1ClampMode: 0 # Fix other SPS (Primal).
SCED-51569:
  name: "Official PlayStation 2 Magazine Demo 34" # German
  region: "PAL-E-G"
SCED-51570:
  name: "Official PlayStation 2 Magazine Demo 35" # German
  region: "PAL-E-G"
SCED-51571:
  name: "Official PlayStation 2 Magazine Demo 36" # German
  region: "PAL-E-G"
SCED-51572:
  name: "Official PlayStation 2 Magazine Demo 37" # German
  region: "PAL-E-G"
SCED-51573:
  name: "Official PlayStation 2 Magazine Demo 38" # German
  region: "PAL-E-G"
SCED-51575:
  name: "Official PlayStation 2 Magazine Demo 40" # German
  region: "PAL-E-G"
SCED-51591:
  name: "PlayStation 2 Official Demo Disc Edition Pour Revendeurs #5"
  region: "PAL-F"
SCED-51596:
  name: "Selector Demo 06"
  region: "PAL-E"
SCED-51597:
  name: "Selector Demo 7"
  region: "PAL-E"
SCED-51598:
  name: "Selector Demo 08"
  region: "PAL-E"
SCED-51601:
  name: "Shinobi"
  region: "PAL-M5"
SCED-51632:
  name: "WRC II Extreme [Special Demo]"
  region: "PAL-E"
  gameFixes:
    - XGKickHack # Fixes SPS.
  gsHWFixes:
    halfPixelOffset: 1 # Fixes texture misalignment.
SCED-51643:
  name: "Tango - Game On Demo Disc 2"
  region: "PAL-E"
SCED-51644:
  name: "Tango - Game On Demo Disc 3"
  region: "PAL-E"
SCED-51652:
  name: "Magazine Ufficiale PlayStation 2 Demo Italia 04/03"
  region: "PAL-I"
SCED-51656:
  name: "Official PlayStation 2 Magazine Demo 32"
  region: "PAL-S"
SCED-51657:
  name: "Official PlayStation Magazine Demo 33"
  region: "PAL-P"
  compat: 5
  patches:
    90C0E5F1:
      content: |-
        comment=Must enable FPU Negative Div Hack gamefix for Dakar 2 Demo
SCED-51669:
  name: "MotoGP 3"
  region: "PAL-E"
  gsHWFixes:
    roundSprite: 2 # Fixes lines at the edges of the HUD.
    mipmap: 2 # Mipmap + trilinear, improves road and grass textures to match sw renderer.
    trilinearFiltering: 1
SCED-51677:
  name: "My Street"
  region: "PAL-M5"
  gameFixes:
    - VUSyncHack # Fixes SPS.
SCED-51683:
  name: "Selector Demo 05"
  region: "PAL-E"
SCED-51692:
  name: "SOCOM - U.S. Navy SEALs"
  region: "PAL-M5"
  clampModes:
    vuClampMode: 2 # Fixes bad shadows.
SCED-51700:
  name: "Jak II - Renegade [Demo]"
  region: "PAL-M5"
  gsHWFixes:
    mipmap: 2 # Fixes broken textures.
    trilinearFiltering: 1 # Fixes water textures.
    cpuSpriteRenderBW: 4 # Fixes character and water textures.
    cpuSpriteRenderLevel: 2 # Needed for above.
    autoFlush: 2 # Fixes lighting.
SCED-51728:
  name: "EverQuest - Online Adventures [Demo]"
  region: "PAL-E"
SCED-51752:
  name: "Magazine Ufficiale PlayStation 2 Demo Italia 06/03"
  region: "PAL-I"
SCED-51760:
  name: "Official PlayStation 2 Magazine Demo 34"
  region: "PAL-S"
SCED-51779:
  name: "EyeToy - Play"
  region: "PAL-E"
SCED-51836:
  name: "Magazine Ufficiale PlayStation 2 Demo Italia 07/03"
  region: "PAL-I"
SCED-51880:
  name: "Magazine Ufficiale PlayStation 2 Demo Italia 08/03"
  region: "PAL-I"
SCED-51894:
  name: "Magazine Ufficiale PlayStation 2 Demo Italia 09/03"
  region: "PAL-I"
SCED-51899:
  name: "PlayStation Experience [Demo]"
  region: "PAL-E"
SCED-51905:
  name: "Amplitude"
  region: "PAL-E"
SCED-51922:
  name: "Ghosthunter [Demo]"
  region: "PAL-G"
  clampModes:
    vuClampMode: 3 # Fixes SPS.
SCED-51935:
  name: "Official PlayStation 2 Magazine Demo 38" # German
  region: "PAL-E-G"
SCED-51936:
  name: "Official PlayStation 2 Magazine Demo 12/2003" # German
  region: "PAL-E-G"
SCED-51938:
  name: "PlayStation Experience [Demo]"
  region: "PAL-E"
SCED-51940:
  name: "Bonus Demo 5"
  region: "PAL-M5"
SCED-51941:
  name: "Bonus Demo 5"
  region: "PAL-M5"
SCED-52037:
  name: "Official PlayStation 2 Magazine Demo 39" # German
  region: "PAL-E-G"
SCED-52049:
  name: "Dog's Life [Demo]"
  region: "PAL-M11"
  compat: 5
  clampModes:
    vuClampMode: 3 # Fixes minor SPS on characters.
  gsHWFixes:
    halfPixelOffset: 2 # Fixes double image.
SCED-52051:
  name: "Official PlayStation 2 Magazine Demo 43"
  region: "PAL-M5"
SCED-52052:
  name: "Official PlayStation 2 Magazine Demo 44"
  region: "PAL-M5"
SCED-52053:
  name: "Official PlayStation 2 Magazine Demo 40"
  region: "PAL-PT"
SCED-52054:
  name: "Official PlayStation 2 Magazine Demo 40"
  region: "PAL-M5"
SCED-52057:
  name: "Official PlayStation Magazine Demo Disc 40"
  region: "PAL-IT"
SCED-52068:
  name: "Official PlayStation 2 Magazine Demo 41" # German
  region: "PAL-E-G"
SCED-52069:
  name: "Official PlayStation 2 Magazine Demo 42" # German
  region: "PAL-E-G"
SCED-52076:
  name: "Official PlayStation 2 Magazine Demo 49" # German
  region: "PAL-G"
SCED-52080:
  name: "Official PlayStation 2 Magazine Demo 53" # German
  region: "PAL-E-G"
SCED-52081:
  name: "Official PlayStation 2 Magazine Demo 41"
  region: "PAL-M5"
SCED-52082:
  name: "Das Offizielle PlayStation 2 Magazin 02/2004 - Uncut Edition"
  region: "PAL-G"
SCED-52083:
  name: "Official PlayStation 2 Magazine Demo 43"
  region: "PAL-M5"
SCED-52085:
  name: "Official PlayStation 2 Magazine Demo 45"
  region: "PAL-M5"
SCED-52087:
  name: "Official PlayStation 2 Magazine Demo 47" # German
  region: "PAL-E-G"
SCED-52088:
  name: "Official PlayStation 2 Magazine Demo 48"
  region: "PAL-M5"
SCED-52089:
  name: "Das Offizielle PlayStation 2 Magazin 09/2004"
  region: "PAL-G"
SCED-52090:
  name: "Official PlayStation 2 Magazine Demo 50" # German
  region: "PAL-E-G"
SCED-52091:
  name: "Official PlayStation 2 Magazine Demo 51"
  region: "PAL-M5"
SCED-52092:
  name: "Official PlayStation 2 Magazine Demo 52" # German
  region: "PAL-E-G"
SCED-52094:
  name: "G-Con 2 Competition Demo"
  region: "PAL-G"
SCED-52098:
  name: "Destruction Derby Arenas"
  region: "PAL-M5"
  roundModes:
    vu1RoundMode: 0 # Fixes tire textures.
  gsHWFixes:
    halfPixelOffset: 2 # Corrects shadow position.
SCED-52119:
  name: "Official PlayStation 2 Magazine Germany Special Edition 01/2004"
  region: "PAL-G"
SCED-52120:
  name: "Official PlayStation 2 Magazine Demo 55" # German
  region: "PAL-E-G"
SCED-52137:
  name: "WRC 3 [Demo]"
  region: "PAL-E"
  gameFixes:
    - XGKickHack # Fixes SPS.
  gsHWFixes:
    roundSprite: 2 # Correct misaligned font, better aligns car shadow.
    autoFlush: 2 # Fixes sun luminosity.
SCED-52141:
  name: "WRC 3 [Demo]"
  region: "PAL-E"
  compat: 5
  gameFixes:
    - XGKickHack # Fixes SPS.
  gsHWFixes:
    roundSprite: 2 # Correct misaligned font, better aligns car shadow.
    autoFlush: 2 # Fixes sun luminosity.
SCED-52147:
  name: "EyeToy - Christmas Wishi Washi"
  region: "PAL-E"
SCED-52158:
  name: "Official PlayStation 2 Magazine Demo 41"
  region: "PAL-S"
SCED-52160:
  name: "Official PlayStation 2 Magazine Demo 45"
  region: "PAL-M5"
SCED-52161:
  name: "Official PlayStation 2 Magazine Demo 46"
  region: "PAL-M5"
SCED-52162:
  name: "Official PlayStation 2 Magazine Demo 47"
  region: "PAL-M5"
SCED-52163:
  name: "Official PlayStation 2 Magazine Demo 48"
  region: "PAL-M5"
SCED-52164:
  name: "Official PlayStation 2 Magazine Demo 49"
  region: "PAL-M5"
SCED-52165:
  name: "Official PlayStation 2 Magazine Demo 50" # United Kingdom
  region: "PAL-E"
SCED-52166:
  name: "Official PlayStation 2 Magazine Demo 51" # United Kingdom
  region: "PAL-E"
SCED-52167:
  name: "Official PlayStation 2 Magazine Demo 52" # United Kingdom
  region: "PAL-E"
SCED-52168:
  name: "Official PlayStation 2 Magazine Demo 53" # United Kingdom
  region: "PAL-E"
SCED-52169:
  name: "Official PlayStation 2 Magazine Demo 54"
  region: "PAL-M5"
SCED-52170:
  name: "Official PlayStation 2 Magazine Demo 55" # United Kingdom
  region: "PAL-E"
SCED-52177:
  name: "Official PlayStation 2 Magazine Demo 41"
  region: "PAL-M5"
SCED-52183:
  name: "Magazine Ufficiale PlayStation 2 Platinum Speciale 2003"
  region: "PAL-I"
SCED-52185:
  name: "Official PlayStation 2 Magazine Demo 41"
  region: "PAL-M5"
SCED-52186:
  name: "Magazine Ufficiale PlayStation 2 Italia 01/04 Demo"
  region: "PAL-I"
SCED-52193:
  name: "Official PlayStation 2 Magazine-UK Special Edition 18 - Hot 100"
  region: "PAL-E"
SCED-52194:
  name: "Official PlayStation 2 Magazine-UK Special Edition 19 - 2004 Classics Hitlist"
  region: "PAL-E"
SCED-52196:
  name: "Official PS2 Magazine Demo 22 Special Ed - It's Here" # United Kingdom
  region: "PAL-E"
SCED-52225:
  name: "PlayStation 2 Christmas Special 2003"
  region: "PAL-E"
SCED-52260:
  name: "Forbidden Siren [Demo]"
  region: "PAL-M5"
  gsHWFixes:
    roundSprite: 1 # Fixes gaps between menu options.
    cpuSpriteRenderBW: 4 # Fixes sky rendering.
    cpuSpriteRenderLevel: 2 # Needed for above.
SCED-52261:
  name: "Jet Li - Rise to Honor [Demo]"
  region: "PAL-M5"
SCED-52270:
  name: "Official PlayStation 2 Magazine Demo 42"
  region: "PAL-M5"
SCED-52271:
  name: "Official PlayStation 2 Magazine Demo 42"
  region: "PAL-M5"
SCED-52272:
  name: "Magazine Ufficiale PlayStation 2 Italia Demo 02/04"
  region: "PAL-I"
SCED-52273:
  name: "Official PlayStation 2 Magazine Demo 42"
  region: "PAL-M5"
SCED-52311:
  name: "I-Ninja"
  region: "PAL-E"
SCED-52354:
  name: "Official PlayStation 2 Magazine Demo 43"
  region: "PAL-M5"
SCED-52355:
  name: "Military Multi Demo"
  region: "PAL-M5"
SCED-52377:
  name: "Official PlayStation 2 Magazine Demo 44"
  region: "PAL-M5"
SCED-52390:
  name: "Bonus Demo 6"
  region: "PAL-M5"
  gameFixes:
    - XGKickHack # Fixes SPS for Formula One 2003.
SCED-52391:
  name: "Bonus Demo 6"
  region: "PAL-M5"
  gameFixes:
    - XGKickHack # Fixes SPS for Formula One 2003.
SCED-52423:
  name: "Smash Court Tennis - Pro Tournament 2"
  region: "PAL-A"
SCED-52436:
  name: "Bonus Demo 7"
  region: "PAL-M5"
  compat: 5
SCED-52437:
  name: "Bonus Demo 7"
  region: "PAL-M5"
SCED-52442:
  name: "Official PlayStation 2 Magazine Demo 45"
  region: "PAL-M5"
SCED-52443:
  name: "Magazine Ufficiale PlayStation 2 Italia 05/04"
  region: "PAL-I"
SCED-52452:
  name: "Official PlayStation 2 Magazine Demo 45"
  region: "PAL-M5"
SCED-52455:
  name: "Gran Turismo Special Edition 2004 Geneva Version"
  region: "PAL-E"
  gsHWFixes:
    mipmap: 2 # Mipmap + trilinear, improves ground textures to match sw renderer.
    trilinearFiltering: 1
    halfPixelOffset: 1 # Fixes weird edge shadows and depth bleed which happens on the edge as well.
    getSkipCount: "GSC_PolyphonyDigitalGames" # Fixes post processing.
  # eeClampMode = 3  Text in races works.
  # vuClampMode = 2  Text in GT mode works.
SCED-52461:
  name: "SingStar [Press Kit]"
  region: "PAL-E"
SCED-52491:
  name: "Athens 2004"
  region: "PAL-M6"
SCED-52497:
  name: "This Is Football 2004"
  region: "PAL-M4"
SCED-52549:
  name: "Official PlayStation 2 Magazine Demo 47"
  region: "PAL-M5"
SCED-52578:
  name: "Gran Turismo 4 BMW 1 Series Virtual Drive Dealership [Demo]"
  region: "PAL-M5"
  gsHWFixes:
    mipmap: 2 # Mipmap + trilinear, improves ground textures to match sw renderer.
    trilinearFiltering: 1
    halfPixelOffset: 1 # Fixes weird edge shadows and depth bleed which happens on the edge as well.
    getSkipCount: "GSC_PolyphonyDigitalGames" # Fixes post processing.
SCED-52580:
  name: "Magazine Ufficiale PlayStation 2 Italia 06/04"
  region: "PAL-I"
SCED-52618:
  name: "Smash Court Tennis - Pro Tournament 2"
  region: "PAL-A"
SCED-52619:
  name: "Official PlayStation 2 Magazine Demo 48"
  region: "PAL-M5"
SCED-52681:
  name: "Gran Turismo 4 BMW 1 Series Virtual Drive [Demo]"
  region: "PAL-M11"
  gsHWFixes:
    mipmap: 2 # Mipmap + trilinear, improves ground textures to match sw renderer.
    trilinearFiltering: 1
    halfPixelOffset: 1 # Fixes weird edge shadows and depth bleed which happens on the edge as well.
    getSkipCount: "GSC_PolyphonyDigitalGames" # Fixes post processing.
SCED-52687:
  name: "Formula One 04 [Demo]"
  region: "PAL-M11"
SCED-52723:
  name: "DJ - Decks & FX [Demo]"
  region: "PAL-M5"
SCED-52728:
  name: "Official PlayStation 2 Magazine Demo 49"
  region: "PAL-M5"
SCED-52759:
  name: "Killzone [Demo]"
  region: "PAL-M5"
  clampModes:
    vuClampMode: 0 # Resolves I Reg Clamping / performance impact and yellow graphics in certain areas.
  gsHWFixes:
    halfPixelOffset: 2 # Fixes blurriness.
SCED-52785:
  name: "Official PlayStation 2 Magazine Demo 50"
  region: "PAL-M5"
SCED-52786:
  name: "Official PlayStation 2 Magazine Demo 51"
  region: "PAL-M5"
SCED-52795:
  name: "Magazine Ufficiale PlayStation 2 Speciale di Corso"
  region: "PAL-I"
SCED-52796:
  name: "Official PlayStation 2 Magazine Demo 50"
  region: "PAL-M5"
SCED-52818:
  name: "EyeToy - Chat [Light]"
  region: "PAL-M11"
SCED-52841:
  name: "Jackie Chan Adventures"
  region: "PAL-M7"
SCED-52846:
  name: "Killzone [Demo]"
  region: "PAL-E"
  clampModes:
    vuClampMode: 0 # Resolves I Reg Clamping / performance impact and yellow graphics in certain areas.
  gsHWFixes:
    halfPixelOffset: 2 # Fixes blurriness.
SCED-52847:
  name: "Ratchet & Clank 3"
  region: "PAL-E"
  gameFixes:
    - EETimingHack # Fixes SPR errors while going in-game.
  gsHWFixes:
    mipmap: 1 # Fixes garbage textures in the distance.
    disablePartialInvalidation: 1 # Prevents the situation that a level (Aquatos) doesn't render characters and geometry.
    halfPixelOffset: 2 # Fixes misaligned bloom.
    autoFlush: 2 # Helps fix misaligned bloom.
SCED-52848:
  name: "Ratchet & Clank 3 + Sly 2 - Band of Thieves"
  region: "PAL-M5"
SCED-52855:
  name: "Magazine Ufficiale PlayStation 2 Italia 09/04"
  region: "PAL-I"
SCED-52869:
  name: "WRC 4 [Demo]"
  region: "PAL-M5"
  gameFixes:
    - XGKickHack # Fixes SPS.
  patches:
    default:
      content: |-
        author=kozarovv
        // Proper patch for WRC 4. CRC independent.
        // I wrote a small runtime that moves unpacker higher right after emulator boot.
        // Seems little bit extensive, but there is no way to make it smaller.
        // Solves TLB miss errors which prevented the game from booting.
        patch=0,EE,0040000c,bytes,5400c73c6000053c100084241000a524000086780000a67cfbff871400000000f5ff170800000000
        patch=0,EE,005fffd4,bytes,6000043c00701c3c0070063c0000073c0008842400009c278000c6240010e7240c00180820e8c700
  gsHWFixes:
    autoFlush: 2 # Fixes sun luminosity and car shadows.
    roundSprite: 1 # Fixes misaligned text.
    halfPixelOffset: 2 # Fixes minor ghosting on objects.
  roundModes:
    eeRoundMode: 2 # Fixes rainbow highlighting on cars.
SCED-52880:
  name: "WRC 4 - The Official Game of the FIA World Rally Championship [Demo]"
  region: "PAL-E"
  gameFixes:
    - XGKickHack # Fixes SPS.
  patches:
    default:
      content: |-
        author=kozarovv
        // Proper patch for WRC 4. CRC independent.
        // I wrote a small runtime that moves unpacker higher right after emulator boot.
        // Seems little bit extensive, but there is no way to make it smaller.
        // Solves TLB miss errors which prevented the game from booting.
        patch=0,EE,0040000c,bytes,5400c73c6000053c100084241000a524000086780000a67cfbff871400000000f5ff170800000000
        patch=0,EE,005fffd4,bytes,6000043c00701c3c0070063c0000073c0008842400009c278000c6240010e7240c00180820e8c700
  gsHWFixes:
    autoFlush: 2 # Fixes sun luminosity and car shadows.
    roundSprite: 1 # Fixes misaligned text.
    halfPixelOffset: 2 # Fixes minor ghosting on objects.
  roundModes:
    eeRoundMode: 2 # Fixes rainbow highlighting on cars.
SCED-52899:
  name: "Killzone [Bonus Disc]"
  region: "PAL-M5"
SCED-52932:
  name: "Bonus Demo 8"
  region: "PAL-M5"
SCED-52933:
  name: "Bonus Demo 8"
  region: "PAL-M5"
SCED-52935:
  name: "SingStar Party [Demo]"
  region: "PAL-E"
SCED-52938:
  name: "Official PlayStation 2 Magazine Demo 52"
  region: "PAL-M5"
SCED-52945:
  name: "WRC 4 - The Official Game of the FIA World Rally Championship [Ford Fiesta Sports Edition Demo]"
  region: "PAL-E"
  gameFixes:
    - XGKickHack # Fixes SPS.
  patches:
    default:
      content: |-
        author=kozarovv
        // Proper patch for WRC 4. CRC independent.
        // I wrote a small runtime that moves unpacker higher right after emulator boot.
        // Seems little bit extensive, but there is no way to make it smaller.
        // Solves TLB miss errors which prevented the game from booting.
        patch=0,EE,0040000c,bytes,5400c73c6000053c100084241000a524000086780000a67cfbff871400000000f5ff170800000000
        patch=0,EE,005fffd4,bytes,6000043c00701c3c0070063c0000073c0008842400009c278000c6240010e7240c00180820e8c700
  gsHWFixes:
    autoFlush: 2 # Fixes sun luminosity and car shadows.
    roundSprite: 1 # Fixes misaligned text.
    halfPixelOffset: 2 # Fixes minor ghosting on objects.
  roundModes:
    eeRoundMode: 2 # Fixes rainbow highlighting on cars.
SCED-52946:
  name: "Getaway, The - Black Monday [Demo]"
  region: "PAL-E"
  gsHWFixes:
    recommendedBlendingLevel: 3 # Fixes the fog wall.
    textureInsideRT: 1
    halfPixelOffset: 2 # Fixes outlines on screen edges.
    getSkipCount: "GSC_GetawayGames"
SCED-52952:
  name: "Jak 3 [Demo]"
  region: "PAL-M5"
  gameFixes:
    - InstantDMAHack # Fixes holes in face geometry.
  gsHWFixes:
    mipmap: 2 # Fixes broken textures.
    trilinearFiltering: 1 # Fixes water textures.
    cpuSpriteRenderBW: 4 # Fixes character and water textures.
    cpuSpriteRenderLevel: 2 # Needed for above.
    autoFlush: 2 # Fixes lighting.
SCED-52969:
  name: "EyeToy - Play 2"
  region: "PAL-M12"
SCED-52970:
  name: "SCEE Hits Demo"
  region: "PAL-M5"
SCED-52981:
  name: "Magazine Ufficiale PlayStation 2 Italia 11/04"
  region: "PAL-I"
SCED-52990:
  name: "Official PlayStation 2 Magazine Demo 53"
  region: "PAL-M5"
SCED-52991:
  name: "Official PlayStation 2 Magazine Demo 53" # French
  region: "PAL-M5"
SCED-52996:
  name: "Official PlayStation 2 Magazine Spécial Noël 2004"
  region: "PAL-F"
SCED-52997:
  name: "Official PlayStation 2 Magazine Sonderausgabe 2004/3"
  region: "PAL-G"
SCED-53018:
  name: "Bonus Demo 8 (Geu)"
  region: "PAL-G"
SCED-53043:
  name: "Magazine Ufficiale PlayStation 2 Speciale Platinum Italia"
  region: "PAL-I"
SCED-53056:
  name: "Official PlayStation 2 Magazine Demo 54" # German
  region: "PAL-E-G"
SCED-53067:
  name: "Official PlayStation 2 Magazine Demo 54"
  region: "PAL-S"
SCED-53068:
  name: "Official PlayStation 2 Magazine Demo 54" # French
  region: "PAL-M5"
SCED-53070:
  name: "Magazine Ufficiale PlayStation 2 Demo 2005/01 Ita"
  region: "PAL-I"
SCED-53081:
  name: "Ace Combat - Squadron Leader [Demo]"
  region: "PAL-E"
  gameFixes:
    - SoftwareRendererFMVHack # Fixes FMVs disabling hash cache.
  gsHWFixes:
    recommendedBlendingLevel: 3
    mipmap: 1
    halfPixelOffset: 3 # Fixes ghosting in foggy maps.
    roundSprite: 1 # Fixes font and HUD artifacts.
    alignSprite: 1 # Fixes vertical lines.
    mergeSprite: 1 # Fixes vertical lines.
    cpuCLUTRender: 1 # Fixes sun occlusion.
SCED-53115:
  name: "Ace Combat - Squadron Leader [Demo]"
  region: "PAL-E"
  gameFixes:
    - SoftwareRendererFMVHack # Fixes FMVs disabling hash cache.
  gsHWFixes:
    recommendedBlendingLevel: 3
    mipmap: 1
    halfPixelOffset: 3 # Fixes ghosting in foggy maps.
    roundSprite: 1 # Fixes font and HUD artifacts.
    alignSprite: 1 # Fixes vertical lines.
    mergeSprite: 1 # Fixes vertical lines.
    cpuCLUTRender: 1 # Fixes sun occlusion.
SCED-53116:
  name: "Bonus Demo 9 (You)"
  region: "PAL-M5"
SCED-53117:
  name: "Bonus Demo 9 (Old)"
  region: "PAL-E"
SCED-53122:
  name: "Official PlayStation 2 Magazine Demo 56"
  region: "PAL-M5"
SCED-53123:
  name: "Official PlayStation 2 Magazine Demo 55"
  region: "PAL-M5"
SCED-53132:
  name: "Official PlayStation 2 Magazine Demo 56"
  region: "PAL-M5"
SCED-53159:
  name: "Official PlayStation 2 Magazine Demo 57" # German
  region: "PAL-E-G"
SCED-53160:
  name: "Official PlayStation 2 Magazine Demo 57"
  region: "PAL-M5"
SCED-53161:
  name: "Official PlayStation 2 Magazine Demo 58"
  region: "PAL-M5"
SCED-53162:
  name: "Official PlayStation 2 Magazine Demo 59"
  region: "PAL-M5"
SCED-53163:
  name: "Official PlayStation 2 Magazine Demo 60"
  region: "PAL-M12"
SCED-53164:
  name: "Official PlayStation 2 Magazine Demo 61"
  region: "PAL-M5"
SCED-53165:
  name: "Official PlayStation 2 Magazine Demo 62"
  region: "PAL-M5"
SCED-53166:
  name: "Official PlayStation 2 Magazine Demo 63"
  region: "PAL-M5"
SCED-53167:
  name: "Official PlayStation 2 Magazine Demo 64"
  region: "PAL-M5"
SCED-53168:
  name: "Official PlayStation 2 Magazine Demo 65"
  region: "PAL-M5"
SCED-53169:
  name: "Official PlayStation 2 Magazine Demo 66"
  region: "PAL-M5"
SCED-53170:
  name: "Official PlayStation 2 Magazine Demo 67"
  region: "PAL-M5"
SCED-53171:
  name: "Official PlayStation 2 Magazine Demo 68"
  region: "PAL-M5"
SCED-53175:
  name: "Official PlayStation 2 Magazine Demo 40"
  region: "PAL-G"
SCED-53176:
  name: "Official PlayStation 2 Magazine Demo 56"
  region: "PAL-M5"
SCED-53177:
  name: "EyeToy Special Demo"
  region: "PAL-E"
SCED-53206:
  name: "Official PlayStation 2 Magazine Demo 58" # German
  region: "PAL-G"
SCED-53207:
  name: "Official PlayStation 2 Magazine Demo 59" # German
  region: "PAL-G"
SCED-53208:
  name: "Official PlayStation 2 Magazine Demo 60" # German
  region: "PAL-G"
SCED-53209:
  name: "Official PlayStation 2 Magazine Demo 61" # German
  region: "PAL-G"
SCED-53210:
  name: "Official PlayStation 2 Magazine Demo 62" # German
  region: "PAL-G"
SCED-53211:
  name: "Official PlayStation 2 Magazine Demo 63" # German
  region: "PAL-G"
SCED-53212:
  name: "Official PlayStation 2 Magazine Demo 64" # German
  region: "PAL-G"
SCED-53213:
  name: "Official PlayStation 2 Magazine Demo 65" # German
  region: "PAL-G"
SCED-53214:
  name: "Official PlayStation 2 Magazine Demo 66" # German
  region: "PAL-G"
SCED-53215:
  name: "Official PlayStation 2 Magazine Demo 67" # German
  region: "PAL-G"
SCED-53216:
  name: "Official PlayStation 2 Magazine Demo 68" # German
  region: "PAL-G"
SCED-53217:
  name: "Official PlayStation 2 Magazine Demo 69" # German
  region: "PAL-G"
SCED-53225:
  name: "Official PlayStation 2 Magazine Demo 58"
  region: "PAL-M5"
SCED-53228:
  name: "Official PlayStation 2 Magazine Demo 57"
  region: "PAL-M5"
SCED-53288:
  name: "Official PlayStation 2 Magazine Demo 58"
  region: "PAL-M5"
SCED-53289:
  name: "Official PlayStation 2 Magazine Demo 59"
  region: "PAL-M5"
SCED-53290:
  name: "Official PlayStation 2 Magazine Demo 60"
  region: "PAL-M5"
SCED-53291:
  name: "Official PlayStation 2 Magazine Demo 61"
  region: "PAL-M5"
SCED-53292:
  name: "Official PlayStation 2 Magazine Demo 62"
  region: "PAL-M5"
SCED-53293:
  name: "Official PlayStation 2 Magazine Demo 63"
  region: "PAL-M5"
SCED-53294:
  name: "Magazine Ufficiale PlayStation 2 Italia 10/2005 - Italian Demo"
  region: "PAL-I"
SCED-53298:
  name: "Official PlayStation 2 Magazine Germany Special Edition 2005/01"
  region: "PAL-G"
SCED-53316:
  name: "SingStar Pop [Demo]"
  region: "PAL-E"
SCED-53325:
  name: "Official PlayStation 2 Magazine Demo 58" # Spanish/Portuguese
  region: "PAL-M5"
SCED-53348:
  name: "Official PlayStation 2 Magazine Demo 58" # French
  region: "PAL-F"
SCED-53349:
  name: "Roland Garros Virtual Tour"
  region: "PAL-F"
SCED-53431:
  name: "God of War"
  region: "PAL-A"
SCED-53447:
  name: "Formula One 05 [Press Kit Demo]"
  region: "PAL-E"
SCED-53448:
  name: "Formula One 05 [Demo]"
  region: "PAL-E"
SCED-53513:
  name: "Bonus Demo 10"
  region: "PAL-M5"
SCED-53514:
  name: "Bonus Demo 10"
  region: "PAL-M5"
SCED-53515:
  name: "Bonus Demo 10"
  region: "PAL-M5"
SCED-53516:
  name: "Magazine Ufficiale PlayStation 2 Italian Demo 61 07/05"
  region: "PAL-I"
SCED-53522:
  name: "EyeToy - Kinetic"
  region: "PAL-M7"
SCED-53538:
  name: "Tekken 5 [Demo]"
  region: "PAL-M5"
  clampModes:
    eeClampMode: 2 # Fixes camera and stops constant coin noises on Pirates Cove.
  gsHWFixes:
    alignSprite: 1
    getSkipCount: "GSC_Tekken5"
SCED-53611:
  name: "Official PlayStation 2 Magazine - German Kids Special"
  region: "PAL-G"
SCED-53613:
  name: "EyeToy - Play 3 + SpyToy"
  region: "PAL-M5"
SCED-53622:
  name: "24 - The Game [Demo]"
  region: "PAL-M9"
  clampModes:
    vuClampMode: 2 # Fixes mini-map HUD.
  gsHWFixes:
    autoFlush: 2 # Fixes pause menu backgrounds.
    roundSprite: 1 # Corrects proportions of fonts and pause-screen lines, adjusts display closer to software.
SCED-53660:
  name: "Jak X & Ratchet Gladiator [Demo]"
  region: "PAL"
SCED-53662:
  name: "Official PlayStation 2 Magazine Germany Special 2/2005"
  region: "PAL-G"
SCED-53674:
  name: "Soul Calibur III [Demo]"
  region: "PAL-E"
  gameFixes:
    - EETimingHack # Fixes bad colours on character select when in Progressive Scan.
  clampModes:
    vuClampMode: 2 # Respawn issues, Fixes SPS, avoids teleporting characters.
  gsHWFixes:
    alignSprite: 1 # Fixes vertical lines.
    halfPixelOffset: 3 # Fixes blurriness (normal vertex causes vertical lines).
    recommendedBlendingLevel: 3 # Fixes menu transparency.
SCED-53679:
  name: "Fire It Up Lads [Demo]"
  region: "PAL-E"
  patches:
    default:
      content: |-
        comment=- WRC Rally needs XGKick fix enabled
SCED-53684:
  name: "SingStar '80s [Demo]"
  region: "PAL-E"
SCED-53733:
  name: "Genji Special Demo"
  region: "PAL-E"
SCED-53792:
  name: "EyeToy - Antigrav + SpyToy Demo"
  region: "PAL-M5"
SCED-53798:
  name: "Ufficiale PlayStation 2 Italia Kids Special 2005 Demo"
  region: "PAL-I"
SCED-53802:
  name: "Sly 3 - Honour Among Thieves [Demo]"
  region: "PAL-M5"
  roundModes:
    vuRoundMode: 0 # Fixes game engine issue with bombs and la
Download .txt
gitextract_uj__hotj/

├── .github/
│   └── workflows/
│       ├── build-release.yml
│       └── build.yml
├── .gitignore
├── LICENSE
├── README.md
├── VERSION
├── _archive/
│   ├── ps1coverdl/
│   │   └── DuckStation-cover-downloader/
│   │       ├── _dist.bat
│   │       ├── covers.py
│   │       ├── requirements.txt
│   │       └── version
│   └── ps2coverdl/
│       ├── 1.0/
│       │   ├── PCSX2 cover downloader.py
│       │   └── requirements.txt
│       └── 2.0/
│           ├── ps2coverdl.py
│           └── requirements.txt
├── build.sh
├── requirements.txt
└── src/
    ├── _dist.bat
    ├── app/
    │   └── icon.icns
    ├── gui.py
    ├── pscoverdl.py
    ├── requirements.txt
    └── resources/
        ├── GameIndex.yaml
        └── gamedb.json
Download .txt
SYMBOL INDEX (52 symbols across 5 files)

FILE: _archive/ps1coverdl/DuckStation-cover-downloader/covers.py
  function path (line 35) | def path():
  function check_version (line 43) | def check_version():
  function serial_list (line 52) | def serial_list():  # Get game serial
  function existing_covers (line 66) | def existing_covers():
  function download_covers (line 74) | def download_covers(serial_list: list):  # Download Covers
  function set_terminal_title (line 100) | def set_terminal_title(title):
  function run (line 105) | def run():

FILE: _archive/ps2coverdl/1.0/PCSX2 cover downloader.py
  function path (line 36) | def path():
  function check_version (line 44) | def check_version():
  function serial_list (line 53) | def serial_list():  # Get game serial
  function name_list (line 65) | def name_list():  # Get game name
  function existing_covers (line 73) | def existing_covers():
  function serial_to_name (line 78) | def serial_to_name(name_list, serial:str):  # Get game name using serial
  function download_covers (line 86) | def download_covers(serial_list:list, name_list):  # Download Covers
  function run (line 105) | def run():

FILE: _archive/ps2coverdl/2.0/ps2coverdl.py
  function set_console_title (line 19) | def set_console_title():
  function get_config (line 26) | def get_config():
  function save_config (line 33) | def save_config(config):
  function get_pcsx2_file (line 42) | def get_pcsx2_file(config):
  function serial_list (line 60) | def serial_list(games_file):
  function name_list (line 79) | def name_list(games_file):
  function existing_covers (line 96) | def existing_covers(covers_dir):
  function serial_to_name (line 103) | def serial_to_name(name_list, serial):
  function download_covers (line 107) | def download_covers(serial_list, name_list, covers_dir, use_ssl):
  function run (line 149) | def run(games_file, covers_dir, use_ssl):

FILE: src/gui.py
  function get_config_path (line 41) | def get_config_path() -> Path:
  class pscoverdl_gui (line 61) | class pscoverdl_gui(ctk.CTk):
    method __init__ (line 62) | def __init__(self):
    method select_frame_by_name (line 317) | def select_frame_by_name(self, name):
    method duckstation_button_event (line 336) | def duckstation_button_event(self):
    method pcsx2_button_event (line 339) | def pcsx2_button_event(self):
    method select_directory (line 342) | def select_directory(self, emulator: str, is_cache: bool):
    method load_configurations (line 365) | def load_configurations(self):
    method save_configurations (line 413) | def save_configurations(self):
    method start_download (line 435) | def start_download(self, emulator: str):
    method _on_download_complete (line 468) | def _on_download_complete(self):
    method _set_download_buttons_state (line 473) | def _set_download_buttons_state(self, state: str):
    method check_updates (line 480) | def check_updates(self, version: float):

FILE: src/pscoverdl.py
  class BaseCoverDownloader (line 27) | class BaseCoverDownloader:
    method __init__ (line 28) | def __init__(self, cover_dir, gamelist_dir, cover_type, use_ssl, emula...
    method get_serial_list (line 36) | def get_serial_list(self, gamelist_cache_path, existing_covers):
    method existing_covers (line 58) | def existing_covers(self):
    method serial_to_name (line 65) | def serial_to_name(self, name_list, game_serial):
    method download_cover (line 68) | def download_cover(self, url, cover_path):
    method download (line 81) | def download(self):
  class PCSX2CoverDownloader (line 188) | class PCSX2CoverDownloader(BaseCoverDownloader):
    method __init__ (line 189) | def __init__(self, cover_dir, gamelist_dir, cover_type, use_ssl, emula...
    method get_name_list (line 192) | def get_name_list(self):
  class DuckStationCoverDownloader (line 212) | class DuckStationCoverDownloader(BaseCoverDownloader):
    method __init__ (line 213) | def __init__(self, cover_dir, gamelist_dir, cover_type, use_ssl, emula...
    method get_name_list (line 216) | def get_name_list(self):
  function download_covers (line 234) | def download_covers(cover_dir, gamelist_dir, cover_type, use_ssl, emulat...
Copy disabled (too large) Download .json
Condensed preview — 23 files, each showing path, character count, and a content snippet. Download the .json file for the full structured content (12,362K chars).
[
  {
    "path": ".github/workflows/build-release.yml",
    "chars": 1503,
    "preview": "name: Build & Release\n\non:\n  push:\n    tags:\n      - \"v*\"\n  workflow_dispatch:\n    inputs:\n      version:\n        descri"
  },
  {
    "path": ".github/workflows/build.yml",
    "chars": 9177,
    "preview": "name: Build PSCoverDL\n\non:\n  push:\n    tags:\n      - \"v*\"          # trigger on version tags, e.g. v1.2\n  workflow_dispa"
  },
  {
    "path": ".gitignore",
    "chars": 3092,
    "preview": "pscoverdl.ini\n\n# Byte-compiled / optimized / DLL files\n__pycache__/\n*.py[cod]\n*$py.class\n\n# C extensions\n*.so\n\n# Distrib"
  },
  {
    "path": "LICENSE",
    "chars": 35149,
    "preview": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free "
  },
  {
    "path": "README.md",
    "chars": 1200,
    "preview": "PSCoverDL\n\n![image](https://github.com/xlenore/pscoverdl/assets/57191159/4c4b3042-85e4-45b5-8f1b-48a6f00a93ea)\n\n### Feat"
  },
  {
    "path": "VERSION",
    "chars": 3,
    "preview": "1.1"
  },
  {
    "path": "_archive/ps1coverdl/DuckStation-cover-downloader/_dist.bat",
    "chars": 95,
    "preview": "pyinstaller \"DuckStation cover downloader.py\" --onefile --clean --distpath \"\"\n@RD /S /Q \"build\""
  },
  {
    "path": "_archive/ps1coverdl/DuckStation-cover-downloader/covers.py",
    "chars": 3370,
    "preview": "\"\"\"\n⣞⢽⢪⢣⢣⢣⢫⡺⡵⣝⡮⣗⢷⢽⢽⢽⣮⡷⡽⣜⣜⢮⢺⣜⢷⢽⢝⡽⣝\n⠸⡸⠜⠕⠕⠁⢁⢇⢏⢽⢺⣪⡳⡝⣎⣏⢯⢞⡿⣟⣷⣳⢯⡷⣽⢽⢯⣳⣫⠇\n⠀⠀⢀⢀⢄⢬⢪⡪⡎⣆⡈⠚⠜⠕⠇⠗⠝⢕⢯⢫⣞⣯⣿⣻⡽⣏⢗⣗⠏⠀\n⠀⠪⡪⡪⣪⢪⢺⢸⢢⢓⢆⢤⢀⠀⠀⠀⠀⠈⢊⢞⡾⣿⡯⣏"
  },
  {
    "path": "_archive/ps1coverdl/DuckStation-cover-downloader/requirements.txt",
    "chars": 44,
    "preview": "colorama==0.4.4\nPyYAML==6.0\ntermcolor==1.1.0"
  },
  {
    "path": "_archive/ps1coverdl/DuckStation-cover-downloader/version",
    "chars": 3,
    "preview": "1.1"
  },
  {
    "path": "_archive/ps2coverdl/1.0/PCSX2 cover downloader.py",
    "chars": 3618,
    "preview": "\"\"\"\n⣞⢽⢪⢣⢣⢣⢫⡺⡵⣝⡮⣗⢷⢽⢽⢽⣮⡷⡽⣜⣜⢮⢺⣜⢷⢽⢝⡽⣝\n⠸⡸⠜⠕⠕⠁⢁⢇⢏⢽⢺⣪⡳⡝⣎⣏⢯⢞⡿⣟⣷⣳⢯⡷⣽⢽⢯⣳⣫⠇\n⠀⠀⢀⢀⢄⢬⢪⡪⡎⣆⡈⠚⠜⠕⠇⠗⠝⢕⢯⢫⣞⣯⣿⣻⡽⣏⢗⣗⠏⠀\n⠀⠪⡪⡪⣪⢪⢺⢸⢢⢓⢆⢤⢀⠀⠀⠀⠀⠈⢊⢞⡾⣿⡯⣏"
  },
  {
    "path": "_archive/ps2coverdl/1.0/requirements.txt",
    "chars": 44,
    "preview": "colorama==0.4.4\nPyYAML==6.0\ntermcolor==1.1.0"
  },
  {
    "path": "_archive/ps2coverdl/2.0/ps2coverdl.py",
    "chars": 6382,
    "preview": "import argparse\nimport configparser\nimport os\nimport re\nimport sys\nimport urllib.request\nfrom time import sleep\nfrom tki"
  },
  {
    "path": "_archive/ps2coverdl/2.0/requirements.txt",
    "chars": 60,
    "preview": "colorama==0.4.6\nPyYAML==6.0.1\ntermcolor==2.3.0\ntqdm==4.64.1\n"
  },
  {
    "path": "build.sh",
    "chars": 2962,
    "preview": "#!/usr/bin/env bash\n# ---------------------------------------------------------------------------\n# build.sh — PSCoverDL"
  },
  {
    "path": "requirements.txt",
    "chars": 210,
    "preview": "certifi==2024.2.2\ncharset-normalizer==3.3.2\ncustomtkinter==5.2.2\ndarkdetect==0.8.0\nidna==3.6\npackaging==23.2\npillow==10."
  },
  {
    "path": "src/_dist.bat",
    "chars": 200,
    "preview": "pyinstaller \"gui.py\" --onefile --clean --distpath \"\" --icon=\"app/icon.ico\" --add-data=\"resources;resources\" --add-data=\""
  },
  {
    "path": "src/gui.py",
    "chars": 18774,
    "preview": "\"\"\"\n⣞⢽⢪⢣⢣⢣⢫⡺⡵⣝⡮⣗⢷⢽⢽⢽⣮⡷⡽⣜⣜⢮⢺⣜⢷⢽⢝⡽⣝\n⠸⡸⠜⠕⠕⠁⢁⢇⢏⢽⢺⣪⡳⡝⣎⣏⢯⢞⡿⣟⣷⣳⢯⡷⣽⢽⢯⣳⣫⠇\n⠀⠀⢀⢀⢄⢬⢪⡪⡎⣆⡈⠚⠜⠕⠇⠗⠝⢕⢯⢫⣞⣯⣿⣻⡽⣏⢗⣗⠏⠀\n⠀⠪⡪⡪⣪⢪⢺⢸⢢⢓⢆⢤⢀⠀⠀⠀⠀⠈⢊⢞⡾⣿⡯⣏"
  },
  {
    "path": "src/pscoverdl.py",
    "chars": 8785,
    "preview": "import os\nimport re\nimport concurrent.futures\nimport yaml\nimport json\nfrom termcolor import colored\nfrom tqdm import tqd"
  },
  {
    "path": "src/requirements.txt",
    "chars": 97,
    "preview": "customtkinter==5.2.0\nPillow==10.1.0\nPyYAML==6.0.1\nRequests==2.31.0\ntermcolor==2.3.0\ntqdm==4.64.1\n"
  },
  {
    "path": "src/resources/GameIndex.yaml",
    "chars": 1567076,
    "preview": "# ---------------------------------------------\n# PCSX2 Game Database!\n# ---------------------------------------------\n\n"
  },
  {
    "path": "src/resources/gamedb.json",
    "chars": 9269818,
    "preview": "[\n {\n  \"serial\": \"SLPS-03086\",\n  \"name\": \"'98 Koshien [Magical 1500 Series] (aka '98 Koushien [Magical 1500 Series])\",\n "
  }
]

// ... and 1 more files (download for full content)

About this extraction

This page contains the full source code of the xlenore/pscoverdl GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 23 files (10.4 MB), approximately 2.7M tokens, and a symbol index with 52 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!