We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5517f5b commit db75f51Copy full SHA for db75f51
cpp/gbc/src/main.cpp
@@ -296,7 +296,7 @@ int main(int argc, char** argv)
296
{
297
(void)argc;
298
299
- if (strcmp(argv[2], "storage") == 0)
+ if (IS_STORAGE())
300
301
/* GameBoy Color machine */
302
machine = new gbc::Machine(romdata);
kvm_api.h
@@ -51,7 +51,7 @@ extern void register_func(int, ...);
51
**/
52
#define IS_SANDBOXED_MAIN() (getenv("KVM_NAME") != (void*)0)
53
#define IS_LINUX_MAIN() !IS_SANDBOXED_MAIN()
54
-
+#define IS_STORAGE() (strcmp(getenv("KVM_TYPE"), "storage") == 0)
55
/**
56
* During the start of the program, one should register callback functions
57
* that will handle different types of requests, like GET, POST etc.
0 commit comments