# 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

# mgba requires liblua 5.3
noblacklist /usr/lib/liblua*
noblacklist /usr/lib64/liblua*

mkdir ${HOME}/.config/mgba
mkfile ${HOME}/.config/mGBArc
mkdir ${HOME}/.local/share/mgba
whitelist ${HOME}/.config/mgba
whitelist ${HOME}/.config/mGBArc
whitelist ${HOME}/.local/share/mgba
whitelist-ro ${HOME}/games/Emulators/GBAGAMES
include whitelist-common.inc

# # seccomp breaks integrated file manager on kde applications
# # due to syscall name_to_handle_at
seccomp !name_to_handle_at

# mgba requires input and protocol netlink for controller support
ignore noinput
protocol unix,netlink


ignore memory-deny-write-execute

include generic-game.inc