Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion PortMaster/device_info.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ fi
CFW_NAME="Unknown"
CFW_VERSION="Unknown"

if [ -f "/usr/share/plymouth/themes/text.plymouth" ]; then
if [ -f "/loong/loong_version" ]; then
CFW_NAME="Loong"
CFW_VERSION=$(cat /loong/loong_version 2>/dev/null | grep -o '"verShow"[[:space:]]*:[[:space:]]*"[^"]*"' | cut -d'"' -f4)
[ -z "$CFW_VERSION" ] && CFW_VERSION="Unknown"
elif [ -f "/usr/share/plymouth/themes/text.plymouth" ]; then
CFW_INFO=$(grep "title=" "/usr/share/plymouth/themes/text.plymouth")
CFW_FFS=$(grep -a "title=" "/usr/share/plymouth/themes/text.plymouth" | cut -d'=' -f 2- | tr -cd 'a-zA-Z' | tr '[:upper:]' '[:lower:]')

Expand Down
30 changes: 30 additions & 0 deletions PortMaster/mod_Loong.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash
#
# SPDX-License-Identifier: MIT
#

## Modular - Loong
#
# A modular file that is sourced for specific script lines required by ports running on MiniLoong.
#
# usage `[ -f "${controlfolder}/mod_${CFW_NAME}.txt" ] && source "${controlfolder}/mod_${CFW_NAME}.txt"`

# Set virtual screen
CUR_TTY="/dev/fd/1"

# Use for Godot 2
GODOT2_OPTS="-r ${DISPLAY_WIDTH}x${DISPLAY_HEIGHT} -f"

# Use for Godot 3+
GODOT_OPTS="--resolution ${DISPLAY_WIDTH}x${DISPLAY_HEIGHT} -f"

export directory="mnt/sdcard/roms"

pm_platform_helper() {
if [ -e "$PM_PIPE" ]; then
PortMasterDialogExit
fi

# DO SOMETHING HERE
printf ""
}