Skip to content

Commit

Permalink
Merge pull request #13 from igromanru/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
igromanru committed Apr 19, 2017
2 parents c1f84c0 + 4a5c11e commit 109bd3f
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
43 changes: 43 additions & 0 deletions AutoUpdater/DS3_Table_AutoUpdater.au3
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=igromanru.ico
#AutoIt3Wrapper_UseUpx=y
#AutoIt3Wrapper_Res_Description=Dark Souls 3 Table AutoUpdater ds3.igromanru.guide
#AutoIt3Wrapper_Res_Fileversion=1.0.0.0
#AutoIt3Wrapper_Res_Field=HomePage|1.0.0.0
#AutoIt3Wrapper_Res_Field=FileVersion|http://ds3.igromanru.guide/
#AutoIt3Wrapper_Res_Field=ProductName|Dark Souls 3 Table AutoUpdater by Igromanru
#AutoIt3Wrapper_Res_LegalCopyright=Copyright © 2017 Igromanru
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.14.2
Author: Igromanru
Script Function:
Download the latest Dark Souls 3 table from the http://ds3.igromanru.guide/
#ce ----------------------------------------------------------------------------

#include <MsgBoxConstants.au3>
#include <InetConstants.au3>
#include <FileConstants.au3>


Global Const $TITLE = "Dark Souls 3 Table AutoUpdater by Igromanru"

Global Const $URL_RAW_TABLE = "https://bitbucket.org/igromanru/dark-souls-iii-tables/raw/master/DS3_Science-Souls.CT"
Global Const $TABLE_NAME = "DS3_Science-Souls.CT"
Global Const $DOWNLOAD_PATH = @TempDir & "\" & $TABLE_NAME
Global Const $TABLE_PATH = @ScriptDir & "\" & $TABLE_NAME


If InetGet($URL_RAW_TABLE, $DOWNLOAD_PATH, $INET_FORCERELOAD) > 0 Then
If FileMove($DOWNLOAD_PATH, $TABLE_PATH, $FC_OVERWRITE) Then
Run(@comspec & ' /c start ' & $TABLE_PATH)
MsgBox($MB_OK, $TITLE, "The table is up to date now! " & @CRLF & @CRLF & "Have fun!", 4)
Else
MsgBox($MB_ICONINFORMATION, $TITLE, "The table couldn't be replaced with the new one!" & @CRLF & "Make sure that the current table is not open by something" )
EndIf
Else
MsgBox($MB_ICONERROR, $TITLE, "The table couldn't be downloaded!" )
EndIf
Binary file added AutoUpdater/igromanru.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,5 +185,5 @@ Phokz | [/u/skzRuneStorm](https://www.reddit.com/r/opensouls3/comments/61e8jj/ri

## Donate

If you like my guide, you can spend me a coffee. :blush:
If you like my guide, you can spend me a coffee. :)
[![paypal](https://www.paypalobjects.com/en_GB/i/btn/btn_donate_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2XN6ZFLS4HANU)

0 comments on commit 109bd3f

Please sign in to comment.