# Copyright (C) 2026 SharpEmu Emulator Project
# SPDX-License-Identifier: GPL-2.0-or-later

name: Bug Report
description: Report a bug in the emulator
labels: ["bug"]

body:
  - type: markdown
    attributes:
      value: |
        ### Before creating an issue

        - Do not create issues involving **software piracy**. Our rules specifically prohibit this.  
          Issues related to piracy will be closed and the author may be banned from the repository.

        - The issue tracker is **not for asking questions**.  
          Question-type issues will be closed.

        - Only open an issue if you are reporting an actual **bug in the emulator**.

  - type: input
    id: emulator_version
    attributes:
      label: Emulator Version / Commit
      description: The emulator version or git commit where the bug occurred
      placeholder: e.g. v0.0.2 / a1b2c3d
    validations:
      required: true

  - type: textarea
    id: description
    attributes:
      label: Bug Description
      description: Describe the problem and how to reproduce it
      placeholder: |
        Steps to reproduce:
        1. Launch emulator
        2. Load game
        3. Crash occurs

        Expected behavior:
        ...

        Actual behavior:
        ...
    validations:
      required: true

  - type: textarea
    id: logs
    attributes:
      label: Log File
      description: |
        Drag & drop your log file here, or paste the log contents.

        Supported: .log / .txt / .zip
        Large logs should be uploaded as a file.
      render: shell
