summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/src/MainNoGUI.cpp
blob: 3822785fb60c862e603ff2a49a9281fb18a16632 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#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"
void* g_pCodeWindow = NULL;
void* main_frame = NULL;
bool wxPanicAlert(const char* text, bool /*yes_no*/)
{
	return(true);
}


void Host_BootingStarted(){}


void Host_BootingEnded(){}


// OK, this thread boundary is DANGEROUS on linux
// wxPostEvent / wxAddPendingEvent is the solution.
void Host_NotifyMapLoaded(){}


void Host_UpdateLogDisplay(){}


void Host_UpdateDisasmDialog(){}


void Host_UpdateMainFrame(){}

void Host_UpdateBreakPointView(){}


void Host_UpdateMemoryView(){}


void Host_SetDebugMode(bool){}


void Host_SetWaitCursor(bool enable){}


void Host_CreateDisplay(){}


void Host_CloseDisplay(){}

void Host_UpdateStatusBar(const char* _pText){}

int main(int argc, const char* argv[])
{
	if (argc != 2)
	{
		puts("Please supply at least one argument - the ISO to boot.\n");
		return(1);
	}
	std::string temp;
	temp.insert(0, argv[1]); //Need to convert to C++ style string first

	BootManager::BootCore(temp);
	usleep(2000 * 1000 * 1000);
//	while (!getch()) {
	//	usleep(20);
//	}
	return(0);
}