mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:58:11 +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
|
@ -37,7 +37,7 @@ namespace UserspaceEmulator {
|
|||
|
||||
class Emulator {
|
||||
public:
|
||||
explicit Emulator(NonnullRefPtr<ELF::Loader>);
|
||||
Emulator(const String& executable_path, NonnullRefPtr<ELF::Loader>);
|
||||
|
||||
bool load_elf();
|
||||
void dump_backtrace();
|
||||
|
@ -63,6 +63,8 @@ private:
|
|||
|
||||
bool m_shutdown { false };
|
||||
int m_exit_status { 0 };
|
||||
|
||||
String m_executable_path;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue