mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 06:32:44 +00:00 
			
		
		
		
	UserspaceEmulator: Put the executable name in argv[0] :^)
The emulated program can now find its own name in argv[0]. Very cool!
This commit is contained in:
		
							parent
							
								
									ddf7b817df
								
							
						
					
					
						commit
						079021a607
					
				
					 5 changed files with 23 additions and 6 deletions
				
			
		|  | @ -75,6 +75,8 @@ public: | |||
|     void push32(u32); | ||||
|     u32 pop32(); | ||||
| 
 | ||||
|     void push_string(const StringView&); | ||||
| 
 | ||||
|     u16 segment(X86::SegmentRegister seg) const { return m_segment[(int)seg]; } | ||||
|     u16& segment(X86::SegmentRegister seg) { return m_segment[(int)seg]; } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling