Skip to content
Snippets Groups Projects
Verified Commit dfa69c78 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

chore: new base name

parent 59409920
No related branches found
No related tags found
1 merge request!37Improved support for PyBoy interface
Pipeline #3677 passed
from time import time from time import time
from boytacean import GameBoy, VISUAL_FREQ from boytacean import GameBoy, VISUAL_FREQ
from os.path import dirname, realpath, join from os.path import dirname, realpath, join, splitext, basename
CURRENT_DIR = dirname(realpath(__file__)) CURRENT_DIR = dirname(realpath(__file__))
ROM_PATH = join(CURRENT_DIR, "../../res/roms/demo/pocket.gb") ROM_PATH = join(CURRENT_DIR, "../../res/roms/demo/pocket.gb")
IMAGE_NAME = "pocket.png" ROM_NAME = splitext(basename(ROM_PATH))[0]
IMAGE_NAME = f"{ROM_NAME}.png"
FRAME_COUNT = 12000 FRAME_COUNT = 12000
LOAD_GRAPHICS = False LOAD_GRAPHICS = False
......
from time import time from time import time
from pyboy import PyBoy from pyboy import PyBoy
from os.path import dirname, realpath, join from os.path import dirname, realpath, join, splitext, basename
CURRENT_DIR = dirname(realpath(__file__)) CURRENT_DIR = dirname(realpath(__file__))
ROM_PATH = join(CURRENT_DIR, "../../res/roms/demo/pocket.gb") ROM_PATH = join(CURRENT_DIR, "../../res/roms/demo/pocket.gb")
IMAGE_NAME = "pocket_pyboy.png" ROM_NAME = splitext(basename(ROM_PATH))[0]
IMAGE_NAME = f"{ROM_NAME}_pyboy.png"
FRAME_COUNT = 12000 FRAME_COUNT = 12000
VISUAL_FREQ = 59.7275 VISUAL_FREQ = 59.7275
......
from time import time from time import time
from boytacean import GameBoy, VISUAL_FREQ from boytacean import GameBoy, VISUAL_FREQ
from os.path import dirname, realpath, join from os.path import dirname, realpath, join, splitext, basename
CURRENT_DIR = dirname(realpath(__file__)) CURRENT_DIR = dirname(realpath(__file__))
ROM_PATH = join(CURRENT_DIR, "../../res/roms/demo/pocket.gb") ROM_PATH = join(CURRENT_DIR, "../../res/roms/demo/pocket.gb")
BOOT_ROM_PATH = join(CURRENT_DIR, "../../res/boot/dmg_pyboy.bin") BOOT_ROM_PATH = join(CURRENT_DIR, "../../res/boot/dmg_pyboy.bin")
IMAGE_NAME = "pocket.png" ROM_NAME = splitext(basename(ROM_PATH))[0]
IMAGE_NAME = f"{ROM_NAME}_pyboy_iface.png"
FRAME_COUNT = 12000 FRAME_COUNT = 12000
LOAD_GRAPHICS = True LOAD_GRAPHICS = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment