mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-26 23:11:01 +00:00
Initialize emulator using settings struct
This commit is contained in:
@@ -17,3 +17,17 @@
|
||||
|
||||
#define ASSERT_TERMINATED_SUCCESSFULLY(win_emu) \
|
||||
ASSERT_TERMINATED_WITH_STATUS(win_emu, STATUS_SUCCESS)
|
||||
|
||||
namespace test
|
||||
{
|
||||
inline windows_emulator create_sample_emulator()
|
||||
{
|
||||
const emulator_settings settings
|
||||
{
|
||||
.application = "./test-sample.exe",
|
||||
.disable_logging = true,
|
||||
};
|
||||
|
||||
return windows_emulator{settings};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user