mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 06:40:05 +00:00 
			
		
		
		
	Initialize AWS SDK
This commit is contained in:
		
							parent
							
								
									c0145f1abd
								
							
						
					
					
						commit
						bd68f1adbd
					
				
					 2 changed files with 18 additions and 2 deletions
				
			
		|  | @ -4,6 +4,7 @@ | |||
| #include <scwx/qt/manager/settings_manager.hpp> | ||||
| #include <scwx/util/logger.hpp> | ||||
| 
 | ||||
| #include <aws/core/Aws.h> | ||||
| #include <spdlog/spdlog.h> | ||||
| #include <QApplication> | ||||
| 
 | ||||
|  | @ -14,6 +15,9 @@ int main(int argc, char* argv[]) | |||
| 
 | ||||
|    QCoreApplication::setApplicationName("Supercell Wx"); | ||||
| 
 | ||||
|    Aws::SDKOptions awsSdkOptions; | ||||
|    Aws::InitAPI(awsSdkOptions); | ||||
| 
 | ||||
|    scwx::qt::config::RadarSite::Initialize(); | ||||
|    scwx::qt::manager::SettingsManager::Initialize(); | ||||
|    scwx::qt::manager::ResourceManager::PreLoad(); | ||||
|  | @ -21,5 +25,9 @@ int main(int argc, char* argv[]) | |||
|    QApplication               a(argc, argv); | ||||
|    scwx::qt::main::MainWindow w; | ||||
|    w.show(); | ||||
|    return a.exec(); | ||||
|    int result = a.exec(); | ||||
| 
 | ||||
|    Aws::ShutdownAPI(awsSdkOptions); | ||||
| 
 | ||||
|    return result; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat