Skip to content

Commit

Permalink
Updated to VitaGrafix 3.2 and support for more than 2 dynamic resolut…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
Kirezar committed Nov 4, 2018
1 parent f153245 commit 47deece
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 9 deletions.
42 changes: 42 additions & 0 deletions build/gamelist.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
[Assassin's Creed III: Liberation]
ID=PCSB00074,PCSE00053
FB=false
IB=OFF
FPS=OFF

[Asphalt: Injection]
ID=PCSB00040,PCSE00007
FB=false
Expand All @@ -16,6 +22,12 @@ FB=false
IB=960x544
FPS=false

[Dead or Alive Xtreme 3: Venus]
ID=PCSG00773,PCSH00250,PCSH00281
FB=false
IB=OFF
FPS=false

[Dragon Ball Z: Battle of Z]
ID=PCSB00396,PCSE00305,PCSG00213
FB=false
Expand All @@ -28,6 +40,12 @@ FB=false
IB=960x544
FPS=OFF

[Fate/EXTELLA LINK (The Umbral Star)]
ID=PCSG01091,PCSH10121
FB=false
IB=OFF
FPS=false

[F1 2011]
ID=PCSB00027
FB=false
Expand Down Expand Up @@ -148,6 +166,12 @@ FB=OFF
IB=false
FPS=false

[Resident Evil: Revelations 2]
ID=PCSF00728,PCSE00608,PCSG00594
FB=false
IB=OFF
FPS=false

[Ridge Racer]
ID=PCSB00048,PCSE00001,PCSG00001
FB=false
Expand Down Expand Up @@ -184,6 +208,18 @@ FB=false
IB=OFF
FPS=OFF

[The Legend of Heroes: Trails of Cold Steel / Eiyuu Densetsu: Sen no Kiseki]
ID=PCSB00866,PCSE00786,PCSG00195,PCSH00074
FB=false
IB=OFF
FPS=false

[The Legend of Heroes: Trails of Cold Steel II / Eiyuu Densetsu: Sen no Kiseki II]
ID=PCSB01016,PCSE00896,PCSG00354,PCSH00075
FB=false
IB=OFF
FPS=false

[Utawarerumono: Mask of Deception / Itsuwari no Kamen]
ID=PCSE00959,PCSG00617,PCSB01093
FB=false
Expand All @@ -202,6 +238,12 @@ FB=false
IB=672x384
FPS=false

[Wipeout 2048]
ID=PCSF00007,PCSA00015,PCSC00006,PCSD00005
FB=false
IB=OFF
FPS=OFF

[World of Final Fantasy]
ID=PCSB00951,PCSE00880,PCSH00223,PCSG00709
FB=false
Expand Down
51 changes: 44 additions & 7 deletions build/index.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ app_folder = "VGCF00001"

auto_update = false

current_version = true

timerObj = Timer.new()

-- Set Buttons to nil each frame
Expand Down Expand Up @@ -208,6 +210,7 @@ function GetLocalVersion()
app_v_num = ux_app_version_num

if list_version_num > ux_list_version_num or app_version_num > ux_app_version_num then
System.deleteFile("ux0:data/Vitagrafix/versions.txt")
file = System.openFile("ux0:data/Vitagrafix/versions.txt", FCREATE)
System.writeFile(file, version_text, string.len(version_text))
System.closeFile(file)
Expand Down Expand Up @@ -272,7 +275,34 @@ function GetVersion()
local new_list_number = GetNumber(new_list_version)
local new_app_number = GetNumber(new_app_version)

--if not string.match(new_app_version, app_version) then
if not string.match(new_app_version, app_version) then

local continue = 0

while continue == 0 do

EndDraw()
BeginDraw()

pad = Controls.read()
Graphics.debugPrint(250, 192, "Your version is outdated, please update", Color.new(255,255,255))
Graphics.debugPrint(280, 232, "Current Version: " .. tostring(app_version_num) .. " New Version: " .. tostring(new_app_number), Color.new(255,255,255))
Graphics.debugPrint(350, 262, "Cross: Continue", Color.new(255,255,255))

if pad ~= previousPad then
if Controls.check(pad, SCE_CTRL_CROSS) then
continue = 1
end
end
previousPad = pad
EndDraw()
end

Network.term()
return


end

if list_version_num < new_list_number then
local wantsToUpdate = 0
Expand Down Expand Up @@ -834,7 +864,12 @@ function GUI()

if games[gameCounter].ib ~= "false" then
Graphics.debugPrint(5, 150 + 30 * objectNum, "Internal Resolution", Color.new(255,255,255))
Graphics.debugPrint(250, 150 + 30 * objectNum, games[gameCounter].ib, Color.new(255,255,255))

if string.len(games[gameCounter].ib) >= 20 then
Graphics.debugPrint(250, 150 + 30 * objectNum, "Multiple Resolutions", Color.new(255,255,255))
else
Graphics.debugPrint(250, 150 + 30 * objectNum, games[gameCounter].ib, Color.new(255,255,255))
end
Graphics.debugPrint(550, 150 + 30 * objectNum, "(Default: " .. games[gameCounter].default_ib .. ")", Color.new(255,255,255))
objectNum = objectNum + 1
ib_button = objectNum
Expand Down Expand Up @@ -867,12 +902,14 @@ function GUI()
region_text = region_text .. "[Asia] "
end
Graphics.debugPrint(5, 360, region_text, Color.new(255,255,255))
end

if selected_button > 2 and selected_button < available_buttons then
Graphics.debugPrint(600, 10, "Press Triangle for default setting", Color.new(255,255,255))
if selected_button > 2 and selected_button < available_buttons then
Graphics.debugPrint(600, 10, "Press Triangle for default setting", Color.new(255,255,255))
end
end



end

-- Function called when X was pressed
Expand Down Expand Up @@ -900,7 +937,7 @@ function CrossPressed()
end
elseif selected_button == ib_button then -- Internal res button, opens keyboard
Keyboard.clear()
Keyboard.show("0 < X <= 960 and 0 < Y <= 544 or OFF", games[gameCounter].ib, 15, TYPE_DEFAULT, MODE_TEXT)
Keyboard.show("0 < X <= 960 and 0 < Y <= 544 or OFF", games[gameCounter].ib, 255, TYPE_DEFAULT, MODE_TEXT)
elseif selected_button == 3 then -- Button 3 is the Auto Update button
if gameCounter == 0 then
auto_update = not auto_update
Expand Down Expand Up @@ -998,11 +1035,11 @@ end
-- Initialization function
function Start()

GetLocalVersion()
CreateGameList()
FindCurrentSettings()
GetRegions()
WriteToFile()
GetLocalVersion()
ReadAppConfig()
pad = Controls.read()
if auto_update == true and not Controls.check(pad, SCE_CTRL_LTRIGGER) then
Expand Down
4 changes: 2 additions & 2 deletions build/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
gamelist=3.11
app=1.2
gamelist=3.2
app=1.3

0 comments on commit 47deece

Please sign in to comment.