Skip to content

Commit

Permalink
ALL: remove psp2shell dependency as it now works as a module
Browse files Browse the repository at this point in the history
  • Loading branch information
Cpasjuste committed Jun 6, 2017
1 parent b8a0816 commit 32d3524
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 31 deletions.
6 changes: 1 addition & 5 deletions CMakeLists.txt
Expand Up @@ -7,7 +7,7 @@ enable_language(ASM)
# delete cmake cache folder before changing this options
set(BUILD_SFML OFF CACHE BOOL "Build with SFML support")
set(BUILD_SDL2 OFF CACHE BOOL "Build with SDL2 support")
set(BUILD_PSP2 OFF CACHE BOOL "Build with PSP2 support")
set(BUILD_PSP2 ON CACHE BOOL "Build with PSP2 support")
set(BUILD_3DS OFF CACHE BOOL "Build with 3DS support")
set(BUILD_RPI OFF CACHE BOOL "Build with RPI support")

Expand Down Expand Up @@ -390,10 +390,6 @@ if (BUILD_PSP2)
SceCtrl_stub ScePgf_stub ScePower_stub SceCommonDialog_stub
SceAudio_stub
freetype png jpeg z m c)
if (BUILD_DEBUG)
list(APPEND LDFLAGS
psp2shell SceNetCtl_stub SceNet_stub SceAppMgr_stub)
endif (BUILD_DEBUG)
elseif (BUILD_3DS)
##############
# 3DS
Expand Down
4 changes: 2 additions & 2 deletions pfba/burner_sdl.h
Expand Up @@ -31,8 +31,8 @@
#include <malloc.h>

#ifdef __PSP2_DEBUG__
#include <psp2shell.h>
#define printf psp2shell_print
#include <psp2/kernel/clib.h>
#define printf sceClibPrintf
#endif

#ifndef MAX_PATH
Expand Down
6 changes: 2 additions & 4 deletions pfba/cpu/c68000_intf.cpp
Expand Up @@ -4,10 +4,8 @@
#include "m68000_debug.h"

#ifdef __PSP2_DEBUG__
#include <psp2shell.h>
#include <malloc.h>

#define printf psp2shell_print
#include <psp2/kernel/clib.h>
#define printf sceClibPrintf
#endif

#define EMU_C68K
Expand Down
1 change: 0 additions & 1 deletion pfba/deps/libcross2d/CMakeLists.txt
Expand Up @@ -134,7 +134,6 @@ add_dependencies(${PROJECT_NAME}.sfml ${PROJECT_NAME})
add_executable(${PROJECT_NAME}.psp2 src/main.cpp)
target_compile_options(${PROJECT_NAME}.psp2 PRIVATE ${FLAGS})
target_link_libraries(${PROJECT_NAME}.psp2
psp2shell
cross2d SDL2
SceDisplay_stub SceGxm_stub SceSysmodule_stub
SceCtrl_stub ScePgf_stub SceNetCtl_stub
Expand Down
8 changes: 0 additions & 8 deletions pfba/deps/libcross2d/src/main.cpp
Expand Up @@ -5,11 +5,6 @@
#include "skeleton/renderer.h"
#include "skeleton/input.h"

#ifdef __PSP2_DEBUG__
#include <psp2shell.h>
#define printf psp2shell_print
#endif

#define SCRW 960
#define SCRH 544

Expand All @@ -21,9 +16,6 @@ Input *input;
int main() {

#ifdef __PSP2__
#ifdef __PSP2_DEBUG__
psp2shell_init(3333, 0);
#endif
renderer = (Renderer *) new PSP2Renderer(SCRW, SCRH);
input = (Input *) new SDL2Input();
font_small = renderer->LoadFont("app0:/default-20.pgf", 20); // 20 = pgf font size
Expand Down
4 changes: 2 additions & 2 deletions pfba/deps/libcross2d/src/psp2/psp2_renderer.h
Expand Up @@ -9,8 +9,8 @@
#include "vita2d.h"

#ifdef __PSP2_DEBUG__
#include <psp2shell.h>
#define printf psp2shell_print
#include <psp2/kernel/clib.h>
#define printf sceClibPrintf
#endif

class PSP2Renderer : Renderer {
Expand Down
8 changes: 4 additions & 4 deletions pfba/deps/libcross2d/src/psp2/psp2_texture.cpp
Expand Up @@ -6,10 +6,10 @@
#include "psp2_texture.h"

#ifdef __PSP2_DEBUG__
#include <psp2shell.h>
#define printf psp2shell_print
#else
#define printf

#include <psp2/kernel/clib.h>

#define printf sceClibPrintf
#endif

PSP2Texture::PSP2Texture(const char *path) : Texture(path) {
Expand Down
4 changes: 2 additions & 2 deletions pfba/deps/libcross2d/src/sdl2/sdl2_audio.cpp
Expand Up @@ -7,8 +7,8 @@
#include "sdl2_audio.h"

#ifdef __PSP2_DEBUG__
#include <psp2shell.h>
#define printf psp2shell_print
#include <psp2/kernel/clib.h>
#define printf sceClibPrintf
#endif

static bool use_mutex = false;
Expand Down
3 changes: 0 additions & 3 deletions pfba/main.cpp
Expand Up @@ -55,9 +55,6 @@ int main(int argc, char **argv) {

std::vector<Skin::Button> buttons;
#ifdef __PSP2__
#ifdef __PSP2_DEBUG__
psp2shell_init(3333, 0);
#endif
// set max cpu speed
scePowerSetArmClockFrequency(444);
scePowerSetBusClockFrequency(222);
Expand Down

0 comments on commit 32d3524

Please sign in to comment.