Switched to DolceSDK
This commit is contained in:
parent
16e986243c
commit
a87abaf976
@ -1,15 +1,15 @@
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
if(NOT DEFINED CMAKE_TOOLCHAIN_FILE)
|
||||
if(DEFINED ENV{VITASDK})
|
||||
set(CMAKE_TOOLCHAIN_FILE "$ENV{VITASDK}/share/vita.toolchain.cmake" CACHE PATH "toolchain file")
|
||||
if(DEFINED ENV{DOLCESDK})
|
||||
set(CMAKE_TOOLCHAIN_FILE "$ENV{DOLCESDK}/share/dolce.toolchain.cmake" CACHE PATH "toolchain file")
|
||||
else()
|
||||
message(FATAL_ERROR "Please define VITASDK to point to your SDK path!")
|
||||
message(FATAL_ERROR "Please define DOLCESDK to point to your SDK path!")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
project(BetterTrackPlug)
|
||||
include("$ENV{VITASDK}/share/vita.cmake" REQUIRED)
|
||||
include("$ENV{DOLCESDK}/share/dolce.cmake" REQUIRED)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wl,-q -Wall -O3 -std=gnu99")
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -nostdlib")
|
||||
@ -36,7 +36,7 @@ target_link_libraries(${PROJECT_NAME}
|
||||
gcc
|
||||
-nostdlib
|
||||
)
|
||||
vita_create_self(${PROJECT_NAME}.skprx ${PROJECT_NAME}
|
||||
dolce_create_self(${PROJECT_NAME}.skprx ${PROJECT_NAME}
|
||||
UNSAFE
|
||||
CONFIG ${CMAKE_SOURCE_DIR}/BetterTrackPlug.yml
|
||||
)
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include <psp2kern/kernel/sysmem.h>
|
||||
#include <string.h>
|
||||
#include <stdarg.h>
|
||||
#include <vitasdkkern.h>
|
||||
#include <dolcesdkkern.h>
|
||||
#include <stdlib.h>
|
||||
#include <psp2/appmgr.h>
|
||||
|
||||
@ -243,4 +243,4 @@ int module_start(SceSize args, void *argp) {
|
||||
int module_stop(SceSize args, void *argp) {
|
||||
taiHookReleaseForKernel(hooks[0], event_handler_ref);
|
||||
return SCE_KERNEL_STOP_SUCCESS;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user