From 5d1bfce2a5515ea52fedeadb071132950645041c Mon Sep 17 00:00:00 2001 From: Locutus73 Date: Mon, 14 Jan 2019 20:22:01 +0100 Subject: [PATCH] Version 2.0 Using change_ini_property.sh.inc --- cores_timestamp_off.sh | 20 ++++---------------- cores_timestamp_on.sh | 20 ++++---------------- scandoubler_off.sh | 20 ++++---------------- scandoubler_on.sh | 20 ++++---------------- vga_scaler_off.sh | 20 ++++---------------- vga_scaler_on.sh | 20 ++++---------------- video_info_off.sh | 20 ++++---------------- video_info_on.sh | 20 ++++---------------- video_mode_1080p50.sh | 20 ++++---------------- video_mode_1080p60.sh | 20 ++++---------------- video_mode_720p50.sh | 20 ++++---------------- video_mode_720p60.sh | 20 ++++---------------- vscale_0.25_scale.sh | 20 ++++---------------- vscale_0.5_scale.sh | 20 ++++---------------- vscale_fit_height.sh | 20 ++++---------------- vscale_integer_scale.sh | 20 ++++---------------- vsync_low_latency.sh | 20 ++++---------------- vsync_match_core.sh | 20 ++++---------------- vsync_match_display.sh | 20 ++++---------------- 19 files changed, 76 insertions(+), 304 deletions(-) diff --git a/cores_timestamp_off.sh b/cores_timestamp_off.sh index a744014..ac2bc37 100644 --- a/cores_timestamp_off.sh +++ b/cores_timestamp_off.sh @@ -18,22 +18,10 @@ # You can download the latest version of this script from: # https://github.com/MiSTer-devel/Scripts_MiSTer +# Version 2.0 - 2019-01-14 - Using change_ini_property.sh.inc # Version 1.0.1 - 2019-01-09 - Fixed regular expression for not matching commented parameters. # Version 1.0 - 2019-01-08 - First commit. -if [ ! -f "/media/fat/config/MiSTer.ini" ] -then - echo "Downloading MiSTer.ini" - if ! curl -kL "https://github.com/MiSTer-devel/Main_MiSTer/blob/master/MiSTer.ini?raw=true" -o "/media/fat/config/MiSTer.ini" - then - echo "Unable to download" - echo "MiSTer.ini" - exit 1 - fi -fi -cp /media/fat/config/MiSTer.ini /media/fat/config/MiSTer.ini.bak -DATECODE_VALUE=1 -sed -i "1,/^\s*rbf_hide_datecode=[0-9]*/{s/^\s*rbf_hide_datecode=[0-9]*/rbf_hide_datecode=$DATECODE_VALUE/}" /media/fat/config/MiSTer.ini -echo "rbf_hide_datecode=$DATECODE_VALUE" -reboot now -exit 0 \ No newline at end of file +PROPERTY_NAME="rbf_hide_datecode" +PROPERTY_VALUE="1" +source "$(dirname $(readlink -f $0))/change_ini_property.sh.inc" \ No newline at end of file diff --git a/cores_timestamp_on.sh b/cores_timestamp_on.sh index f7acff0..04e23ff 100644 --- a/cores_timestamp_on.sh +++ b/cores_timestamp_on.sh @@ -18,22 +18,10 @@ # You can download the latest version of this script from: # https://github.com/MiSTer-devel/Scripts_MiSTer +# Version 2.0 - 2019-01-14 - Using change_ini_property.sh.inc # Version 1.0.1 - 2019-01-09 - Fixed regular expression for not matching commented parameters. # Version 1.0 - 2019-01-08 - First commit. -if [ ! -f "/media/fat/config/MiSTer.ini" ] -then - echo "Downloading MiSTer.ini" - if ! curl -kL "https://github.com/MiSTer-devel/Main_MiSTer/blob/master/MiSTer.ini?raw=true" -o "/media/fat/config/MiSTer.ini" - then - echo "Unable to download" - echo "MiSTer.ini" - exit 1 - fi -fi -cp /media/fat/config/MiSTer.ini /media/fat/config/MiSTer.ini.bak -DATECODE_VALUE=0 -sed -i "1,/^\s*rbf_hide_datecode=[0-9]*/{s/^\s*rbf_hide_datecode=[0-9]*/rbf_hide_datecode=$DATECODE_VALUE/}" /media/fat/config/MiSTer.ini -echo "rbf_hide_datecode=$DATECODE_VALUE" -reboot now -exit 0 \ No newline at end of file +PROPERTY_NAME="rbf_hide_datecode" +PROPERTY_VALUE="0" +source "$(dirname $(readlink -f $0))/change_ini_property.sh.inc" \ No newline at end of file diff --git a/scandoubler_off.sh b/scandoubler_off.sh index 3cfb4a2..db4c3b4 100644 --- a/scandoubler_off.sh +++ b/scandoubler_off.sh @@ -18,22 +18,10 @@ # You can download the latest version of this script from: # https://github.com/MiSTer-devel/Scripts_MiSTer +# Version 2.0 - 2019-01-14 - Using change_ini_property.sh.inc # Version 1.0.1 - 2019-01-09 - Fixed regular expression for not matching commented parameters. # Version 1.0 - 2019-01-08 - First commit. -if [ ! -f "/media/fat/config/MiSTer.ini" ] -then - echo "Downloading MiSTer.ini" - if ! curl -kL "https://github.com/MiSTer-devel/Main_MiSTer/blob/master/MiSTer.ini?raw=true" -o "/media/fat/config/MiSTer.ini" - then - echo "Unable to download" - echo "MiSTer.ini" - exit 1 - fi -fi -cp /media/fat/config/MiSTer.ini /media/fat/config/MiSTer.ini.bak -SCANDOUBLER_VALUE=0 -sed -i "1,/^\s*forced_scandoubler=[0-9]*/{s/^\s*forced_scandoubler=[0-9]*/forced_scandoubler=$SCANDOUBLER_VALUE/}" /media/fat/config/MiSTer.ini -echo "forced_scandoubler=$SCANDOUBLER_VALUE" -reboot now -exit 0 \ No newline at end of file +PROPERTY_NAME="forced_scandoubler" +PROPERTY_VALUE="0" +source "$(dirname $(readlink -f $0))/change_ini_property.sh.inc" \ No newline at end of file diff --git a/scandoubler_on.sh b/scandoubler_on.sh index 9f20f42..0450e46 100644 --- a/scandoubler_on.sh +++ b/scandoubler_on.sh @@ -18,22 +18,10 @@ # You can download the latest version of this script from: # https://github.com/MiSTer-devel/Scripts_MiSTer +# Version 2.0 - 2019-01-14 - Using change_ini_property.sh.inc # Version 1.0.1 - 2019-01-09 - Fixed regular expression for not matching commented parameters. # Version 1.0 - 2019-01-08 - First commit. -if [ ! -f "/media/fat/config/MiSTer.ini" ] -then - echo "Downloading MiSTer.ini" - if ! curl -kL "https://github.com/MiSTer-devel/Main_MiSTer/blob/master/MiSTer.ini?raw=true" -o "/media/fat/config/MiSTer.ini" - then - echo "Unable to download" - echo "MiSTer.ini" - exit 1 - fi -fi -cp /media/fat/config/MiSTer.ini /media/fat/config/MiSTer.ini.bak -SCANDOUBLER_VALUE=1 -sed -i "1,/^\s*forced_scandoubler=[0-9]*/{s/^\s*forced_scandoubler=[0-9]*/forced_scandoubler=$SCANDOUBLER_VALUE/}" /media/fat/config/MiSTer.ini -echo "forced_scandoubler=$SCANDOUBLER_VALUE" -reboot now -exit 0 \ No newline at end of file +PROPERTY_NAME="forced_scandoubler" +PROPERTY_VALUE="1" +source "$(dirname $(readlink -f $0))/change_ini_property.sh.inc" \ No newline at end of file diff --git a/vga_scaler_off.sh b/vga_scaler_off.sh index d794156..5bb9ec6 100644 --- a/vga_scaler_off.sh +++ b/vga_scaler_off.sh @@ -18,22 +18,10 @@ # You can download the latest version of this script from: # https://github.com/MiSTer-devel/Scripts_MiSTer +# Version 2.0 - 2019-01-14 - Using change_ini_property.sh.inc # Version 1.0.1 - 2019-01-09 - Fixed regular expression for not matching commented parameters. # Version 1.0 - 2019-01-08 - First commit. -if [ ! -f "/media/fat/config/MiSTer.ini" ] -then - echo "Downloading MiSTer.ini" - if ! curl -kL "https://github.com/MiSTer-devel/Main_MiSTer/blob/master/MiSTer.ini?raw=true" -o "/media/fat/config/MiSTer.ini" - then - echo "Unable to download" - echo "MiSTer.ini" - exit 1 - fi -fi -cp /media/fat/config/MiSTer.ini /media/fat/config/MiSTer.ini.bak -VGA_SCALER_VALUE=0 -sed -i "1,/^\s*vga_scaler=[0-9]*/{s/^\s*vga_scaler=[0-9]*/vga_scaler=$VGA_SCALER_VALUE/}" /media/fat/config/MiSTer.ini -echo "vga_scaler=$VGA_SCALER_VALUE" -reboot now -exit 0 \ No newline at end of file +PROPERTY_NAME="vga_scaler" +PROPERTY_VALUE="0" +source "$(dirname $(readlink -f $0))/change_ini_property.sh.inc" \ No newline at end of file diff --git a/vga_scaler_on.sh b/vga_scaler_on.sh index 188f2a7..807b0f7 100644 --- a/vga_scaler_on.sh +++ b/vga_scaler_on.sh @@ -18,22 +18,10 @@ # You can download the latest version of this script from: # https://github.com/MiSTer-devel/Scripts_MiSTer +# Version 2.0 - 2019-01-14 - Using change_ini_property.sh.inc # Version 1.0.1 - 2019-01-09 - Fixed regular expression for not matching commented parameters. # Version 1.0 - 2019-01-08 - First commit. -if [ ! -f "/media/fat/config/MiSTer.ini" ] -then - echo "Downloading MiSTer.ini" - if ! curl -kL "https://github.com/MiSTer-devel/Main_MiSTer/blob/master/MiSTer.ini?raw=true" -o "/media/fat/config/MiSTer.ini" - then - echo "Unable to download" - echo "MiSTer.ini" - exit 1 - fi -fi -cp /media/fat/config/MiSTer.ini /media/fat/config/MiSTer.ini.bak -VGA_SCALER_VALUE=1 -sed -i "1,/^\s*vga_scaler=[0-9]*/{s/^\s*vga_scaler=[0-9]*/vga_scaler=$VGA_SCALER_VALUE/}" /media/fat/config/MiSTer.ini -echo "vga_scaler=$VGA_SCALER_VALUE" -reboot now -exit 0 \ No newline at end of file +PROPERTY_NAME="vga_scaler" +PROPERTY_VALUE="1" +source "$(dirname $(readlink -f $0))/change_ini_property.sh.inc" \ No newline at end of file diff --git a/video_info_off.sh b/video_info_off.sh index a92da35..e7273db 100644 --- a/video_info_off.sh +++ b/video_info_off.sh @@ -18,22 +18,10 @@ # You can download the latest version of this script from: # https://github.com/MiSTer-devel/Scripts_MiSTer +# Version 2.0 - 2019-01-14 - Using change_ini_property.sh.inc # Version 1.0.1 - 2019-01-09 - Fixed regular expression for not matching commented parameters. # Version 1.0 - 2019-01-08 - First commit. -if [ ! -f "/media/fat/config/MiSTer.ini" ] -then - echo "Downloading MiSTer.ini" - if ! curl -kL "https://github.com/MiSTer-devel/Main_MiSTer/blob/master/MiSTer.ini?raw=true" -o "/media/fat/config/MiSTer.ini" - then - echo "Unable to download" - echo "MiSTer.ini" - exit 1 - fi -fi -cp /media/fat/config/MiSTer.ini /media/fat/config/MiSTer.ini.bak -VIDEO_INFO_VALUE=0 -sed -i "1,/^\s*video_info=[0-9]*/{s/^\s*video_info*=[0-9]/video_info=$VIDEO_INFO_VALUE/}" /media/fat/config/MiSTer.ini -echo "video_info=$VIDEO_INFO_VALUE" -reboot now -exit 0 \ No newline at end of file +PROPERTY_NAME="video_info" +PROPERTY_VALUE="0" +source "$(dirname $(readlink -f $0))/change_ini_property.sh.inc" \ No newline at end of file diff --git a/video_info_on.sh b/video_info_on.sh index 818d2e6..9150d84 100644 --- a/video_info_on.sh +++ b/video_info_on.sh @@ -18,22 +18,10 @@ # You can download the latest version of this script from: # https://github.com/MiSTer-devel/Scripts_MiSTer +# Version 2.0 - 2019-01-14 - Using change_ini_property.sh.inc # Version 1.0.1 - 2019-01-09 - Fixed regular expression for not matching commented parameters. # Version 1.0 - 2019-01-08 - First commit. -if [ ! -f "/media/fat/config/MiSTer.ini" ] -then - echo "Downloading MiSTer.ini" - if ! curl -kL "https://github.com/MiSTer-devel/Main_MiSTer/blob/master/MiSTer.ini?raw=true" -o "/media/fat/config/MiSTer.ini" - then - echo "Unable to download" - echo "MiSTer.ini" - exit 1 - fi -fi -cp /media/fat/config/MiSTer.ini /media/fat/config/MiSTer.ini.bak -VIDEO_INFO_VALUE=10 -sed -i "1,/^\*svideo_info=[0-9]*/{s/^\s*video_info=[0-9]*/video_info=$VIDEO_INFO_VALUE/}" /media/fat/config/MiSTer.ini -echo "video_info=$VIDEO_INFO_VALUE" -reboot now -exit 0 \ No newline at end of file +PROPERTY_NAME="video_info" +PROPERTY_VALUE="10" +source "$(dirname $(readlink -f $0))/change_ini_property.sh.inc" \ No newline at end of file diff --git a/video_mode_1080p50.sh b/video_mode_1080p50.sh index 0e6b224..d3e1801 100644 --- a/video_mode_1080p50.sh +++ b/video_mode_1080p50.sh @@ -18,22 +18,10 @@ # You can download the latest version of this script from: # https://github.com/MiSTer-devel/Scripts_MiSTer +# Version 2.0 - 2019-01-14 - Using change_ini_property.sh.inc # Version 1.0.1 - 2019-01-09 - Fixed regular expression for not matching commented parameters. # Version 1.0 - 2019-01-08 - First commit. -if [ ! -f "/media/fat/config/MiSTer.ini" ] -then - echo "Downloading MiSTer.ini" - if ! curl -kL "https://github.com/MiSTer-devel/Main_MiSTer/blob/master/MiSTer.ini?raw=true" -o "/media/fat/config/MiSTer.ini" - then - echo "Unable to download" - echo "MiSTer.ini" - exit 1 - fi -fi -cp /media/fat/config/MiSTer.ini /media/fat/config/MiSTer.ini.bak -VIDEO_VALUE=9 -sed -i "1,/^\s*video_mode=[0-9]*/{s/^\s*video_mode=[0-9]*/video_mode=$VIDEO_VALUE/}" /media/fat/config/MiSTer.ini -echo "video_mode=$VIDEO_VALUE" -reboot now -exit 0 \ No newline at end of file +PROPERTY_NAME="video_mode" +PROPERTY_VALUE="9" +source "$(dirname $(readlink -f $0))/change_ini_property.sh.inc" \ No newline at end of file diff --git a/video_mode_1080p60.sh b/video_mode_1080p60.sh index 02daac8..cf39197 100644 --- a/video_mode_1080p60.sh +++ b/video_mode_1080p60.sh @@ -18,22 +18,10 @@ # You can download the latest version of this script from: # https://github.com/MiSTer-devel/Scripts_MiSTer +# Version 2.0 - 2019-01-14 - Using change_ini_property.sh.inc # Version 1.0.1 - 2019-01-09 - Fixed regular expression for not matching commented parameters. # Version 1.0 - 2019-01-08 - First commit. -if [ ! -f "/media/fat/config/MiSTer.ini" ] -then - echo "Downloading MiSTer.ini" - if ! curl -kL "https://github.com/MiSTer-devel/Main_MiSTer/blob/master/MiSTer.ini?raw=true" -o "/media/fat/config/MiSTer.ini" - then - echo "Unable to download" - echo "MiSTer.ini" - exit 1 - fi -fi -cp /media/fat/config/MiSTer.ini /media/fat/config/MiSTer.ini.bak -VIDEO_VALUE=8 -sed -i "1,/^\s*video_mode=[0-9]*/{s/^\s*video_mode=[0-9]*/video_mode=$VIDEO_VALUE/}" /media/fat/config/MiSTer.ini -echo "video_mode=$VIDEO_VALUE" -reboot now -exit 0 \ No newline at end of file +PROPERTY_NAME="video_mode" +PROPERTY_VALUE="8" +source "$(dirname $(readlink -f $0))/change_ini_property.sh.inc" \ No newline at end of file diff --git a/video_mode_720p50.sh b/video_mode_720p50.sh index 87e4d5a..ee9a1c4 100644 --- a/video_mode_720p50.sh +++ b/video_mode_720p50.sh @@ -18,22 +18,10 @@ # You can download the latest version of this script from: # https://github.com/MiSTer-devel/Scripts_MiSTer +# Version 2.0 - 2019-01-14 - Using change_ini_property.sh.inc # Version 1.0.1 - 2019-01-09 - Fixed regular expression for not matching commented parameters. # Version 1.0 - 2019-01-08 - First commit. -if [ ! -f "/media/fat/config/MiSTer.ini" ] -then - echo "Downloading MiSTer.ini" - if ! curl -kL "https://github.com/MiSTer-devel/Main_MiSTer/blob/master/MiSTer.ini?raw=true" -o "/media/fat/config/MiSTer.ini" - then - echo "Unable to download" - echo "MiSTer.ini" - exit 1 - fi -fi -cp /media/fat/config/MiSTer.ini /media/fat/config/MiSTer.ini.bak -VIDEO_VALUE=7 -sed -i "1,/^\s*video_mode=[0-9]*/{s/^\s*video_mode=[0-9]*/video_mode=$VIDEO_VALUE/}" /media/fat/config/MiSTer.ini -echo "video_mode=$VIDEO_VALUE" -reboot now -exit 0 \ No newline at end of file +PROPERTY_NAME="video_mode" +PROPERTY_VALUE="7" +source "$(dirname $(readlink -f $0))/change_ini_property.sh.inc" \ No newline at end of file diff --git a/video_mode_720p60.sh b/video_mode_720p60.sh index 60dc308..3b28a50 100644 --- a/video_mode_720p60.sh +++ b/video_mode_720p60.sh @@ -18,22 +18,10 @@ # You can download the latest version of this script from: # https://github.com/MiSTer-devel/Scripts_MiSTer +# Version 2.0 - 2019-01-14 - Using change_ini_property.sh.inc # Version 1.0.1 - 2019-01-09 - Fixed regular expression for not matching commented parameters. # Version 1.0 - 2019-01-08 - First commit. -if [ ! -f "/media/fat/config/MiSTer.ini" ] -then - echo "Downloading MiSTer.ini" - if ! curl -kL "https://github.com/MiSTer-devel/Main_MiSTer/blob/master/MiSTer.ini?raw=true" -o "/media/fat/config/MiSTer.ini" - then - echo "Unable to download" - echo "MiSTer.ini" - exit 1 - fi -fi -cp /media/fat/config/MiSTer.ini /media/fat/config/MiSTer.ini.bak -VIDEO_VALUE=0 -sed -i "1,/^\s*video_mode=[0-9]*/{s/^\s*video_mode=[0-9]*/video_mode=$VIDEO_VALUE/}" /media/fat/config/MiSTer.ini -echo "video_mode=$VIDEO_VALUE" -reboot now -exit 0 \ No newline at end of file +PROPERTY_NAME="video_mode" +PROPERTY_VALUE="0" +source "$(dirname $(readlink -f $0))/change_ini_property.sh.inc" \ No newline at end of file diff --git a/vscale_0.25_scale.sh b/vscale_0.25_scale.sh index b1969b7..7a128bc 100644 --- a/vscale_0.25_scale.sh +++ b/vscale_0.25_scale.sh @@ -18,23 +18,11 @@ # You can download the latest version of this script from: # https://github.com/MiSTer-devel/Scripts_MiSTer +# Version 2.0 - 2019-01-14 - Using change_ini_property.sh.inc # Version 1.1.1 - 2019-01-09 - Fixed regular expression for not matching commented parameters. # Version 1.1 - 2019-01-08 - MiSTer.ini downloaded from GitHub if missing. # Version 1.0 - 2019-01-07 - First commit. -if [ ! -f "/media/fat/config/MiSTer.ini" ] -then - echo "Downloading MiSTer.ini" - if ! curl -kL "https://github.com/MiSTer-devel/Main_MiSTer/blob/master/MiSTer.ini?raw=true" -o "/media/fat/config/MiSTer.ini" - then - echo "Unable to download" - echo "MiSTer.ini" - exit 1 - fi -fi -cp /media/fat/config/MiSTer.ini /media/fat/config/MiSTer.ini.bak -VSCALE_VALUE=3 -sed -i "1,/^\s*vscale_mode=[0-9]*/{s/^\s*vscale_mode=[0-9]*/vscale_mode=$VSCALE_VALUE/}" /media/fat/config/MiSTer.ini -echo "vscale_mode=$VSCALE_VALUE" -reboot now -exit 0 \ No newline at end of file +PROPERTY_NAME="vscale_mode" +PROPERTY_VALUE="3" +source "$(dirname $(readlink -f $0))/change_ini_property.sh.inc" \ No newline at end of file diff --git a/vscale_0.5_scale.sh b/vscale_0.5_scale.sh index de61440..135277f 100644 --- a/vscale_0.5_scale.sh +++ b/vscale_0.5_scale.sh @@ -18,23 +18,11 @@ # You can download the latest version of this script from: # https://github.com/MiSTer-devel/Scripts_MiSTer +# Version 2.0 - 2019-01-14 - Using change_ini_property.sh.inc # Version 1.1.1 - 2019-01-09 - Fixed regular expression for not matching commented parameters. # Version 1.1 - 2019-01-08 - MiSTer.ini downloaded from GitHub if missing. # Version 1.0 - 2019-01-07 - First commit. -if [ ! -f "/media/fat/config/MiSTer.ini" ] -then - echo "Downloading MiSTer.ini" - if ! curl -kL "https://github.com/MiSTer-devel/Main_MiSTer/blob/master/MiSTer.ini?raw=true" -o "/media/fat/config/MiSTer.ini" - then - echo "Unable to download" - echo "MiSTer.ini" - exit 1 - fi -fi -cp /media/fat/config/MiSTer.ini /media/fat/config/MiSTer.ini.bak -VSCALE_VALUE=2 -sed -i "1,/^\s*vscale_mode=[0-9]*/{s/^\s*vscale_mode=[0-9]*/vscale_mode=$VSCALE_VALUE/}" /media/fat/config/MiSTer.ini -echo "vscale_mode=$VSCALE_VALUE" -reboot now -exit 0 \ No newline at end of file +PROPERTY_NAME="vscale_mode" +PROPERTY_VALUE="2" +source "$(dirname $(readlink -f $0))/change_ini_property.sh.inc" \ No newline at end of file diff --git a/vscale_fit_height.sh b/vscale_fit_height.sh index 85003bf..e95acdb 100644 --- a/vscale_fit_height.sh +++ b/vscale_fit_height.sh @@ -18,23 +18,11 @@ # You can download the latest version of this script from: # https://github.com/MiSTer-devel/Scripts_MiSTer +# Version 2.0 - 2019-01-14 - Using change_ini_property.sh.inc # Version 1.1.1 - 2019-01-09 - Fixed regular expression for not matching commented parameters. # Version 1.1 - 2019-01-08 - MiSTer.ini downloaded from GitHub if missing. # Version 1.0 - 2019-01-07 - First commit. -if [ ! -f "/media/fat/config/MiSTer.ini" ] -then - echo "Downloading MiSTer.ini" - if ! curl -kL "https://github.com/MiSTer-devel/Main_MiSTer/blob/master/MiSTer.ini?raw=true" -o "/media/fat/config/MiSTer.ini" - then - echo "Unable to download" - echo "MiSTer.ini" - exit 1 - fi -fi -cp /media/fat/config/MiSTer.ini /media/fat/config/MiSTer.ini.bak -VSCALE_VALUE=0 -sed -i "1,/^\s*vscale_mode=[0-9]*/{s/^\s*vscale_mode=[0-9]*/vscale_mode=$VSCALE_VALUE/}" /media/fat/config/MiSTer.ini -echo "vscale_mode=$VSCALE_VALUE" -reboot now -exit 0 \ No newline at end of file +PROPERTY_NAME="vscale_mode" +PROPERTY_VALUE="0" +source "$(dirname $(readlink -f $0))/change_ini_property.sh.inc" \ No newline at end of file diff --git a/vscale_integer_scale.sh b/vscale_integer_scale.sh index e4f33b6..a9c81d2 100644 --- a/vscale_integer_scale.sh +++ b/vscale_integer_scale.sh @@ -18,23 +18,11 @@ # You can download the latest version of this script from: # https://github.com/MiSTer-devel/Scripts_MiSTer +# Version 2.0 - 2019-01-14 - Using change_ini_property.sh.inc # Version 1.1.1 - 2019-01-09 - Fixed regular expression for not matching commented parameters. # Version 1.1 - 2019-01-08 - MiSTer.ini downloaded from GitHub if missing. # Version 1.0 - 2019-01-07 - First commit. -if [ ! -f "/media/fat/config/MiSTer.ini" ] -then - echo "Downloading MiSTer.ini" - if ! curl -kL "https://github.com/MiSTer-devel/Main_MiSTer/blob/master/MiSTer.ini?raw=true" -o "/media/fat/config/MiSTer.ini" - then - echo "Unable to download" - echo "MiSTer.ini" - exit 1 - fi -fi -cp /media/fat/config/MiSTer.ini /media/fat/config/MiSTer.ini.bak -VSCALE_VALUE=1 -sed -i "1,/^\s*vscale_mode=[0-9]*/{s/^\s*vscale_mode=[0-9]*/vscale_mode=$VSCALE_VALUE/}" /media/fat/config/MiSTer.ini -echo "vscale_mode=$VSCALE_VALUE" -reboot now -exit 0 \ No newline at end of file +PROPERTY_NAME="vscale_mode" +PROPERTY_VALUE="1" +source "$(dirname $(readlink -f $0))/change_ini_property.sh.inc" \ No newline at end of file diff --git a/vsync_low_latency.sh b/vsync_low_latency.sh index 23e40e3..4ff93ae 100644 --- a/vsync_low_latency.sh +++ b/vsync_low_latency.sh @@ -18,23 +18,11 @@ # You can download the latest version of this script from: # https://github.com/MiSTer-devel/Scripts_MiSTer +# Version 2.0 - 2019-01-14 - Using change_ini_property.sh.inc # Version 1.1.1 - 2019-01-09 - Fixed regular expression for not matching commented parameters. # Version 1.1 - 2019-01-08 - MiSTer.ini downloaded from GitHub if missing. # Version 1.0 - 2019-01-07 - First commit. -if [ ! -f "/media/fat/config/MiSTer.ini" ] -then - echo "Downloading MiSTer.ini" - if ! curl -kL "https://github.com/MiSTer-devel/Main_MiSTer/blob/master/MiSTer.ini?raw=true" -o "/media/fat/config/MiSTer.ini" - then - echo "Unable to download" - echo "MiSTer.ini" - exit 1 - fi -fi -cp /media/fat/config/MiSTer.ini /media/fat/config/MiSTer.ini.bak -VSYNC_VALUE=2 -sed -i "1,/^\s*vsync_adjust=[0-9]*/{s/^\s*vsync_adjust=[0-9]*/vsync_adjust=$VSYNC_VALUE/}" /media/fat/config/MiSTer.ini -echo "vsync_adjust=$VSYNC_VALUE" -reboot now -exit 0 \ No newline at end of file +PROPERTY_NAME="vsync_adjust" +PROPERTY_VALUE="2" +source "$(dirname $(readlink -f $0))/change_ini_property.sh.inc" \ No newline at end of file diff --git a/vsync_match_core.sh b/vsync_match_core.sh index 0ab15ff..00c28a6 100644 --- a/vsync_match_core.sh +++ b/vsync_match_core.sh @@ -18,23 +18,11 @@ # You can download the latest version of this script from: # https://github.com/MiSTer-devel/Scripts_MiSTer +# Version 2.0 - 2019-01-14 - Using change_ini_property.sh.inc # Version 1.1.1 - 2019-01-09 - Fixed regular expression for not matching commented parameters. # Version 1.1 - 2019-01-08 - MiSTer.ini downloaded from GitHub if missing. # Version 1.0 - 2019-01-07 - First commit. -if [ ! -f "/media/fat/config/MiSTer.ini" ] -then - echo "Downloading MiSTer.ini" - if ! curl -kL "https://github.com/MiSTer-devel/Main_MiSTer/blob/master/MiSTer.ini?raw=true" -o "/media/fat/config/MiSTer.ini" - then - echo "Unable to download" - echo "MiSTer.ini" - exit 1 - fi -fi -cp /media/fat/config/MiSTer.ini /media/fat/config/MiSTer.ini.bak -VSYNC_VALUE=1 -sed -i "1,/^\s*vsync_adjust=[0-9]*/{s/^\s*vsync_adjust=[0-9]*/vsync_adjust=$VSYNC_VALUE/}" /media/fat/config/MiSTer.ini -echo "vsync_adjust=$VSYNC_VALUE" -reboot now -exit 0 \ No newline at end of file +PROPERTY_NAME="vsync_adjust" +PROPERTY_VALUE="1" +source "$(dirname $(readlink -f $0))/change_ini_property.sh.inc" \ No newline at end of file diff --git a/vsync_match_display.sh b/vsync_match_display.sh index fb2170b..bddf277 100644 --- a/vsync_match_display.sh +++ b/vsync_match_display.sh @@ -18,23 +18,11 @@ # You can download the latest version of this script from: # https://github.com/MiSTer-devel/Scripts_MiSTer +# Version 2.0 - 2019-01-14 - Using change_ini_property.sh.inc # Version 1.1.1 - 2019-01-09 - Fixed regular expression for not matching commented parameters. # Version 1.1 - 2019-01-08 - MiSTer.ini downloaded from GitHub if missing. # Version 1.0 - 2019-01-07 - First commit. -if [ ! -f "/media/fat/config/MiSTer.ini" ] -then - echo "Downloading MiSTer.ini" - if ! curl -kL "https://github.com/MiSTer-devel/Main_MiSTer/blob/master/MiSTer.ini?raw=true" -o "/media/fat/config/MiSTer.ini" - then - echo "Unable to download" - echo "MiSTer.ini" - exit 1 - fi -fi -cp /media/fat/config/MiSTer.ini /media/fat/config/MiSTer.ini.bak -VSYNC_VALUE=0 -sed -i "1,/^\s*vsync_adjust=[0-9]*/{s/^\s*vsync_adjust=[0-9]*/vsync_adjust=$VSYNC_VALUE/}" /media/fat/config/MiSTer.ini -echo "vsync_adjust=$VSYNC_VALUE" -reboot now -exit 0 \ No newline at end of file +PROPERTY_NAME="vsync_adjust" +PROPERTY_VALUE="0" +source "$(dirname $(readlink -f $0))/change_ini_property.sh.inc" \ No newline at end of file