mirror of
				https://github.com/hedge-dev/XenonRecomp.git
				synced 2025-10-30 07:11:38 +00:00 
			
		
		
		
	Named recompiled entry point
This commit is contained in:
		
							parent
							
								
									c83c3d51bc
								
							
						
					
					
						commit
						6898a7d97d
					
				
					 2 changed files with 8 additions and 2 deletions
				
			
		|  | @ -29,6 +29,12 @@ int main(int argc, char* argv[]) | ||||||
|         std::println("Analysing functions..."); |         std::println("Analysing functions..."); | ||||||
|         recompiler.Analyse(); |         recompiler.Analyse(); | ||||||
| 
 | 
 | ||||||
|  |         auto entry = recompiler.image.symbols.find(recompiler.image.entry_point); | ||||||
|  |         if (entry != recompiler.image.symbols.end()) | ||||||
|  |         { | ||||||
|  |             entry->name = "_xstart"; | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|         recompiler.Recompile(argv[3]); |         recompiler.Recompile(argv[3]); | ||||||
|     } |     } | ||||||
|     else |     else | ||||||
|  |  | ||||||
|  | @ -12,10 +12,10 @@ enum SymbolType | ||||||
| 
 | 
 | ||||||
| struct Symbol | struct Symbol | ||||||
| { | { | ||||||
|     std::string name{}; |     mutable std::string name{}; | ||||||
|     uint32_t address{}; |     uint32_t address{}; | ||||||
|     uint32_t size{}; |     uint32_t size{}; | ||||||
|     SymbolType type{}; |     mutable SymbolType type{}; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| struct SymbolComparer | struct SymbolComparer | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Sajid
						Sajid