mirror of
				https://github.com/davidgiven/fluxengine.git
				synced 2025-10-31 11:17:01 -07:00 
			
		
		
		
	Change the global config variable to a globalConfig() function.
This commit is contained in:
		| @@ -43,8 +43,8 @@ public: | ||||
|             error("input not a SCP file"); | ||||
|  | ||||
|         int tpi = (_header.flags & SCP_FLAG_96TPI) ? 96 : 48; | ||||
|         if (!::config.drive().has_tpi()) | ||||
|             ::config.mutable_drive()->set_tpi(tpi); | ||||
|         if (!::globalConfig().drive().has_tpi()) | ||||
|             ::globalConfig().mutable_drive()->set_tpi(tpi); | ||||
|  | ||||
|         _resolution = 25 * (_header.resolution + 1); | ||||
|         int startSide = (_header.heads == 2) ? 1 : 0; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user