Switched to DolceSDK

This commit is contained in:
Furkan Mudanyali 2020-09-23 02:32:18 +03:00 committed by GitHub
parent 16e986243c
commit a87abaf976
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -1,15 +1,15 @@
cmake_minimum_required(VERSION 2.8) cmake_minimum_required(VERSION 2.8)
if(NOT DEFINED CMAKE_TOOLCHAIN_FILE) if(NOT DEFINED CMAKE_TOOLCHAIN_FILE)
if(DEFINED ENV{VITASDK}) if(DEFINED ENV{DOLCESDK})
set(CMAKE_TOOLCHAIN_FILE "$ENV{VITASDK}/share/vita.toolchain.cmake" CACHE PATH "toolchain file") set(CMAKE_TOOLCHAIN_FILE "$ENV{DOLCESDK}/share/dolce.toolchain.cmake" CACHE PATH "toolchain file")
else() 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()
endif() endif()
project(BetterTrackPlug) 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_C_FLAGS "${CMAKE_C_FLAGS} -Wl,-q -Wall -O3 -std=gnu99")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -nostdlib") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -nostdlib")
@ -36,7 +36,7 @@ target_link_libraries(${PROJECT_NAME}
gcc gcc
-nostdlib -nostdlib
) )
vita_create_self(${PROJECT_NAME}.skprx ${PROJECT_NAME} dolce_create_self(${PROJECT_NAME}.skprx ${PROJECT_NAME}
UNSAFE UNSAFE
CONFIG ${CMAKE_SOURCE_DIR}/BetterTrackPlug.yml CONFIG ${CMAKE_SOURCE_DIR}/BetterTrackPlug.yml
) )

View File

@ -4,7 +4,7 @@
#include <psp2kern/kernel/sysmem.h> #include <psp2kern/kernel/sysmem.h>
#include <string.h> #include <string.h>
#include <stdarg.h> #include <stdarg.h>
#include <vitasdkkern.h> #include <dolcesdkkern.h>
#include <stdlib.h> #include <stdlib.h>
#include <psp2/appmgr.h> #include <psp2/appmgr.h>
@ -243,4 +243,4 @@ int module_start(SceSize args, void *argp) {
int module_stop(SceSize args, void *argp) { int module_stop(SceSize args, void *argp) {
taiHookReleaseForKernel(hooks[0], event_handler_ref); taiHookReleaseForKernel(hooks[0], event_handler_ref);
return SCE_KERNEL_STOP_SUCCESS; return SCE_KERNEL_STOP_SUCCESS;
} }