Skip to content

Commit

Permalink
2.1.0.3
Browse files Browse the repository at this point in the history
* Corrected :
- Filename check is with extension now...
- Neo-Geo scrape now return correct info.
* Added :
- Some security on Target XML file selection.
  • Loading branch information
Eretzvaju committed Jan 11, 2017
1 parent c5fb6eb commit a070199
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 15 deletions.
2 changes: 1 addition & 1 deletion LanguageFiles/UXS-PORTUGUESE.XML
Expand Up @@ -2,7 +2,7 @@

<datapref>
<langpref>pt|en</langpref>
<countrypref>%COUNTRY%|eu|us|jp|wor|ss</countrypref>
<countrypref>%COUNTRY%|br|eu|us|jp|wor|ss</countrypref>
</datapref>

<error>
Expand Down
4 changes: 1 addition & 3 deletions LanguageFiles/UXS-SPANISH.XML
@@ -1,8 +1,6 @@
</NEED_TO_BE_TRANSLATED>

<datapref>
<langpref>es|en</langpref>
<countrypref>%COUNTRY%|eu|us|jp|wor|ss</countrypref>
<countrypref>%COUNTRY%|sp|eu|us|jp|wor|ss</countrypref>
</datapref>

<error>
Expand Down
24 changes: 24 additions & 0 deletions Ressources/Countrylist.xml
Expand Up @@ -8,13 +8,15 @@
<nom_fr>Allemagne</nom_fr>
<nom_de>Deutschland</nom_de>
<nom_en>Germany</nom_en>
<nom_es>Alemania</nom_es>
<nom_pt>Alemanha</nom_pt>
<parent>48</parent>
</region>
<region>
<id>3257</id>
<nomcourt>ame</nomcourt>
<nom_fr>Amérique</nom_fr>
<nom_es>América</nom_es>
<parent>0</parent>
</region>
<region>
Expand All @@ -23,6 +25,7 @@
<nom_fr>Asie</nom_fr>
<nom_de>Asien</nom_de>
<nom_en>Asia</nom_en>
<nom_es>Asia</nom_es>
<nom_pt>Ásia</nom_pt>
<parent>0</parent>
</region>
Expand All @@ -32,6 +35,7 @@
<nom_fr>Australie</nom_fr>
<nom_de>Australien</nom_de>
<nom_en>Australia</nom_en>
<nom_es>Australia</nom_es>
<nom_pt>Austrália</nom_pt>
<parent>0</parent>
</region>
Expand All @@ -41,6 +45,7 @@
<nom_fr>Brésil</nom_fr>
<nom_de>Brasilien</nom_de>
<nom_en>Brazil</nom_en>
<nom_es>Basil</nom_es>
<nom_pt>Brasil</nom_pt>
<parent>3257</parent>
</region>
Expand All @@ -50,6 +55,7 @@
<nom_fr>Canada</nom_fr>
<nom_de>Kanada</nom_de>
<nom_en>Canada</nom_en>
<nom_es>Canadá</nom_es>
<nom_pt>Canadá</nom_pt>
<parent>3257</parent>
</region>
Expand All @@ -59,6 +65,7 @@
<nom_fr>Chine</nom_fr>
<nom_de>China</nom_de>
<nom_en>China</nom_en>
<nom_es>China</nom_es>
<nom_pt>China</nom_pt>
<parent>114</parent>
</region>
Expand All @@ -68,13 +75,15 @@
<nom_fr>Corée</nom_fr>
<nom_de>Korea</nom_de>
<nom_en>Korea</nom_en>
<nom_es>Corea</nom_es>
<nom_pt>Coreia</nom_pt>
<parent>114</parent>
</region>
<region>
<id>3603</id>
<nomcourt>cus</nomcourt>
<nom_fr>Custom</nom_fr>
<nom_es>Custom</nom_es>
<parent>0</parent>
</region>
<region>
Expand All @@ -83,6 +92,7 @@
<nom_fr>Danemark</nom_fr>
<nom_de>Dänemark</nom_de>
<nom_en>Denmark</nom_en>
<nom_es>Dinamarca</nom_es>
<nom_pt>Dinamarca</nom_pt>
<parent>48</parent>
</region>
Expand All @@ -92,6 +102,7 @@
<nom_fr>Espagne</nom_fr>
<nom_de>Spanien</nom_de>
<nom_en>Spain</nom_en>
<nom_es>España</nom_es>
<nom_pt>Espanha</nom_pt>
<parent>48</parent>
</region>
Expand All @@ -101,6 +112,7 @@
<nom_fr>Europe</nom_fr>
<nom_de>Europa</nom_de>
<nom_en>Europe</nom_en>
<nom_es>Europa</nom_es>
<nom_pt>Europa</nom_pt>
<parent>0</parent>
</region>
Expand All @@ -110,6 +122,7 @@
<nom_fr>Finlande</nom_fr>
<nom_de>Finnland</nom_de>
<nom_en>Finland</nom_en>
<nom_es>Finlandia</nom_es>
<nom_pt>Finlândia</nom_pt>
<parent>48</parent>
</region>
Expand All @@ -119,6 +132,7 @@
<nom_fr>France</nom_fr>
<nom_de>Frankreich</nom_de>
<nom_en>France</nom_en>
<nom_es>Francia</nom_es>
<nom_pt>França</nom_pt>
<parent>48</parent>
</region>
Expand All @@ -128,6 +142,7 @@
<nom_fr>Italie</nom_fr>
<nom_de>Italien</nom_de>
<nom_en>Italy</nom_en>
<nom_es>Italia</nom_es>
<nom_pt>Itália</nom_pt>
<parent>48</parent>
</region>
Expand All @@ -137,6 +152,7 @@
<nom_fr>Japon</nom_fr>
<nom_de>Japan</nom_de>
<nom_en>Japan</nom_en>
<nom_es>Japón</nom_es>
<nom_pt>Japão</nom_pt>
<parent>114</parent>
</region>
Expand All @@ -146,6 +162,7 @@
<nom_fr>Monde</nom_fr>
<nom_de>World</nom_de>
<nom_en>World</nom_en>
<nom_es>World</nom_es>
<nom_pt>Mundo</nom_pt>
<parent>0</parent>
</region>
Expand All @@ -155,6 +172,7 @@
<nom_fr>Pays-Bas</nom_fr>
<nom_de>Niederlande</nom_de>
<nom_en>Netherlands</nom_en>
<nom_es>Holanda</nom_es>
<nom_pt>Holanda</nom_pt>
<parent>48</parent>
</region>
Expand All @@ -163,13 +181,15 @@
<nomcourt>pl</nomcourt>
<nom_fr>Pologne</nom_fr>
<nom_en>Poland</nom_en>
<nom_es>Polonia</nom_es>
<parent>48</parent>
</region>
<region>
<id>3289</id>
<nomcourt>uk</nomcourt>
<nom_fr>Royaume-Uni</nom_fr>
<nom_en>United Kingdom</nom_en>
<nom_es>Reino Unido</nom_es>
<parent>48</parent>
</region>
<region>
Expand All @@ -178,6 +198,7 @@
<nom_fr>Russie</nom_fr>
<nom_de>Russland</nom_de>
<nom_en>Russia</nom_en>
<nom_es>Rusia</nom_es>
<nom_pt>Rússia</nom_pt>
<parent>0</parent>
</region>
Expand All @@ -187,6 +208,7 @@
<nom_fr>Suede</nom_fr>
<nom_de>Schweden</nom_de>
<nom_en>Sweden</nom_en>
<nom_es>Suecia</nom_es>
<nom_pt>Suécia</nom_pt>
<parent>48</parent>
</region>
Expand All @@ -196,6 +218,7 @@
<nom_fr>Taiwan</nom_fr>
<nom_de>Taiwan</nom_de>
<nom_en>Taiwan</nom_en>
<nom_es>Taiwan</nom_es>
<nom_pt>Taiwan</nom_pt>
<parent>114</parent>
</region>
Expand All @@ -205,6 +228,7 @@
<nom_fr>USA</nom_fr>
<nom_de>USA</nom_de>
<nom_en>USA</nom_en>
<nom_es>USA</nom_es>
<nom_pt>EUA</nom_pt>
<parent>3257</parent>
</region>
Expand Down
16 changes: 8 additions & 8 deletions Ressources/systemlist.txt
@@ -1,5 +1,5 @@
Adventure Vision|Adventure Vision
Aes|Neo-Geo AES
Aes|Mame
Amiga|Amiga
Amstrad - CPC|CPC
Amstrad CPC|CPC
Expand Down Expand Up @@ -119,17 +119,17 @@ Microsoft - MSX2|MSX
Msx|MSX
Msx1|MSX
Msx2|MSX
Mvs|Neo-Geo MVS
Mvs|Mame
N64|Nintendo 64
NEC - PC Engine - TurboGrafx 16|PC Engine
NEC - PC Engine SuperGrafx|PC Engine SuperGrafx
NEC - Super Grafx|PC Engine SuperGrafx
Neogeo|Neo-Geo AES
Neo-Geo|Neo-Geo AES
NeoGeo AES|Neo-Geo AES
Neo-Geo AES|Neo-Geo AES
Neogeo MVS|Neo-Geo MVS
Neo-Geo MVS|Neo-Geo MVS
Neogeo|Mame
Neo-Geo|Mame
NeoGeo AES|Mame
Neo-Geo AES|Mame
Neogeo MVS|Mame
Neo-Geo MVS|Mame
Neo-Geo Pocket|Neo-Geo Pocket
Neo-Geo Pocket Color|Neo-Geo Pocket Color
Nes|NES
Expand Down
2 changes: 1 addition & 1 deletion UXS-config.ini
@@ -1,4 +1,4 @@
[GENERAL]
$verINI='2.1.0.2'
$verINI='2.1.0.3'
$vVerbose=2
[LAST_USE]
17 changes: 15 additions & 2 deletions Universal XML Scraper.au3
Expand Up @@ -5,7 +5,7 @@
#AutoIt3Wrapper_Compile_Both=y
#AutoIt3Wrapper_UseX64=y
#AutoIt3Wrapper_Res_Description=Scraper XML Universel
#AutoIt3Wrapper_Res_Fileversion=2.1.0.3
#AutoIt3Wrapper_Res_Fileversion=2.1.0.4
#AutoIt3Wrapper_Res_Fileversion_AutoIncrement=p
#AutoIt3Wrapper_Res_LegalCopyright=LEGRAS David
#AutoIt3Wrapper_Res_Language=1036
Expand Down Expand Up @@ -1341,6 +1341,11 @@ Func _GUI_Config_LU()
If (StringRight($vSource_RomPath, 1) = '\') Then StringTrimRight($vSource_RomPath, 1)
IniWrite($iINIPath, "LAST_USE", "$vSource_RomPath", $vSource_RomPath)
$vTarget_XMLName = GUICtrlRead($I_Target_XMLName) ;$vTarget_XMLName
If StringInStr(FileGetAttrib($vTarget_XMLName), "D") > 0 Then
MsgBox($MB_ICONERROR, _MultiLang_GetText("err_title"), "XMLName must be a file, not a folder", 0, $F_CONFIG)
_LOG("$vTarget_XMLName is a FOLDER = " & $vTarget_XMLName, 2, $iLOGPath)
ContinueCase
EndIf
IniWrite($iINIPath, "LAST_USE", "$vTarget_XMLName", $vTarget_XMLName)
$vTarget_RomPath = GUICtrlRead($I_Target_RomPath) ;$vTarget_RomPath
IniWrite($iINIPath, "LAST_USE", "$vTarget_RomPath", $vTarget_RomPath)
Expand Down Expand Up @@ -1413,6 +1418,11 @@ Func _GUI_Config_autoconf($oXMLProfil)
If (StringRight($vSource_RootPath, 1) = '\') Then StringTrimRight($vSource_RootPath, 1)
_XML_Replace("Profil/AutoConf/Source_RootPath", $vSource_RootPath, 0, "", $oXMLProfil)
$vTarget_XMLName = GUICtrlRead($I_Target_XMLName) ;$vTarget_XMLName
If StringInStr(FileGetAttrib($vTarget_XMLName), "D") > 0 Then
MsgBox($MB_ICONERROR, _MultiLang_GetText("err_title"), "XMLName must be a file, not a folder", 0, $F_CONFIG)
_LOG("$vTarget_XMLName is a FOLDER = " & $vTarget_XMLName, 2, $iLOGPath)
ContinueCase
EndIf
_XML_Replace("Profil/AutoConf/Target_XMLName", $vTarget_XMLName, 0, "", $oXMLProfil)
$vTarget_RomPath = GUICtrlRead($I_Target_RomPath) ;$vTarget_RomPath
_XML_Replace("Profil/AutoConf/Target_RomPath", $vTarget_RomPath, 0, "", $oXMLProfil)
Expand Down Expand Up @@ -1964,12 +1974,15 @@ Func _XMLCountry_Create($vSSLogin = "", $vSSPassword = "")
EndFunc ;==>_XMLCountry_Create

Func _DownloadROMXML($aRomList, $vBoucle, $vSystemID, $vSSLogin = "", $vSSPassword = "", $vScrapeSearchMode = 0)
Local $sDrive = "", $sDir = "", $sFileName = "", $sExtension = "", $aPathSplit
FileDelete($aRomList[$vBoucle][8])
If Not _Check_Cancel() Then Return $aRomList
Local $vXMLRom = $iTEMPPath & "\" & StringRegExpReplace($aRomList[$vBoucle][2], '[\[\]/\|\:\?"\*\\<>]', "") & ".xml"
$vRomName = _URIEncode($aRomList[$vBoucle][2])
$aPathSplit = _PathSplit($aRomList[$vBoucle][0], $sDrive, $sDir, $sFileName, $sExtension)
$vRomName = _URIEncode($sFileName & $sExtension)
If $vScrapeSearchMode = 0 Or $vScrapeSearchMode = 1 Then $aRomList[$vBoucle][8] = _DownloadWRetry($iURLScraper & "api/jeuInfos.php?devid=" & $iDevId & "&devpassword=" & $iDevPassword & "&softname=" & $iSoftname & "&output=xml&ssid=" & $vSSLogin & "&sspassword=" & $vSSPassword & "&crc=" & $aRomList[$vBoucle][5] & "&md5=" & $aRomList[$vBoucle][6] & "&sha1=" & $aRomList[$vBoucle][7] & "&systemeid=" & $vSystemID & "&romtype=rom&romnom=" & $vRomName & "&romtaille=" & $aRomList[$vBoucle][4], $vXMLRom)
If (StringInStr(FileReadLine($aRomList[$vBoucle][8]), "Erreur") Or Not FileExists($aRomList[$vBoucle][8])) Then
$vRomName = _URIEncode($sFileName)
If $vScrapeSearchMode = 0 Or $vScrapeSearchMode = 2 Then $aRomList[$vBoucle][8] = _DownloadWRetry($iURLScraper & "api/jeuInfos.php?devid=" & $iDevId & "&devpassword=" & $iDevPassword & "&softname=" & $iSoftname & "&output=xml&ssid=" & $vSSLogin & "&sspassword=" & $vSSPassword & "&crc=&md5=&sha1=&systemeid=" & $vSystemID & "&romtype=rom&romnom=" & $vRomName & "&romtaille=" & $aRomList[$vBoucle][4], $vXMLRom)
If (StringInStr(FileReadLine($aRomList[$vBoucle][8]), "Erreur") Or Not FileExists($aRomList[$vBoucle][8])) Then
FileDelete($aRomList[$vBoucle][8])
Expand Down
7 changes: 7 additions & 0 deletions changelog.txt
@@ -1,3 +1,10 @@
2.1.0.3
* Corrected :
- Filename check is with extension now...
- Neo-Geo scrape now return correct info.
* Added :
- Some security on Target XML file selection.

2.1.0.2
* Corrected :
- Time out on the new experimental function (Hash with SSH command directly on the PI)
Expand Down
7 changes: 7 additions & 0 deletions changelog_next.txt
@@ -1,3 +1,10 @@
2.1.0.3
* Corrected :
- Filename check is with extension now...
- Neo-Geo scrape now return correct info.
* Added :
- Some security on Target XML file selection.

2.1.0.2
* Corrected :
- Time out on the new experimental function (Hash with SSH command directly on the PI)
Expand Down

0 comments on commit a070199

Please sign in to comment.