mirror of https://gitlab.com/nakst/essence
Compare commits
2 Commits
1104a2f2ef
...
6276f65be4
Author | SHA1 | Date |
---|---|---|
|
6276f65be4 | |
|
cfaf991c6b |
|
@ -653,7 +653,7 @@ void Run(int emulator, int log, int debug) {
|
||||||
case EMULATOR_VIRTUALBOX: {
|
case EMULATOR_VIRTUALBOX: {
|
||||||
// TODO Automatically setup the Essence VM if it doesn't exist.
|
// TODO Automatically setup the Essence VM if it doesn't exist.
|
||||||
|
|
||||||
CallSystem("VBoxManage storageattach Essence --storagectl AHCI --port 0 --device 0 --type hdd --medium none");
|
CallSystem("VBoxManage storageattach Essence --storagectl SATA --port 0 --device 0 --type hdd --medium none");
|
||||||
CallSystem("VBoxManage closemedium disk bin/vbox.vdi --delete");
|
CallSystem("VBoxManage closemedium disk bin/vbox.vdi --delete");
|
||||||
|
|
||||||
if (IsOptionEnabled("Emulator.VBoxEFI")) {
|
if (IsOptionEnabled("Emulator.VBoxEFI")) {
|
||||||
|
@ -665,7 +665,7 @@ void Run(int emulator, int log, int debug) {
|
||||||
CallSystem("VBoxManage modifyvm Essence --firmware bios");
|
CallSystem("VBoxManage modifyvm Essence --firmware bios");
|
||||||
}
|
}
|
||||||
|
|
||||||
CallSystem("VBoxManage storageattach Essence --storagectl AHCI --port 0 --device 0 --type hdd --medium bin/vbox.vdi");
|
CallSystem("VBoxManage storageattach Essence --storagectl SATA --port 0 --device 0 --type hdd --medium bin/vbox.vdi");
|
||||||
|
|
||||||
CallSystem("VBoxManage startvm --putenv VBOX_GUI_DBG_ENABLED=true Essence");
|
CallSystem("VBoxManage startvm --putenv VBOX_GUI_DBG_ENABLED=true Essence");
|
||||||
} break;
|
} break;
|
||||||
|
@ -1145,8 +1145,11 @@ void DoCommand(const char *l) {
|
||||||
BUILD_UTILITY("font_editor", "-lX11 -Wno-unused-parameter", "");
|
BUILD_UTILITY("font_editor", "-lX11 -Wno-unused-parameter", "");
|
||||||
CallSystem("bin/font_editor res/Fonts/Bitmap\\ Sans\\ Regular\\ 9.font");
|
CallSystem("bin/font_editor res/Fonts/Bitmap\\ Sans\\ Regular\\ 9.font");
|
||||||
} else if (0 == strcmp(l, "config")) {
|
} else if (0 == strcmp(l, "config")) {
|
||||||
|
#ifdef __MSYS__
|
||||||
|
BUILD_UTILITY("config_editor", "-Wl,-subsystem,windows -Wno-unused-parameter -mwindows", "");
|
||||||
|
#else
|
||||||
BUILD_UTILITY("config_editor", "-lX11 -Wno-unused-parameter", "");
|
BUILD_UTILITY("config_editor", "-lX11 -Wno-unused-parameter", "");
|
||||||
|
#endif
|
||||||
if (CallSystem("bin/config_editor")) {
|
if (CallSystem("bin/config_editor")) {
|
||||||
printf("The config editor could not be opened.\n"
|
printf("The config editor could not be opened.\n"
|
||||||
"This likely means your system does not have X11 setup.\n"
|
"This likely means your system does not have X11 setup.\n"
|
||||||
|
|
|
@ -7,7 +7,11 @@
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#ifdef __MSYS__
|
||||||
|
#define UI_WINDOWS
|
||||||
|
#else
|
||||||
#define UI_LINUX
|
#define UI_LINUX
|
||||||
|
#endif
|
||||||
#define UI_IMPLEMENTATION
|
#define UI_IMPLEMENTATION
|
||||||
#include "luigi.h"
|
#include "luigi.h"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue