mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-11-03 23:28:48 +00:00 
			
		
		
		
	applet: Move common IsRunning underlying variable to the Applet class
Gets rid of basic duplication.
This commit is contained in:
		
							parent
							
								
									6f71fb2954
								
							
						
					
					
						commit
						f1709b8b59
					
				
					 8 changed files with 19 additions and 28 deletions
				
			
		| 
						 | 
				
			
			@ -101,6 +101,10 @@ ResultCode Applet::Start(const Service::APT::AppletStartupParameter& parameter)
 | 
			
		|||
    return result;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool Applet::IsRunning() const {
 | 
			
		||||
    return is_running;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool IsLibraryAppletRunning() {
 | 
			
		||||
    // Check the applets map for instances of any applet
 | 
			
		||||
    for (auto itr = applets.begin(); itr != applets.end(); ++itr)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue