tweak and refactor frontends, menu and config
[libpicofe.git] / common / main.c
index 072fcfd..48f218f 100644 (file)
@@ -74,15 +74,13 @@ int main(int argc, char *argv[])
 \r
        plat_early_init();\r
 \r
-       /* in_init() must go before config, config accesses in_ fwk */\r
        in_init();\r
-       emu_prep_defconfig();\r
-       emu_read_config(NULL, 0);\r
-       config_readlrom(PicoConfigFile);\r
+       in_probe();\r
 \r
        plat_init();\r
-       in_probe();\r
-       in_debug_dump();\r
+\r
+       emu_prep_defconfig(); // depends on input\r
+       emu_read_config(NULL, 0);\r
 \r
        emu_init();\r
        menu_init();\r