aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author浅倉麗子2020-08-24 14:40:50 -0400
committer浅倉麗子2020-08-24 14:40:50 -0400
commit85999dcb488f7c6b047d6240929a59bb7ad1fabf (patch)
treed106c01fb021fb05cc7701fd6f12c840991391c6
parentBuild with latest psp2dbg (diff)
downloadsharpscale-85999dcb488f7c6b047d6240929a59bb7ad1fabf.tar.gz
Remove libgcc and memset
-rw-r--r--CMakeLists.txt5
-rw-r--r--config-app/CMakeLists.txt5
-rw-r--r--config-app/main.c13
3 files changed, 11 insertions, 12 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b44aacf..edabc52 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -65,9 +65,8 @@ add_executable("${ELF}"
)
target_link_libraries("${ELF}"
- m
-
psp2dbgForKernel
+
taihenForKernel_stub
taihenModuleUtils_stub
@@ -77,6 +76,8 @@ target_link_libraries("${ELF}"
SceSysclibForDriver_stub
SceSysmemForDriver_stub
SceThreadmgrForDriver_stub
+
+ m
)
target_compile_definitions("${ELF}" PRIVATE
diff --git a/config-app/CMakeLists.txt b/config-app/CMakeLists.txt
index e5355ee..40c7fe8 100644
--- a/config-app/CMakeLists.txt
+++ b/config-app/CMakeLists.txt
@@ -33,9 +33,6 @@ target_link_libraries("${ELF}"
vita2d_sys
psp2dbg
- m
- gcc
-
Sharpscale_stub
SceAppMgr_stub
SceCtrl_stub
@@ -48,6 +45,8 @@ target_link_libraries("${ELF}"
SceProcessmgr_stub
SceSysmem_stub
SceSysmodule_stub
+
+ m
)
target_compile_definitions("${ELF}" PRIVATE
diff --git a/config-app/main.c b/config-app/main.c
index edf9890..ee535ce 100644
--- a/config-app/main.c
+++ b/config-app/main.c
@@ -29,10 +29,6 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
#include "common.h"
#include "sharpscale.h"
-void *memset(void *dest, int ch, size_t count) {
- return sceClibMemset(dest, ch, count);
-}
-
#define CLIB_HEAP_SIZE SCE_KERNEL_256KiB
#define BG_COLOUR 0xFFDFDFDF
@@ -54,7 +50,8 @@ void _start(UNUSED int args, UNUSED void *argp) {
// Show application memory budget information
- SceAppMgrBudgetInfo info = {0};
+ SceAppMgrBudgetInfo info;
+ sceClibMemset(&info, 0x00, sizeof(info));
info.size = sizeof(info);
if (0 == sceAppMgrGetBudgetInfo(&info)) {
SCE_DBG_LOG_INFO("Free Main: %d KB\n", info.freeMain / 1024);
@@ -123,8 +120,10 @@ void _start(UNUSED int args, UNUSED void *argp) {
}
int ui_row = 0;
- SceCtrlData last_ctrl = {0};
- SharpscaleConfig config = {0};
+ SceCtrlData last_ctrl;
+ sceClibMemset(&last_ctrl, 0x00, sizeof(last_ctrl));
+ SharpscaleConfig config;
+ sceClibMemset(&config, 0x00, sizeof(config));
// Stubs have ARM instructions
uint32_t *opcode = (uint32_t*)SharpscaleGetConfig;