Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue with new versions being detected as smaller than old versions #49

Merged
merged 4 commits into from
Jun 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions py/English CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ Luca Fraga's github: https://github.com/LucaFraga
---------------
0. Changelog
---------------
v0.86c- Fixes issue when new updates were detected as smaller versions than new updates
- For some reason it's value needed to be forced as integer again for detection to
work properly on some cases.
v0.86b- Quick fix for weird false possitive in ticket check
v0.86- File Verification:
- Adds file verification system accesible in info and individual modes
* Verification has 3 modes\levels:
Expand Down
2 changes: 1 addition & 1 deletion py/NSCB.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set "prog_dir=%~dp0"
set "bat_name=%~n0"
set "ofile_name=%bat_name%_options.cmd"
Title NSC_Builder v0.86. -- Profile: %ofile_name% -- by JulesOnTheRoad
Title NSC_Builder v0.86.c -- Profile: %ofile_name% -- by JulesOnTheRoad
set "list_folder=%prog_dir%lists"
::-----------------------------------------------------
::EDIT THIS VARIABLE TO LINK OTHER OPTION FILE
Expand Down
19 changes: 2 additions & 17 deletions py/ztools/info.bat
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ set "targt=%bs%"
for /f "delims=" %%a in ("%bs%") do set "Extension=%%~xa"
for /f "delims=" %%a in ("%bs%") do set "Name=%%~na"
if "%Extension%" EQU ".nsp" ( goto sc2 )
if "%Extension%" EQU ".nsx" ( goto sc2 )
if "%Extension%" EQU ".xci" ( goto sc2 )
echo WRONG TYPE OF FILE
pause
Expand Down Expand Up @@ -119,11 +120,6 @@ set "i_file=%info_dir%\%Name%_ID_content.txt"
ECHO DONE
goto sc2






:n_info
cls
call :logo
Expand Down Expand Up @@ -220,19 +216,8 @@ echo VERIFY A NSP\XCI\NCA
echo ********************************************************
%pycommand% "%nut%" -b %buffer% -o "%info_dir%" -v "%targt%"

rem echo.
rem ECHO ********************************************************
rem echo Do you want to print the information to a text file?
rem ECHO ********************************************************
rem :r_cnmt_wrong
rem echo Input "1" to print to text file
rem echo Input "2" to NOT print to text file
rem echo.
rem set /p bs="Enter your choice: "
rem if /i "%bs%"=="1" goto r_cnmt_print
goto sc2
rem echo WRONG CHOICE
rem echo.

goto r_cnmt_wrong
:r_cnmt_print
if not exist "%info_dir%" MD "%info_dir%">NUL 2>&1
Expand Down
8 changes: 4 additions & 4 deletions py/ztools/squirrel.py
Original file line number Diff line number Diff line change
Expand Up @@ -3017,13 +3017,13 @@
#print('true')
#print(contentlist[j][6])
#print(prlist[i][6])
if contentlist[j][6] > prlist[i][6]:
if int(contentlist[j][6]) > int(prlist[i][6]):
del prlist[i]
#print(prlist[i])
prlist.append(contentlist[j])
notinlist=False
break
elif contentlist[j][6] <= prlist[i][6]:
elif int(contentlist[j][6]) <= int(prlist[i][6]):
notinlist=False
break
else:
Expand Down Expand Up @@ -3061,13 +3061,13 @@
#print('true')
#print(contentlist[j][6])
#print(prlist[i][6])
if contentlist[j][6] > prlist[i][6]:
if int(contentlist[j][6]) > int(prlist[i][6]):
del prlist[i]
#print(prlist[i])
prlist.append(contentlist[j])
notinlist=False
break
elif contentlist[j][6] <= prlist[i][6]:
elif int(contentlist[j][6]) <= int(prlist[i][6]):
notinlist=False
break
else:
Expand Down