Remove Organya dependency from platform backend
This commit is contained in:
parent
633ac64641
commit
bdcb1f3a3e
3 changed files with 3 additions and 6 deletions
|
@ -15,7 +15,6 @@
|
|||
#include "../Shared/GLFW3.h"
|
||||
#include "../../Attributes.h"
|
||||
#include "../../Main.h"
|
||||
#include "../../Organya.h"
|
||||
#include "../../Profile.h"
|
||||
|
||||
#define DO_KEY(GLFW_KEY, BACKEND_KEY) \
|
||||
|
@ -271,10 +270,7 @@ void PlaybackBackend_EnableDragAndDrop(void)
|
|||
bool Backend_SystemTask(bool active)
|
||||
{
|
||||
if (glfwWindowShouldClose(window))
|
||||
{
|
||||
StopOrganyaMusic();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (active)
|
||||
glfwPollEvents();
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
#include "../Shared/SDL2.h"
|
||||
#include "../../Attributes.h"
|
||||
#include "../../Main.h"
|
||||
#include "../../Organya.h"
|
||||
#include "../../Profile.h"
|
||||
|
||||
#define DO_KEY(SDL_KEY, BACKEND_KEY) \
|
||||
|
@ -294,7 +293,6 @@ bool Backend_SystemTask(bool active)
|
|||
break;
|
||||
|
||||
case SDL_QUIT:
|
||||
StopOrganyaMusic();
|
||||
return false;
|
||||
|
||||
case SDL_RENDER_TARGETS_RESET:
|
||||
|
|
|
@ -388,7 +388,10 @@ BOOL SystemTask(void)
|
|||
do
|
||||
{
|
||||
if (!Backend_SystemTask(bActive))
|
||||
{
|
||||
StopOrganyaMusic();
|
||||
return FALSE;
|
||||
}
|
||||
} while(!bActive);
|
||||
|
||||
bool keyboard_state[BACKEND_KEYBOARD_TOTAL];
|
||||
|
|
Loading…
Add table
Reference in a new issue