#!/bin/bash # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2023-present BrooksyTech (https://github.com/brooksytech) . /etc/profile if [ ! -d "/storage/.config/melonDS" ]; then mkdir -p "/storage/.config/melonDS" cp -r "/usr/config/melonDS" "/storage/.config/" fi if [ ! -d "/storage/roms/savestates/nds" ]; then mkdir -p "/storage/roms/savestates/nds" fi melonDS -f "${1}"