Fixed game ordering, added ApplicationManager class that'll manage installing/repairing/removing games

This commit is contained in:
2021-11-14 19:52:27 -06:00
parent b7ccdb2ad3
commit 7fd38cd92d
9 changed files with 120 additions and 39 deletions

View File

@@ -0,0 +1,49 @@
class W3DHub
class ApplicationManager
def install(app_id)
puts "Installation Request: #{app_id}"
end
def import(app_id, path)
puts "Import Request: #{app_id} -> #{path}"
end
def settings(app_id)
puts "Settings Request: #{app_id}"
end
def repair(app_id)
puts "Repair Installation Request: #{app_id}"
end
def uninstall(app_id)
puts "Uninstall Request: #{app_id}"
end
def show_folder(app_id, type)
puts "Show Folder Request: #{app_id} -> #{type.inspect}"
case type
when :installation
when :user_data
when :screenshots
else
warn "Unknown folder type: #{type.inspect}"
end
end
def installed?(app_id)
false
end
# No application tasks are being done
def idle?
true
end
# Whether some operation is in progress
def busy?
!idle?
end
end
end