-// (c) Copyright 2006-2009 notaz, All rights reserved.\r
-// Free for non-commercial use.\r
-\r
-// For commercial use, separate licencing terms must be obtained.\r
+/*\r
+ * PicoDrive\r
+ * (C) notaz, 2006-2010\r
+ *\r
+ * This work is licensed under the terms of MAME license.\r
+ * See COPYING file in the top-level directory.\r
+ */\r
\r
#include <stdio.h>\r
#include <stdlib.h>\r
#include <string.h>\r
#include <strings.h>\r
\r
-#include "menu.h"\r
+#include "../libpicofe/input.h"\r
+#include "../libpicofe/plat.h"\r
+#include "menu_pico.h"\r
#include "emu.h"\r
#include "config.h"\r
-#include "input.h"\r
-#include "plat.h"\r
#include <cpu/debug.h>\r
#include <version.h>\r
\r
{\r
g_argv = argv;\r
\r
- plat_early_init();\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(0, 0);\r
- config_readlrom(PicoConfigFile);\r
-\r
- plat_init();\r
in_probe();\r
- in_debug_dump();\r
+\r
+ plat_target_init();\r
+\r
+ emu_prep_defconfig(); // depends on input\r
+ emu_read_config(NULL, 0);\r
\r
emu_init();\r
menu_init();\r
endloop:\r
\r
emu_finish();\r
- plat_finish();\r
+ plat_target_finish();\r
\r
return 0;\r
}\r