remove FCEU_PythonFrameBoundary msg and supress warning on release

This commit is contained in:
gfp34 2022-10-12 15:02:32 -04:00
parent 85dd2d15b7
commit 36f6dcf9d8
1 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,8 @@ static int emu_framecount()
// dict joypad.read(int which = 1)
//
// Reads the joypads as inputted by the user.
static py::dict joy_get_internal(int player, bool reportUp, bool reportDown) {
static py::dict joy_get_internal(int player, bool reportUp, bool reportDown)
{
// Use the OS-specific code to do the reading.
extern SFORMAT FCEUCTRL_STATEINFO[];
uint8 buttons = ((uint8*) FCEUCTRL_STATEINFO[1].v)[player - 1];
@ -96,8 +97,6 @@ PYBIND11_EMBEDDED_MODULE(joypad, m)
void FCEU_PythonFrameBoundary()
{
std::cout << "in FCEU_PythonFrameBoundary" << std::endl;
if(!pythonRunning)
return;
@ -145,6 +144,7 @@ void FCEU_LoadPythonCode(const char* filename)
// gil_scoped_release created on heap to not be destroyed on leaving FCEU_LoadPythonCode scope
py::gil_scoped_release* release = new py::gil_scoped_release;
(void)release; // supress unused variable warning on release
std::thread(pythonStart, std::string(filename)).detach();