Skip to content
This repository has been archived by the owner on Jul 17, 2022. It is now read-only.

Commit

Permalink
Switched to DolceSDK
Browse files Browse the repository at this point in the history
  • Loading branch information
FMudanyali committed Sep 22, 2020
1 parent 16e9862 commit a87abaf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/CMakeLists.txt
@@ -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")
Expand All @@ -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
)
Expand Down
4 changes: 2 additions & 2 deletions src/main.c
Expand Up @@ -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>

Expand Down Expand Up @@ -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;
}
}

0 comments on commit a87abaf

Please sign in to comment.