mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	added entry point loading from ELF file
This commit is contained in:
		
							parent
							
								
									69223d007e
								
							
						
					
					
						commit
						c89f3a5c38
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		|  | @ -25,6 +25,7 @@ | |||
| #include "file_util.h" | ||||
| #include "loader.h" | ||||
| #include "system.h" | ||||
| #include "core.h" | ||||
| #include "file_sys/directory_file_system.h" | ||||
| #include "elf/elf_reader.h" | ||||
| 
 | ||||
|  | @ -71,10 +72,11 @@ bool Load_ELF(std::string &filename) { | |||
|         elf_reader = new ElfReader(buffer); | ||||
|         elf_reader->LoadInto(0x00100000); | ||||
| 
 | ||||
|         Core::g_app_core->SetPC(elf_reader->GetEntryPoint()); | ||||
| 
 | ||||
|         delete[] buffer; | ||||
|         delete elf_reader; | ||||
|     } | ||||
|     else { | ||||
|     } else { | ||||
|         return false; | ||||
|     } | ||||
|     f.Close(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue