This file contains hidden or 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
#!/bin/bash | |
# SPDX-License-Identifier: GPL-2.0-or-later | |
# Copyright (C) 2019-present Shanti Gilbert (https://github.com/shantigilbert) | |
. /etc/profile | |
CONFIG_DIR="/emuelec/configs/advmame" | |
export DISPLAY=:0 |
This file contains hidden or 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
#!/bin/bash | |
# SPDX-License-Identifier: GPL-2.0-or-later | |
# Copyright (C) 2019-present Shanti Gilbert (https://github.com/shantigilbert) | |
# Copyright (C) 2022-present Joshua L (https://github.com/Langerz82) | |
# Read the video output mode and set it for emuelec to avoid video flicking. | |
# This file sets the hdmi output and frame buffer to the argument in pixel width. |
This file contains hidden or 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
// TODO - Grid axis is not being checked properly. | |
isValidPath: function (grid, path) { | |
// Check collision from an axis, n1 to n2, n3 is for the other axis. | |
var c1to2on3 = function (n1,n2,n3,axis) { | |
log.info("c1to2on3 - n1:"+n1+",n2:"+n2+",n3:"+n3); | |
var isDec = (n3 % 1 == 0); | |
var n1f = Math.floor(n1), n2c = Math.ceil(n2); | |
var i1 = Math.min(n1f,n2c), i2 = Math.max(n1f,n2c); | |
if (n1f != n2c) { | |
var n3f=Math.floor(n3), n3c=Math.ceil(n3); |
This file contains hidden or 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
// Tries to see if Manhatten Distance paths have no collision. | |
// @param grid - A two-dimensional array containing the y-axis and x-axis in that order. | |
// @param start - A single array of the start coordinate start[0]=x, start[1]=y. | |
// @param start - A single array of the end coordinate end[0]=x, end[1]=y. | |
// | |
var findEasyPath = function (grid, start, end) { | |
var ts = G_TILESIZE; // 16 units in each grid coordinate. | |
var sx, sy, ex, ey; |
This file contains hidden or 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
#!/bin/bash | |
# SPDX-License-Identifier: GPL-2.0-or-later | |
# Copyright (C) 2019-present Shanti Gilbert (https://github.com/shantigilbert) | |
# Copyright (C) 2022-present Joshua L (https://github.com/Langerz82) | |
# Read the video output mode and set it for emuelec to avoid video flicking. | |
# This file sets the hdmi output and frame buffer to the argument in pixel width. | |
# Allowed argument example ./setres.sh 1080p60hz <-- For height 1080 pixels. |
This file contains hidden or 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
#!/bin/sh | |
# SPDX-License-Identifier: GPL-2.0-or-later | |
# Copyright (C) 2019-present Shanti Gilbert (https://github.com/shantigilbert) | |
# Read the video output mode and set it for emuelec to avoid video flicking. | |
# This file sets the hdmi output and frame buffer to the argument in pixel width. | |
# Allowed argument example ./setres.sh 1080p60hz <-- For height 1080 pixels. |
This file contains hidden or 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
[DSP] | |
DSPThread = True | |
Backend = ALSA | |
[General] | |
ShowLag = False | |
ShowFrameCount = False | |
ISOPaths = 0 | |
WirelessMac = | |
GDBSocket = | |
GDBPort = -1 |
This file contains hidden or 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
check_guid() { | |
JSI="$1" | |
DEVICE_GUID="$2" | |
#echo "DEVICE_GUID=$DEVICE_GUID" | |
#v=${DEVICE_GUID:0:8} | |
#part1=$(echo ${v:6:2}${v:4:2}${v:2:2}${v:0:2}) # Bus, generally not needed | |
v=${DEVICE_GUID:8:8} | |
part2=$(echo ${v:6:2}${v:4:2}${v:2:2}${v:0:2}) # Vendor | |
v=${DEVICE_GUID:16:8} |
This file contains hidden or 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
diff --git a/packages/sx05re/emuelec/bin/set_advmame_joy.sh b/packages/sx05re/emuelec/bin/set_advmame_joy.sh | |
index 7fa5e23965..10521f7785 100755 | |
--- a/packages/sx05re/emuelec/bin/set_advmame_joy.sh | |
+++ b/packages/sx05re/emuelec/bin/set_advmame_joy.sh | |
@@ -14,6 +14,7 @@ PAD_FOUND=0 | |
EE_DEV="js0" | |
GPFILE="" | |
GAMEPAD="" | |
+ROMNAME="$1" | |
This file contains hidden or 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
var baseTempLuck = 50; | |
var maxTempLuck = 100; | |
var TempLuckPerLevel = 5; | |
var eliteTempLuckMod = 2; | |
Number.prototype.clamp = function(min, max) { | |
return Math.min(Math.max(this, min), max); | |
}; |