mirror of
https://github.com/RetroPie/RetroPie-Setup.git
synced 2025-04-02 10:51:41 -04:00
Micropolis runs in a maximized window, but doesn't have any fullscreen option and it relies on the WM cursor to operate.
35 lines
1 KiB
Bash
35 lines
1 KiB
Bash
#!/usr/bin/env bash
|
|
|
|
# This file is part of The RetroPie Project
|
|
#
|
|
# The RetroPie Project is the legal property of its developers, whose names are
|
|
# too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source.
|
|
#
|
|
# See the LICENSE.md file at the top-level directory of this distribution and
|
|
# at https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/master/LICENSE.md
|
|
#
|
|
|
|
rp_module_id="micropolis"
|
|
rp_module_desc="Micropolis - Open Source City Building Game"
|
|
rp_module_licence="GPL https://raw.githubusercontent.com/SimHacker/micropolis/wiki/License.md"
|
|
rp_module_section="opt"
|
|
rp_module_flags="!mali"
|
|
|
|
function depends_micropolis() {
|
|
! isPlatform "x11" getDepends xorg matchbox-window-manager
|
|
}
|
|
|
|
function install_bin_micropolis() {
|
|
aptInstall micropolis
|
|
}
|
|
|
|
function remove_micropolis() {
|
|
aptRemove micropolis
|
|
}
|
|
|
|
function configure_micropolis() {
|
|
local binary="/usr/games/micropolis"
|
|
! isPlatform "x11" && binary="XINIT-WMC:/usr/games/micropolis"
|
|
|
|
addPort "$md_id" "micropolis" "Micropolis" "$binary"
|
|
}
|