libsuperderpy.h: Include <psp2/power.h> on Vita

This is used by libsuperderpy itself and bunch of games will want to use
it as well in order to set CPU/GPU clocks, so let's make it simpler.
This commit is contained in:
Sebastian Krzyszkowiak 2021-07-26 01:12:10 +02:00
parent 398527918e
commit e6ee232759
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF
2 changed files with 2 additions and 4 deletions

View file

@ -64,6 +64,8 @@ struct GamestateResources;
#elif defined(__EMSCRIPTEN__)
#include <emscripten/emscripten.h>
#include <emscripten/html5.h>
#elif defined(__vita__)
#include <psp2/power.h>
#endif
#include "character.h"

View file

@ -19,10 +19,6 @@
#include "internal.h"
#ifdef __vita__
#include <psp2/power.h>
#endif
static inline bool HandleEvent(struct Game* game, ALLEGRO_EVENT* ev) {
switch (ev->type) {
case ALLEGRO_EVENT_DISPLAY_HALT_DRAWING: