google drive integration part 1.1
This commit is contained in:
parent
cdf9496d02
commit
d0360931fe
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -43,6 +43,7 @@
|
|||
|
||||
Stage primaryStage;
|
||||
private MainWindowController mainWindowController;
|
||||
CloudController cloudController;
|
||||
private String dirWin = System.getProperty("user.home") + "/Documents/cemu_UI"; //Windows: C:/Users/"User"/Documents/HomeFlix
|
||||
private String dirLinux = System.getProperty("user.home") + "/cemu_UI"; //Linux: /home/"User"/HomeFlix
|
||||
private String gamesDBdownloadURL = "https://github.com/Seil0/cemu_UI/raw/master/downloadContent/games.db";
|
||||
|
@ -57,6 +58,7 @@
|
|||
@Override
|
||||
public void start(Stage primaryStage) {
|
||||
this.primaryStage = primaryStage;
|
||||
cloudController = new CloudController(this);
|
||||
mainWindow();
|
||||
}
|
||||
|
||||
|
@ -71,7 +73,7 @@
|
|||
mainWindowController = loader.getController(); //Link of FXMLController and controller class
|
||||
mainWindowController.setMain(this); //call setMain
|
||||
|
||||
//get OS and the right paths
|
||||
//get os and the right paths
|
||||
if(System.getProperty("os.name").equals("Linux")){
|
||||
directory = new File(dirLinux);
|
||||
configFile = new File(dirLinux + "/config.xml");
|
||||
|
@ -123,8 +125,13 @@
|
|||
}
|
||||
}
|
||||
|
||||
//loading settings and initialize UI
|
||||
//loading settings and initialize UI, dbController.main() loads all databases
|
||||
mainWindowController.loadSettings();
|
||||
if(mainWindowController.isCloudSync()) {
|
||||
cloudController.initializeConnection(mainWindowController.getCloudService(), mainWindowController.getCemuPath());
|
||||
cloudController.sync(mainWindowController.getCloudService(), mainWindowController.getCemuPath());
|
||||
mainWindowController.saveSettings();//TODO find a better way
|
||||
}
|
||||
mainWindowController.dbController.main();
|
||||
mainWindowController.addUIData();
|
||||
mainWindowController.initActions();
|
||||
|
|
Loading…
Reference in New Issue