mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 01:02:34 +00:00
Fixed game ordering, added ApplicationManager class that'll manage installing/repairing/removing games
This commit is contained in:
@@ -1,17 +1,24 @@
|
||||
class W3DHub
|
||||
class Window < CyberarmEngine::Window
|
||||
attr_reader :settings
|
||||
attr_reader :settings, :application_manager
|
||||
|
||||
def setup
|
||||
self.caption = "#{W3DHub::NAME}"
|
||||
|
||||
@settings = Settings.new
|
||||
@application_manager = ApplicationManager.new
|
||||
|
||||
@settings.save_settings
|
||||
|
||||
push_state(W3DHub::States::Boot)
|
||||
end
|
||||
|
||||
def close
|
||||
@settings.save_settings
|
||||
|
||||
super if @application_manager.idle?
|
||||
end
|
||||
|
||||
def button_down(id)
|
||||
super
|
||||
|
||||
|
||||
Reference in New Issue
Block a user