mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 06:10:03 -06:00
HARK HARK HARK HARK
This commit is contained in:
22
melonDS.cbp
22
melonDS.cbp
@ -53,6 +53,22 @@
|
|||||||
<Add option="-m64" />
|
<Add option="-m64" />
|
||||||
</Linker>
|
</Linker>
|
||||||
</Target>
|
</Target>
|
||||||
|
<Target title="DebugFast-Cap Windows">
|
||||||
|
<Option platforms="Windows;" />
|
||||||
|
<Option output="bin/DebugFast/melonDS" prefix_auto="1" extension_auto="1" />
|
||||||
|
<Option object_output="obj/DebugFast/" />
|
||||||
|
<Option type="1" />
|
||||||
|
<Option compiler="gcc" />
|
||||||
|
<Compiler>
|
||||||
|
<Add option="-O3" />
|
||||||
|
<Add option="-m64" />
|
||||||
|
<Add option="-D_FILE_OFFSET_BITS=64" />
|
||||||
|
<Add option="-DMELONCAP" />
|
||||||
|
</Compiler>
|
||||||
|
<Linker>
|
||||||
|
<Add option="-m64" />
|
||||||
|
</Linker>
|
||||||
|
</Target>
|
||||||
</Build>
|
</Build>
|
||||||
<Compiler>
|
<Compiler>
|
||||||
<Add option="-Wall" />
|
<Add option="-Wall" />
|
||||||
@ -143,6 +159,12 @@
|
|||||||
<Unit filename="src/libui_sdl/LAN_PCap.h" />
|
<Unit filename="src/libui_sdl/LAN_PCap.h" />
|
||||||
<Unit filename="src/libui_sdl/LAN_Socket.cpp" />
|
<Unit filename="src/libui_sdl/LAN_Socket.cpp" />
|
||||||
<Unit filename="src/libui_sdl/LAN_Socket.h" />
|
<Unit filename="src/libui_sdl/LAN_Socket.h" />
|
||||||
|
<Unit filename="src/libui_sdl/MelonCap.cpp">
|
||||||
|
<Option target="DebugFast-Cap Windows" />
|
||||||
|
</Unit>
|
||||||
|
<Unit filename="src/libui_sdl/MelonCap.h">
|
||||||
|
<Option target="DebugFast-Cap Windows" />
|
||||||
|
</Unit>
|
||||||
<Unit filename="src/libui_sdl/OSD.cpp" />
|
<Unit filename="src/libui_sdl/OSD.cpp" />
|
||||||
<Unit filename="src/libui_sdl/OSD.h" />
|
<Unit filename="src/libui_sdl/OSD.h" />
|
||||||
<Unit filename="src/libui_sdl/Platform.cpp" />
|
<Unit filename="src/libui_sdl/Platform.cpp" />
|
||||||
|
43
src/libui_sdl/MelonCap.cpp
Normal file
43
src/libui_sdl/MelonCap.cpp
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2016-2019 Arisotura
|
||||||
|
|
||||||
|
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 <string.h>
|
||||||
|
#include "MelonCap.h"
|
||||||
|
|
||||||
|
|
||||||
|
namespace MelonCap
|
||||||
|
{
|
||||||
|
|
||||||
|
void Init()
|
||||||
|
{
|
||||||
|
printf("MelonCap init\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeInit()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
34
src/libui_sdl/MelonCap.h
Normal file
34
src/libui_sdl/MelonCap.h
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2016-2019 Arisotura
|
||||||
|
|
||||||
|
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 MELONCAP_H
|
||||||
|
#define MELONCAP_H
|
||||||
|
|
||||||
|
#include "types.h"
|
||||||
|
|
||||||
|
namespace MelonCap
|
||||||
|
{
|
||||||
|
|
||||||
|
void Init();
|
||||||
|
void DeInit();
|
||||||
|
|
||||||
|
void Update();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // MELONCAP_H
|
@ -48,6 +48,10 @@
|
|||||||
|
|
||||||
#include "OSD.h"
|
#include "OSD.h"
|
||||||
|
|
||||||
|
#ifdef MELONCAP
|
||||||
|
#include "MelonCap.h"
|
||||||
|
#endif // MELONCAP
|
||||||
|
|
||||||
|
|
||||||
// savestate slot mapping
|
// savestate slot mapping
|
||||||
// 1-8: regular slots (quick access)
|
// 1-8: regular slots (quick access)
|
||||||
@ -999,6 +1003,10 @@ int EmuThreadFunc(void* burp)
|
|||||||
// emulate
|
// emulate
|
||||||
u32 nlines = NDS::RunFrame();
|
u32 nlines = NDS::RunFrame();
|
||||||
|
|
||||||
|
#ifdef MELONCAP
|
||||||
|
MelonCap::Update();
|
||||||
|
#endif // MELONCAP
|
||||||
|
|
||||||
if (EmuRunning == 0) break;
|
if (EmuRunning == 0) break;
|
||||||
|
|
||||||
if (Screen_UseGL)
|
if (Screen_UseGL)
|
||||||
@ -2739,6 +2747,10 @@ int main(int argc, char** argv)
|
|||||||
uiMenuItemSetChecked(MenuItem_AudioSync, Config::AudioSync==1);
|
uiMenuItemSetChecked(MenuItem_AudioSync, Config::AudioSync==1);
|
||||||
uiMenuItemSetChecked(MenuItem_ShowOSD, Config::ShowOSD==1);
|
uiMenuItemSetChecked(MenuItem_ShowOSD, Config::ShowOSD==1);
|
||||||
|
|
||||||
|
#ifdef MELONCAP
|
||||||
|
MelonCap::Init();
|
||||||
|
#endif // MELONCAP
|
||||||
|
|
||||||
AudioSync = SDL_CreateCond();
|
AudioSync = SDL_CreateCond();
|
||||||
AudioSyncLock = SDL_CreateMutex();
|
AudioSyncLock = SDL_CreateMutex();
|
||||||
|
|
||||||
@ -2822,6 +2834,10 @@ int main(int argc, char** argv)
|
|||||||
|
|
||||||
if (MicWavBuffer) delete[] MicWavBuffer;
|
if (MicWavBuffer) delete[] MicWavBuffer;
|
||||||
|
|
||||||
|
#ifdef MELONCAP
|
||||||
|
MelonCap::DeInit();
|
||||||
|
#endif // MELONCAP
|
||||||
|
|
||||||
if (ScreenBitmap[0]) uiDrawFreeBitmap(ScreenBitmap[0]);
|
if (ScreenBitmap[0]) uiDrawFreeBitmap(ScreenBitmap[0]);
|
||||||
if (ScreenBitmap[1]) uiDrawFreeBitmap(ScreenBitmap[1]);
|
if (ScreenBitmap[1]) uiDrawFreeBitmap(ScreenBitmap[1]);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user