lay base for core->platform interaction

(immediately planned: threaded 3D renderer, wifi connectivity)
This commit is contained in:
StapleButter 2017-05-09 04:55:38 +02:00
parent bde9e7dfed
commit 36fa621436
4 changed files with 62 additions and 0 deletions

View File

@ -8,6 +8,7 @@ SET(SOURCES
src/wx/main.cpp
src/wx/EmuConfig.cpp
src/wx/InputConfig.cpp
src/wx/Platform.cpp
src/ARM.cpp
src/ARMInterpreter.cpp
src/ARMInterpreter_ALU.cpp

View File

@ -196,6 +196,7 @@
<Unit filename="src/NDS.h" />
<Unit filename="src/NDSCart.cpp" />
<Unit filename="src/NDSCart.h" />
<Unit filename="src/Platform.h" />
<Unit filename="src/RTC.cpp" />
<Unit filename="src/RTC.h" />
<Unit filename="src/SPI.cpp" />
@ -210,6 +211,7 @@
<Unit filename="src/wx/EmuConfig.h" />
<Unit filename="src/wx/InputConfig.cpp" />
<Unit filename="src/wx/InputConfig.h" />
<Unit filename="src/wx/Platform.cpp" />
<Unit filename="src/wx/main.cpp" />
<Unit filename="src/wx/main.h" />
<Unit filename="src/wx/scancode_wx2sdl.h" />

29
src/Platform.h Normal file
View File

@ -0,0 +1,29 @@
/*
Copyright 2016-2017 StapleButter
This file is part of melonDS.
melonDS is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option)
any later version.
melonDS is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with melonDS. If not, see http://www.gnu.org/licenses/.
*/
#ifndef PLATFORM_H
#define PLATFORM_H
namespace Platform
{
//
}
#endif // PLATFORM_H

30
src/wx/Platform.cpp Normal file
View File

@ -0,0 +1,30 @@
/*
Copyright 2016-2017 StapleButter
This file is part of melonDS.
melonDS is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option)
any later version.
melonDS is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with melonDS. If not, see http://www.gnu.org/licenses/.
*/
#include <stdio.h>
#include "Platform.h"
namespace Platform
{
//
}