mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 09:52:44 +00:00 
			
		
		
		
	 7742f37c10
			
		
	
	
		7742f37c10
		
	
	
	
	
		
			
			`ArgsParser` and `AboutDialog` had the same procedure to read the version from `/res/version.ini`. Now they use the `SERENITY_VERSION` string by default. This commit refactored the version-reading utility to the new `Core::Version` namespace.
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			280 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			280 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2021, Mahmoud Mandour <ma.mandourr@gmail.com>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <AK/StringView.h>
 | |
| 
 | |
| namespace Core::Version {
 | |
| 
 | |
| constexpr StringView SERENITY_VERSION = "Version 1.0"sv;
 | |
| 
 | |
| String read_long_version_string();
 | |
| 
 | |
| }
 |