mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-03 11:38:49 -06:00
Initial megacommit.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
38
Source/Core/DolphinWX/src/MainNoGUI.cpp
Normal file
38
Source/Core/DolphinWX/src/MainNoGUI.cpp
Normal file
@ -0,0 +1,38 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#ifndef _WIN32
|
||||
//#include <curses.h>
|
||||
#else
|
||||
#endif
|
||||
|
||||
#include "Globals.h"
|
||||
#include "Common.h"
|
||||
#include "ISOFile.h"
|
||||
|
||||
#include "BootManager.h"
|
||||
|
||||
int main(int argc, const char* argv[])
|
||||
{
|
||||
if (argc != 2)
|
||||
{
|
||||
puts("Please supply at least one argument - the ISO to boot.\n");
|
||||
return(1);
|
||||
}
|
||||
|
||||
CISOFile iso(argv[1]);
|
||||
|
||||
if (!iso.IsValid())
|
||||
{
|
||||
printf("The ISO %s is not a valid Gamecube or Wii ISO.", argv[1]);
|
||||
return(1);
|
||||
}
|
||||
|
||||
BootManager::BootCore(iso);
|
||||
usleep(2000 * 1000 * 1000);
|
||||
// while (!getch()) {
|
||||
// usleep(20);
|
||||
// }
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user