Skip to content

Commit

Permalink
2.0.0.4
Browse files Browse the repository at this point in the history
*Corrected :
- Alternative picture doesn't work all the time, now work every time.
- Name in missing.tx aren't troncated any more when too longue...
- Resluts windows now show correct number for "found" roms.
* Added :
- Message to kill ES when network path are detected
- New Menu to configure SSH Parameter
- adding a new tag for Path config : %host% = first part of the
Source_RootPath (ex : \\Retropie\rom will give \\Retropie and E:\rom
will give E:\)
- Retropie path corrected (Again... Sorry)
  • Loading branch information
Universal-Rom-Tools committed Nov 27, 2016
1 parent a0e4031 commit 705baf1
Show file tree
Hide file tree
Showing 15 changed files with 131 additions and 30 deletions.
1 change: 0 additions & 1 deletion Include/_MyFunction.au3
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ Func _URIEncode($sData)
Local $nChar
$sData=""
For $i = 1 To $aData[0]
ConsoleWrite($aData[$i] & @CRLF)
$nChar = Asc($aData[$i])
Switch $nChar
Case 45, 46, 48-57, 65 To 90, 95, 97 To 122, 126
Expand Down
1 change: 1 addition & 0 deletions LanguageFiles/UXS-ENGLISH.XML
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
<mnu_scrape_fullscrape>Scrape all your system</mnu_scrape_fullscrape>

<mnu_ssh>SSH Command</mnu_ssh>
<mnu_ssh_Parameter>SSH Parameter</mnu_ssh_Parameter>
<mnu_ssh_killall>Stop Emulationstation</mnu_ssh_killall>
<mnu_ssh_start>Start Emulationstation</mnu_ssh_start>
<mnu_ssh_reboot>Reboot Distant</mnu_ssh_reboot>
Expand Down
1 change: 1 addition & 0 deletions LanguageFiles/UXS-FRENCH.XML
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
<mnu_scrape_fullscrape>Scraper tous les systèmes</mnu_scrape_fullscrape>

<mnu_ssh>Commande SSH</mnu_ssh>
<mnu_ssh_Parameter>Paramètres SSH</mnu_ssh_Parameter>
<mnu_ssh_killall>Arrêter Emulationstation</mnu_ssh_killall>
<mnu_ssh_start>Démarrer Emulationstation</mnu_ssh_start>
<mnu_ssh_reboot>Redémarrer Distant</mnu_ssh_reboot>
Expand Down
1 change: 1 addition & 0 deletions LanguageFiles/UXS-GERMAN.XML
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
<mnu_scrape_fullscrape>Scrape alle Systeme</mnu_scrape_fullscrape>

<mnu_ssh>SSH Befehle</mnu_ssh>
<mnu_ssh_Parameter>SSH-Parameter</mnu_ssh_Parameter>
<mnu_ssh_killall>Emulationstation beenden</mnu_ssh_killall>
<mnu_ssh_start>Emulationstation starten</mnu_ssh_start>
<mnu_ssh_reboot>System neustarten</mnu_ssh_reboot>
Expand Down
1 change: 1 addition & 0 deletions LanguageFiles/UXS-PORTUGUESE.XML
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
<mnu_scrape_fullscrape>Scrape all your system</mnu_scrape_fullscrape>

<mnu_ssh>SSH Command</mnu_ssh>
<mnu_ssh_Parameter>SSH Parameter</mnu_ssh_Parameter>
<mnu_ssh_killall>Stop Emulationstation</mnu_ssh_killall>
<mnu_ssh_start>Start Emulationstation</mnu_ssh_start>
<mnu_ssh_reboot>Reboot Distant</mnu_ssh_reboot>
Expand Down
1 change: 1 addition & 0 deletions LanguageFiles/UXS-SPANISH.XML
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
<mnu_scrape_fullscrape>Scrapear todos los sistemas</mnu_scrape_fullscrape>

<mnu_ssh>Comandos SSH</mnu_ssh>
<mnu_ssh_Parameter>parámetro SSH</mnu_ssh_Parameter>
<mnu_ssh_killall>Detener EmulationStation</mnu_ssh_killall>
<mnu_ssh_start>Iniciar EmulationStation</mnu_ssh_start>
<mnu_ssh_reboot>Reinicio Remoto</mnu_ssh_reboot>
Expand Down
4 changes: 2 additions & 2 deletions ProfilsFiles/Retropie (MIX).xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
</General>
<AutoConf>
<Source_RootPath>\\retropie\roms</Source_RootPath>
<Target_XMLName>%Source_RootPath%\..\configs\all\emulationstation\gamelists\%System%\gamelist.xml</Target_XMLName>
<Target_XMLName>%host%\configs\all\emulationstation\gamelists\%System%\gamelist.xml</Target_XMLName>
<Target_RomPath>/home/pi/RetroPie/roms/%system%/</Target_RomPath>
<Source_ImagePath>%Source_RootPath%\..\configs\all\emulationstation\downloaded_images\%System%</Source_ImagePath>
<Source_ImagePath>%host%\configs\all\emulationstation\downloaded_images\%System%</Source_ImagePath>
<Target_ImagePath>/home/pi/.emulationstation/downloaded_images/%system%/</Target_ImagePath>
</AutoConf>
<Plink>
Expand Down
4 changes: 2 additions & 2 deletions ProfilsFiles/Retropie.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
</General>
<AutoConf>
<Source_RootPath>\\retropie\roms</Source_RootPath>
<Target_XMLName>%Source_RootPath%\..\configs\all\emulationstation\gamelists\%System%\gamelist.xml</Target_XMLName>
<Target_XMLName>%host%\configs\all\emulationstation\gamelists\%System%\gamelist.xml</Target_XMLName>
<Target_RomPath>/home/pi/RetroPie/roms/%system%/</Target_RomPath>
<Source_ImagePath>%Source_RootPath%\..\configs\all\emulationstation\downloaded_images\%System%</Source_ImagePath>
<Source_ImagePath>%host%\configs\all\emulationstation\downloaded_images\%System%</Source_ImagePath>
<Target_ImagePath>/home/pi/.emulationstation/downloaded_images/%system%/</Target_ImagePath>
</AutoConf>
<Plink>
Expand Down
8 changes: 5 additions & 3 deletions Scraper.au3
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#AutoIt3Wrapper_Compile_Both=y
#AutoIt3Wrapper_UseX64=y
#AutoIt3Wrapper_Res_Description=Scraper
#AutoIt3Wrapper_Res_Fileversion=1.0.0.1
#AutoIt3Wrapper_Res_Fileversion=1.0.0.2
#AutoIt3Wrapper_Res_Fileversion_AutoIncrement=p
#AutoIt3Wrapper_Res_LegalCopyright=LEGRAS David
#AutoIt3Wrapper_Res_Language=1036
Expand Down Expand Up @@ -246,8 +246,10 @@ Func _XML_Read_Source($aRomList, $vBoucle, $aConfig, $oXMLProfil, $vWhile)
Select
Case Number($vValue) = -2
Return -1
Case $vValue <> -1
Case _Coalesce($vValue, -1) <> -1
Return $vValue
Case Else
Return -1
EndSelect
Next
Return ""
Expand Down Expand Up @@ -361,7 +363,7 @@ Func _Picture_Download($vCountryPref, $aRomList, $vBoucle, $vWhile, $oXMLProfil,
EndIf

$vValue = _DownloadWRetry($vDownloadURL, $vDownloadPath)
If $vValue <> -1 And $vValue <> "" Then
If $vValue <> -1 And $vValue <> "" And FileExists($vDownloadPath) Then
Return $vTargetPicturePath
Else
Return -1
Expand Down
Binary file modified Scraper.exe
Binary file not shown.
Binary file modified Scraper64.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion UXS-config.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[GENERAL]
$verINI='2.0.0.3'
$verINI='2.0.0.4'
$vVerbose=2
[LAST_USE]
115 changes: 94 additions & 21 deletions Universal XML Scraper.au3
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=Ressources\Universal_Xml_Scraper.ico
#AutoIt3Wrapper_Outfile=..\BIN2\Universal_XML_Scraper.exe
#AutoIt3Wrapper_Outfile_x64=..\BIN2\Universal_XML_Scraper64.exe
#AutoIt3Wrapper_Outfile=..\BIN\Universal_XML_Scraper.exe
#AutoIt3Wrapper_Outfile_x64=..\BIN\Universal_XML_Scraper64.exe
#AutoIt3Wrapper_Compile_Both=y
#AutoIt3Wrapper_UseX64=y
#AutoIt3Wrapper_Res_Description=Scraper XML Universel
#AutoIt3Wrapper_Res_Fileversion=2.0.0.4
#AutoIt3Wrapper_Res_Fileversion=2.0.0.5
#AutoIt3Wrapper_Res_Fileversion_AutoIncrement=p
#AutoIt3Wrapper_Res_LegalCopyright=LEGRAS David
#AutoIt3Wrapper_Res_Language=1036
Expand Down Expand Up @@ -196,7 +196,7 @@ _LOG("Path to language : " & $iLangPath, 1, $iLOGPath)
Global $vUserLang = IniRead($iINIPath, "LAST_USE", "$vUserLang", -1)
Global $MP_, $aPlink_Command, $vScrapeCancelled
Global $vProfilsPath = IniRead($iINIPath, "LAST_USE", "$vProfilsPath", -1)
Local $vXpath2RomPath, $vFullTimer, $vRomTimer, $aPlink_Command, $vSelectedProfil = -1
Local $vXpath2RomPath, $vFullTimer, $vRomTimer, $vSelectedProfil = -1
Local $L_SCRAPE_Parts[3] = [300, 480, -1]
Local $oXMLProfil, $oXMLSystem
Local $aConfig, $aRomList, $aXMLRomList
Expand Down Expand Up @@ -275,6 +275,8 @@ Local $MS_Separation = GUICtrlCreateMenuItem("", $MS)
Local $MS_FullScrape = GUICtrlCreateMenuItem(_MultiLang_GetText("mnu_scrape_fullscrape"), $MS)

Local $MP = GUICtrlCreateMenu(_MultiLang_GetText("mnu_ssh"))
Local $MP_Parameter = GUICtrlCreateMenuItem(_MultiLang_GetText("mnu_ssh_Parameter"), $MP)
Local $MP_Separation = GUICtrlCreateMenuItem("", $MP)
GUICtrlSetState($MP, $GUI_DISABLE)

Local $MH = GUICtrlCreateMenu(_MultiLang_GetText("mnu_help"))
Expand Down Expand Up @@ -462,6 +464,25 @@ While 1
EndIf
$aDIRList = _Check_autoconf($oXMLProfil)
_GUI_Refresh($oXMLProfil)
Local $vSystem = StringSplit(IniRead($iINIPath, "LAST_USE", "$vSource_RomPath", ""), "\")
$vSystem = $vSystem[UBound($vSystem) - 1]

If $aDIRList <> -1 Then
For $vBoucle = 1 To UBound($MS_AutoConfigItem) - 1
If $aDIRList[$vBoucle][0] = $vSystem Then
_LOG("Checked system :" & $aDIRList[$vBoucle][0], 0, $iLOGPath)
IniWrite($iINIPath, "LAST_USE", "$vSource_RomPath", $aDIRList[$vBoucle][1])
IniWrite($iINIPath, "LAST_USE", "$vTarget_RomPath", $aDIRList[$vBoucle][2])
IniWrite($iINIPath, "LAST_USE", "$vTarget_XMLName", $aDIRList[$vBoucle][3])
IniWrite($iINIPath, "LAST_USE", "$vSource_ImagePath", $aDIRList[$vBoucle][4])
IniWrite($iINIPath, "LAST_USE", "$vTarget_ImagePath", $aDIRList[$vBoucle][5])
$nMsg = 0
_GUI_Refresh($oXMLProfil)
EndIf
Next
EndIf
Case $MP_Parameter
_GUI_Config_SSHParameter($oXMLProfil)
Case $MH_Help
ShellExecute("https://github.com/Universal-Rom-Tools/Universal-XML-Scraper/wiki")
Case $MH_Support_Screenscraper
Expand Down Expand Up @@ -1223,6 +1244,7 @@ Func _GUI_Config_autoconf($oXMLProfil)
Else
$vAutoconf_Use = 0
EndIf

IniWrite($iINIPath, "LAST_USE", "$vAutoconf_Use", $vAutoconf_Use)
_LOG("AutoConf Path Configuration Saved", 0, $iLOGPath)
_LOG("------------------------", 1, $iLOGPath)
Expand All @@ -1239,6 +1261,48 @@ Func _GUI_Config_autoconf($oXMLProfil)
WEnd
EndFunc ;==>_GUI_Config_autoconf

Func _GUI_Config_SSHParameter($oXMLProfil)
#Region ### START Koda GUI section ### Form=
$F_SSH = GUICreate("SSH", 234, 130, -1, -1, -1, BitOR($WS_EX_TOPMOST, $WS_EX_WINDOWEDGE))
$B_CONFENREG = GUICtrlCreateButton(_MultiLang_GetText("win_config_Enreg"), 8, 80, 105, 41)
$B_CONFANNUL = GUICtrlCreateButton(_MultiLang_GetText("win_config_Cancel"), 121, 80, 105, 41)
$L_Host = GUICtrlCreateLabel("Host", 16, 10)
$I_Host = GUICtrlCreateInput(_XML_Read('Profil/Plink/Ip', 0, "", $oXMLProfil), 96, 8, 129, 21)
$L_Login = GUICtrlCreateLabel("Login", 16, 34)
$I_Login = GUICtrlCreateInput(_XML_Read('Profil/Plink/Root', 0, "", $oXMLProfil), 96, 32, 129, 21)
$L_Pwd = GUICtrlCreateLabel("Password", 16, 58)
$I_Pwd = GUICtrlCreateInput(_XML_Read('Profil/Plink/Pswd', 0, "", $oXMLProfil), 96, 56, 129, 21)
GUISetState(@SW_SHOW)
GUISetState(@SW_DISABLE, $F_UniversalScraper)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE, $B_CONFANNUL
GUIDelete($F_SSH)
GUISetState(@SW_ENABLE, $F_UniversalScraper)
WinActivate($F_UniversalScraper)
_LOG("SSH Parameter Canceled", 0, $iLOGPath)
Return
Case $B_CONFENREG
_XML_Replace("Profil/Plink/Ip", GUICtrlRead($I_Host), 0, "", $oXMLProfil)
_XML_Replace("Profil/Plink/Root", GUICtrlRead($I_Login), 0, "", $oXMLProfil)
_XML_Replace("Profil/Plink/Pswd", GUICtrlRead($I_Pwd), 0, "", $oXMLProfil)

_LOG("SSH Parameter Saved", 0, $iLOGPath)
_LOG("------------------------", 1, $iLOGPath)
_LOG("Host = " & GUICtrlRead($I_Host), 1, $iLOGPath)
_LOG("Login = " & GUICtrlRead($I_Login), 1, $iLOGPath)
_LOG("Password = " & GUICtrlRead($I_Pwd), 1, $iLOGPath)
GUIDelete($F_SSH)
GUISetState(@SW_ENABLE, $F_UniversalScraper)
WinActivate($F_UniversalScraper)
Return
EndSwitch
WEnd
EndFunc ;==>_GUI_Config_SSHParameter

Func _GUI_Refresh($oXMLProfil = -1, $ScrapIP = 0, $vScrapeOK = 0) ;Refresh GUI
If $oXMLProfil <> -1 Then
If $ScrapIP = 0 Then
Expand Down Expand Up @@ -1455,20 +1519,13 @@ Func _Check_autoconf($oXMLProfil)
_ArrayColInsert($aDIRList, $vBoucle)
Next
For $vBoucle = 1 To UBound($aDIRList) - 1
;~ $aDIRList[$vBoucle][1] = $vSource_RootPath & "\" & $aDIRList[$vBoucle][0]
;~ $aDIRList[$vBoucle][2] = $vTarget_RomPath
;~ $aDIRList[$vBoucle][3] = $aDIRList[$vBoucle][1] & "\" & $vTarget_XMLName
;~ $aDIRList[$vBoucle][4] = $aDIRList[$vBoucle][1] & "\" & $vSource_ImagePath
;~ $aDIRList[$vBoucle][5] = $vTarget_ImagePath

$aDIRList[$vBoucle][1] = $vSource_RootPath & "\" & $aDIRList[$vBoucle][0]
$aDIRList[$vBoucle][2] = StringReplace(StringReplace(StringReplace($vTarget_RomPath, "%SystemDir%", $aDIRList[$vBoucle][1]), "%System%", $aDIRList[$vBoucle][0]), "%Source_RootPath%", $vSource_RootPath)
$aDIRList[$vBoucle][3] = StringReplace(StringReplace(StringReplace($vTarget_XMLName, "%SystemDir%", $aDIRList[$vBoucle][1]), "%System%", $aDIRList[$vBoucle][0]), "%Source_RootPath%", $vSource_RootPath)
$aDIRList[$vBoucle][4] = StringReplace(StringReplace(StringReplace($vSource_ImagePath, "%SystemDir%", $aDIRList[$vBoucle][1]), "%System%", $aDIRList[$vBoucle][0]), "%Source_RootPath%", $vSource_RootPath)
$aDIRList[$vBoucle][5] = StringReplace(StringReplace(StringReplace($vTarget_ImagePath, "%SystemDir%", $aDIRList[$vBoucle][1]), "%System%", $aDIRList[$vBoucle][0]), "%Source_RootPath%", $vSource_RootPath)
$aDIRList[$vBoucle][2] = _ReplacePath($vTarget_RomPath, $aDIRList, $vBoucle, $vSource_RootPath)
$aDIRList[$vBoucle][3] = _ReplacePath($vTarget_XMLName, $aDIRList, $vBoucle, $vSource_RootPath)
$aDIRList[$vBoucle][4] = _ReplacePath($vSource_ImagePath, $aDIRList, $vBoucle, $vSource_RootPath)
$aDIRList[$vBoucle][5] = _ReplacePath($vTarget_ImagePath, $aDIRList, $vBoucle, $vSource_RootPath)
DirCreate($aDIRList[$vBoucle][4])
If Not FileExists($aDIRList[$vBoucle][3]) Then _FileCreate($aDIRList[$vBoucle][3])

$MS_AutoConfigItem[$vBoucle] = GUICtrlCreateMenuItem($aDIRList[$vBoucle][0], $MS_AutoConfig)
Next
;~ _ArrayDisplay($aDIRList, "$aDIRList")
Expand All @@ -1488,6 +1545,18 @@ Func _Check_autoconf($oXMLProfil)
EndIf
EndFunc ;==>_Check_autoconf

Func _ReplacePath($vPath, $aDIRList, $vBoucle, $vSource_RootPath)
Local $sDrive, $sDir, $sFileName, $sExtension
Local $aPathSplit = _PathSplit($aDIRList[$vBoucle][1], $sDrive, $sDir, $sFileName, $sExtension)
Local $vPathOld = $vPath
$vPath = StringReplace($vPath, "%host%", $sDrive)
$vPath = StringReplace($vPath, "%SystemDir%", $aDIRList[$vBoucle][1])
$vPath = StringReplace($vPath, "%System%", $aDIRList[$vBoucle][0])
$vPath = StringReplace($vPath, "%Source_RootPath%", $vSource_RootPath)
_LOG("ReplacePath : " & $vPathOld & " In : " & $vPath, 1, $iLOGPath)
Return $vPath
EndFunc ;==>_ReplacePath

Func _Check_Cancel()
If GUIGetMsg() = $B_SCRAPE Or $vScrapeCancelled = 1 Then
_LOG("Scrape Cancelled", 0, $iLOGPath)
Expand Down Expand Up @@ -1698,8 +1767,8 @@ Func _Results($aRomList, $vNbThread, $vFullTimer, $vFullScrape = 0)
Local $vTitle
For $vBoucle = 1 To UBound($aRomList) - 1
$vTimeMoy += $aRomList[$vBoucle][10]
If $aRomList[$vBoucle][12] = 1 Then $vNbRomOK += 1
If $aRomList[$vBoucle][11] = 1 Then $vNbRomScraped += 1
If $aRomList[$vBoucle][9] = 1 Then $vNbRomOK += 1
If $aRomList[$vBoucle][12] = 1 Then $vNbRomScraped += 1
Next
If $vNbRomScraped > 0 Then
$vTimeMoy = Round($vTimeMoy / $vNbRomScraped, 2) & " sec."
Expand All @@ -1713,7 +1782,7 @@ Func _Results($aRomList, $vNbThread, $vFullTimer, $vFullScrape = 0)
Else
$vNbRomOKRatio = 'N/A'
EndIf
$vNbRom = UBound($aRomList) - 1
If IsArray($aRomList) Then $vNbRom = UBound($aRomList) - 1

_LOG("Results", 0, $iLOGPath)
_LOG("Roms : = " & $vNbRom, 0, $iLOGPath)
Expand Down Expand Up @@ -1862,6 +1931,7 @@ Func _SCRAPE($oXMLProfil, $vNbThread = 1, $vFullScrape = 0)

If $aConfig <> 0 Then
_GUI_Refresh($oXMLProfil, 1)

Local $vScrapeCancelled = 0
Local $aConfig = _LoadConfig($oXMLProfil)
Local $aExtToHide = StringSplit(_XML_Read('/Profil/Element[Source_Value="%AutoHide%"]/AutoHideEXT', 0, "", $oXMLProfil), "|")
Expand All @@ -1871,6 +1941,8 @@ Func _SCRAPE($oXMLProfil, $vNbThread = 1, $vFullScrape = 0)
Local $vThreadUsed = 1
$aConfig[8] = "0000"

If StringLeft($aConfig[0], 2) = "\\" Then _Plink($oXMLProfil, "killall")

$vTEMPPathSSCheck = _DownloadWRetry($iURLScraper & "api/ssuserInfos.php?devid=xxx&devpassword=yyy&softname=zzz&output=XML&ssid=" & $aConfig[13] & "&sspassword=" & $aConfig[14], $iScriptPath & "\Ressources\SSCheck.xml")
$vSSParticipation = Number(_XML_Read("/Data/ssuser/uploadsysteme", 0, $vTEMPPathSSCheck)) + Number(_XML_Read("/Data/ssuser/uploadinfos", 0, $vTEMPPathSSCheck)) + Number(_XML_Read("/Data/ssuser/romasso", 0, $vTEMPPathSSCheck)) + Number(_XML_Read("/Data/ssuser/uploadmedia", 0, $vTEMPPathSSCheck))
$vSSContrib = Number(_XML_Read("/Data/ssuser/contribution", 0, $vTEMPPathSSCheck))
Expand Down Expand Up @@ -1943,7 +2015,6 @@ Func _SCRAPE($oXMLProfil, $vNbThread = 1, $vFullScrape = 0)
If $vEngineLaunched >= $vNbThread Then ExitLoop
EndIf
If Not _Check_Cancel() Then Return $aRomList
ConsoleWrite((TimerDiff($vEngineTimer) / 1000) & @CRLF)
If (TimerDiff($vEngineTimer) / 1000) > 5 Then
_LOG("Scrape Engine seems to not launch, check Antivirus and firewall", 2, $iLOGPath)
MsgBox($MB_ICONERROR, _MultiLang_GetText("err_title"), _MultiLang_GetText("err_UXSGlobal") & @CRLF & _MultiLang_GetText("err_ScrapeEngine"))
Expand Down Expand Up @@ -2048,7 +2119,7 @@ Func _SCRAPE($oXMLProfil, $vNbThread = 1, $vFullScrape = 0)
Dim $aXMLSource
_GUICtrlStatusBar_SetText($L_SCRAPE, $aRomList[$aMessageFromChild[0]][2])
_GUICtrlStatusBar_SetText($L_SCRAPE, "Creating : " & _FormatElapsedTime($vCreateTimerLeft), 1)
_GUICtrlStatusBar_SetText($L_SCRAPE, @TAB & @TAB & $iNumberOfMessagesOverall & "/" & ($vTotalRomToScrap) - 1, 2)
_GUICtrlStatusBar_SetText($L_SCRAPE, @TAB & @TAB & $iNumberOfMessagesOverall & "/" & ($vTotalRomToScrap), 2)
_FileReadToArray($iTEMPPath & "\scraped\" & $aMessageFromChild[0] & ".xml", $aXMLSource)
For $vBoucle = 1 To UBound($aXMLSource) - 1
_ArrayAdd($aXMLTarget, $aXMLSource[$vBoucle])
Expand Down Expand Up @@ -2097,13 +2168,15 @@ Func _SCRAPE($oXMLProfil, $vNbThread = 1, $vFullScrape = 0)
EndFunc ;==>_SCRAPE

Func _CreateMissing($aRomList, $aConfig)
Local $vMaxNameLen = 68
$vSysName = _XML_Read('/Data/systeme[id=' & $aConfig[12] & ']/noms/nom_eu', 0, $iScriptPath & "\Ressources\systemlist.xml")
;~ _ArrayDisplay($aConfig, "$aConfig")
If Not _FileCreate($aConfig[1] & '\_' & $vSysName & "_missing.txt") Then MsgBox(4096, "Error", " Erreur creation du Fichier missing error:" & @error)
For $vBoucle = 1 To UBound($aRomList) - 1
If $aRomList[$vBoucle][9] = 0 Then
$tCur = _Date_Time_GetLocalTime()
$vMissing_Line1 = StringLeft($aRomList[$vBoucle][0] & " ", 68)
If StringLen($aRomList[$vBoucle][0]) > 68 Then $vMaxNameLen = StringLen($aRomList[$vBoucle][0]) + 1
$vMissing_Line1 = StringLeft($aRomList[$vBoucle][0] & " ", $vMaxNameLen)
$vMissing_Line2 = $aRomList[$vBoucle][5]
$vMissing_Line3 = StringRight(" " & StringRegExpReplace($aRomList[$vBoucle][4], '\G(\d+?)(?=(\d{3})+(\D|$))', '$1 '), 17) & " "
$hFile = _WinAPI_CreateFile($aRomList[$vBoucle][1], 2)
Expand Down
11 changes: 11 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
2.0.0.4
*Corrected :
- Alternative picture doesn't work all the time, now work every time.
- Name in missing.tx aren't troncated any more when too longue...
- Resluts windows now show correct number for "found" roms.
* Added :
- Message to kill ES when network path are detected
- New Menu to configure SSH Parameter
- adding a new tag for Path config : %host% = first part of the Source_RootPath (ex : \\Retropie\rom will give \\Retropie and E:\rom will give E:\)
- Retropie path corrected (Again... Sorry)

2.0.0.3
*Corrected :
- Fallback when Digimirror don't work
Expand Down
11 changes: 11 additions & 0 deletions changelog_next.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
2.0.0.4
*Corrected :
- Alternative picture doesn't work all the time, now work every time.
- Name in missing.tx aren't troncated any more when too longue...
- Resluts windows now show correct number for "found" roms.
* Added :
- Message to kill ES when network path are detected
- New Menu to configure SSH Parameter
- adding a new tag for Path config : %host% = first part of the Source_RootPath (ex : \\Retropie\rom will give \\Retropie and E:\rom will give E:\)
- Retropie path corrected (Again... Sorry)

2.0.0.3
*Corrected :
- Fallback when Digimirror don't work
Expand Down

0 comments on commit 705baf1

Please sign in to comment.