# This file is overwritten after every install/update
# Persistent local customizations
include mgba.local
# Persistent global definitions
include globals.local

noblacklist ${HOME}/.config/mgba
noblacklist ${HOME}/.local/share/mgba
noblacklist ${HOME}/games/Emulators/GBAGAMES

mkdir ${HOME}/.config/mgba
mkdir ${HOME}/.local/share/mgba
whitelist ${HOME}/.config/mgba
whitelist ${HOME}/.local/share/mgba
whitelist ${HOME}/games/Emulators/GBAGAMES
read-only ${HOME}/games/Emulators/GBAGAMES
include whitelist-common.inc

# name_to_handle_at required for kde file manager
# kcmp required for amdgpu
seccomp !name_to_handle_at,!kcmp

# netlink required for controller support
protocol unix,netlink

# private-dev breaks controllers
ignore private-dev

ignore memory-deny-write-execute

include generic-game.inc