Skip to content

Commit

Permalink
* **V7.4.1**
Browse files Browse the repository at this point in the history
* Fix BlueStacks reboot loop due to DPI=160 not correctly set in registry
  • Loading branch information
cosote committed Jan 28, 2018
1 parent 00bc060 commit b5b56e0
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
* **V7.4.1**
* Fix BlueStacks reboot loop due to DPI=160 not correctly set in registry

* **V7.4**
* Add Switch Accounts feature
* Add BlueStacks N support, still using Android Emulator Key BlueStacks2 (https://www.bluestacks.com/download-android-n.html)
Expand Down
2 changes: 1 addition & 1 deletion COCBot/functions/Android/AndroidBlueStacks.au3
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ Func SetScreenBlueStacks()
$REGISTRY_KEY_DIRECTORY = $g_sHKLM & "\SOFTWARE\BlueStacks\Guests\" & $g_sAndroidInstance
Local $BootParameter = RegRead($REGISTRY_KEY_DIRECTORY, "BootParameters")
$BootParameter = StringRegExpReplace($BootParameter, "DPI=\d+", "DPI=160")
If @error = 0 Then
If @error = 0 And @extended > 0 Then
RegWrite($REGISTRY_KEY_DIRECTORY, "BootParameters", "REG_SZ", $BootParameter)
Else
; DPI=160 was missing
Expand Down
Binary file modified MyBot.run.MiniGui.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion MyBot.run.MiniGui_stripped.au3
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#pragma compile(LegalCopyright, © https://mybot.run)
#Au3Stripper_Off
#Au3Stripper_On
Global $g_sBotVersion = "v7.4"
Global $g_sBotVersion = "v7.4.1"
Opt("MustDeclareVars", 1)
Global $g_sBotTitle = ""
Global $g_hFrmBot = 0
Expand Down
Binary file modified MyBot.run.Watchdog.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion MyBot.run.Watchdog_stripped.au3
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#pragma compile(LegalCopyright, © https://mybot.run)
#Au3Stripper_Off
#Au3Stripper_On
Global $g_sBotVersion = "v7.4"
Global $g_sBotVersion = "v7.4.1"
Opt("MustDeclareVars", 1)
Global Const $WAIT_TIMEOUT = 258
Global Const $STDERR_MERGED = 8
Expand Down
Binary file modified MyBot.run.Wmi.exe
Binary file not shown.
Binary file modified MyBot.run.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion MyBot.run.version.au3
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
#pragma compile(LegalCopyright, © https://mybot.run)
#Au3Stripper_On

Global $g_sBotVersion = "v7.4" ;~ Don't add more here, but below. Version can't be longer than vX.y.z because it is also use on Checkversion()
Global $g_sBotVersion = "v7.4.1" ;~ Don't add more here, but below. Version can't be longer than vX.y.z because it is also use on Checkversion()
4 changes: 2 additions & 2 deletions MyBot.run_stripped.au3
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#pragma compile(LegalCopyright, © https://mybot.run)
#Au3Stripper_Off
#Au3Stripper_On
Global $g_sBotVersion = "v7.4"
Global $g_sBotVersion = "v7.4.1"
Opt("MustDeclareVars", 1)
Global $g_sBotTitle = ""
Global $g_hFrmBot = 0
Expand Down Expand Up @@ -43535,7 +43535,7 @@ RegWrite($REGISTRY_KEY_DIRECTORY, "WindowWidth", "REG_DWORD", $g_iAndroidClientW
$REGISTRY_KEY_DIRECTORY = $g_sHKLM & "\SOFTWARE\BlueStacks\Guests\" & $g_sAndroidInstance
Local $BootParameter = RegRead($REGISTRY_KEY_DIRECTORY, "BootParameters")
$BootParameter = StringRegExpReplace($BootParameter, "DPI=\d+", "DPI=160")
If @error = 0 Then
If @error = 0 And @extended > 0 Then
RegWrite($REGISTRY_KEY_DIRECTORY, "BootParameters", "REG_SZ", $BootParameter)
Else
RegWrite($REGISTRY_KEY_DIRECTORY, "BootParameters", "REG_SZ", $BootParameter & " DPI=160")
Expand Down

0 comments on commit b5b56e0

Please sign in to comment.