Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Minor bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed May 25, 2016
1 parent 7bda62c commit efb21a3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ Builder/*.lua
Builder/*.bat
Builder/romfs
Builder/*.cia

Builder/*.sh
LumaUpdater.3dsx
LumaUpdater.smdh
LumaUpdater.smdh
13 changes: 9 additions & 4 deletions index.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ local zip_path = "/Luma3DS.zip"
local backup_path = payload_path..".bak"
local remoteVer = "http://astronautlevel2.github.io/Luma3DS/lastVer"
local remoteCommit = "http://astronautlevel2.github.io/Luma3DS/lastCommit"
local remoteDevCommit = "http://astronautlevel2.github.io/Luma3DSDev/lastCommit"
local latestCIA = "http://www.ataber.pw/u"
local curPos = 20
local isMenuhax = false
local isDev = false
local menuhaxmode, devmode = 1,2
local localVer = ""
local remoteVer = ""
local remoteVerNum = ""

function readConfig(fileName)
if (isMenuhax) then
Expand Down Expand Up @@ -132,7 +133,11 @@ function getVer(path)
end
else
if Network.isWifiEnabled() then
return Network.requestString(remoteVer).."-"..Network.requestString(remoteCommit)
if (not isDev) then
return Network.requestString(remoteVer).."-"..Network.requestString(remoteCommit)
else
return Network.requestString(remoteVer).."-"..Network.requestString(remoteDevCommit)
end
else
return "No connection!"
end
Expand Down Expand Up @@ -212,7 +217,7 @@ end
function init()
readConfig("/luma/update.cfg")
localVer = getVer(payload_path)
remoteVer = getVer("remote")
remoteVerNum = getVer("remote")
end

function main()
Expand All @@ -228,7 +233,7 @@ function main()
Screen.debugPrint(30,95, "Go back to HBL/Home menu", white, TOP_SCREEN)
Screen.debugPrint(30,110, "Update the updater", white, TOP_SCREEN)
Screen.debugPrint(5,145, "Your Luma3DS version: "..localVer, white, TOP_SCREEN)
Screen.debugPrint(5,160, "Latest Luma3DS version: "..remoteVer, white, TOP_SCREEN)
Screen.debugPrint(5,160, "Latest Luma3DS version: "..remoteVerNum, white, TOP_SCREEN)
if (not isMenuhax) then
Screen.debugPrint(5, 175, "Install dir: "..payload_path, white, TOP_SCREEN)
end
Expand Down

0 comments on commit efb21a3

Please sign in to comment.