Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

dump_sections.py doesn't calculate last_bank #23

Description

@kanzure
$ python dump_sections.py
Traceback (most recent call last):
  File "dump_sections.py", line 126, in <module>
    output = dump_sections(baserom)
  File "dump_sections.py", line 83, in dump_sections
    last_bank = calculate_bank_quantity(path, bank_size=bank_size)
  File "dump_sections.py", line 46, in calculate_bank_quantity
    return float(os.lstat(path).st_size) / bank_size
OSError: [Errno 2] No such file or directory: 'baserom.gbc'

and then:

$ python dump_sections.py
Traceback (most recent call last):
  File "dump_sections.py", line 126, in <module>
    output = dump_sections(baserom)
  File "dump_sections.py", line 92, in dump_sections
    banks = range(initial_bank, last_bank)
TypeError: range() integer end argument expected, got float.

wtf?


Above report is from pokecrystal issue 141.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions