Skip to content

Instantly share code, notes, and snippets.

View zach-morris's full-sized avatar

Zach Morris zach-morris

  • Bayside
View GitHub Profile
@zach-morris
zach-morris / get_softlist_info.py
Last active December 20, 2023 17:53
MAME Available Softlists
# Creates a list of all supported softlist systems in MAME/MESS using them with python. Quick and dirty
# As described here: https://forums.libretro.com/t/guide-play-non-arcade-systems-with-mame-or-mess/17728/
# Using re, requests, and pandas
import pandas as pd
import re, requests, xmltodict
from pathlib import Path
with requests.get('https://github.com/mamedev/mame/tree/master/hash') as url:
hash_files = [x for x in re.findall('{"name":".*?","path":"hash/(.*?)","contentType":"file"}',url.text) if x.endswith('xml')]
softlists = list()
@zach-morris
zach-morris / .gitignore
Last active April 6, 2024 11:13
Create MAME dummy/empty files for use with RetroArch a
._*
@zach-morris
zach-morris / 1_create_mame_dummy_files.py
Last active May 28, 2021 23:56
Creates dummy files for use with MAME software lists that can play games using them
# Creates dummy files for use with MAME software lists that can play games using them with python. Quick and dirty
# As described here: https://forums.libretro.com/t/guide-play-non-arcade-systems-with-mame-or-mess/17728/
# Using pathlib and xmltodict https://pypi.org/project/xmltodict/
from pathlib import Path
import xmltodict
import requests
folder = Path('.../neocdz/') #Path to where the dummy files should be generated
@zach-morris
zach-morris / Dropbox_Example_NES.xml
Created February 18, 2019 23:48
Example Dropbox IAGL xml file
<?xml version="1.0" encoding="UTF-8"?>
<datafile>
<header>
<emu_name>Dropbox Example</emu_name>
<emu_description>Dropbox Example</emu_description>
<emu_category>Nintendo, 8 Bit, My Test</emu_category>
<emu_version>01012019</emu_version>
<emu_date>01/01/2019</emu_date>
<emu_author>Zach Morris</emu_author>
<emu_visibility>visible</emu_visibility>
@zach-morris
zach-morris / Google_Drive_Example_NES.xml
Last active February 18, 2020 15:53
Example Google Drive IAGL xml file
<?xml version="1.0" encoding="UTF-8"?>
<datafile>
<header>
<emu_name>Google Drive Example</emu_name>
<emu_description>Google Drive Example</emu_description>
<emu_category>Nintendo, 8 Bit, My Test</emu_category>
<emu_version>01012019</emu_version>
<emu_date>01/01/2019</emu_date>
<emu_author>Zach Morris</emu_author>
<emu_visibility>visible</emu_visibility>
@zach-morris
zach-morris / download_buildbot_cores.py
Last active October 26, 2019 01:18
Simple python script to install latest retroarch cores from buildbot
#Simple python script to install latest retroarch cores from buildbot
#To use this script, edit the settings below and from the command line, call python "...path_to_file/download_buildbot_cores.py"
## Script settings
#Buidbot URL for your system
buildbot_url = 'http://buildbot.libretro.com/nightly/apple/osx/x86_64/latest/'
#Temporary directory to download files to, you must have write access to this directory
temp_directory = '/Users/enter_username_here/Downloads/temp_cores'
delete_temp_directory_after_complete = False