-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/ericb59/Fusion-C-v1.2
- Loading branch information
Showing
3 changed files
with
29 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,29 @@ | ||
#!/bin/bash | ||
# OpenMSX Start Script | ||
# The emulator will be started only if it's not already active | ||
|
||
#MacOS | ||
if [ "$(uname -s)" = "Darwin" ]; then | ||
xopenmsx=`ps x | grep "openmsx " | grep -v grep` | ||
|
||
if [ "${xopenmsx}" = "" ]; then | ||
echo "...Now Starting OpenMsx " | ||
./openMSX/openMSX.app/Contents/MacOS/openmsx -script ./openMSX/emul_start_config.txt | NULL | ||
else | ||
echo "...openMSX already running " | ||
fi | ||
|
||
xopenmsx=`ps x | grep "openmsx " | grep -v grep` | ||
|
||
if [ "${xopenmsx}" == "" ]; then | ||
echo "...Now Starting OpenMsx " | ||
./openMSX/openMSX.app/Contents/MacOS/openmsx -script ./openMSX/emul_start_config.txt | NULL | ||
#Linux | ||
elif [ "$(uname -s)" = "Linux" ]; then | ||
xopenmsx=`pgrep "openmsx"` | ||
|
||
if [ "${xopenmsx}" = "" ]; then | ||
echo "...Now Starting OpenMSX " | ||
/opt/openMSX/bin/openmsx -script ./openMSX/emul_start_config.txt | ||
else | ||
echo "...openMSX already running " | ||
fi | ||
|
||
#Other | ||
else | ||
echo "...openMSX already running " | ||
fi | ||
echo "Failed to identify OS" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
Copy here the OPenMSX Executable. Previously set with needed system roms. | ||
MacOS and Windows: Copy here the OpenMSX Executable. Previously set with needed system roms. | ||
Linux: This script assumes you've compiled the emulator with make install, which puts the executable in /opt/openMSX/bin. Change if needed. |