Lock default label of HDD local drive mounts. Fixes label changing to the host drive label when resetting cache on the Windows platform.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4104
This commit is contained in:
		
							parent
							
								
									dc5c83eb60
								
							
						
					
					
						commit
						ee8103cc23
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -403,7 +403,7 @@ public:
 | 
			
		|||
		 * This way every drive except cdroms should get a label.*/
 | 
			
		||||
		else if(type == "dir") { 
 | 
			
		||||
			label = drive; label += "_DRIVE";
 | 
			
		||||
			newdrive->dirCache.SetLabel(label.c_str(),iscdrom,true);
 | 
			
		||||
			newdrive->dirCache.SetLabel(label.c_str(),iscdrom,false);
 | 
			
		||||
		} else if(type == "floppy") {
 | 
			
		||||
			label = drive; label += "_FLOPPY";
 | 
			
		||||
			newdrive->dirCache.SetLabel(label.c_str(),iscdrom,true);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue