Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
use library for resolving nids
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Strelsky committed Sep 17, 2023
1 parent e7dddd0 commit 9bba4c0
Show file tree
Hide file tree
Showing 26 changed files with 153 additions and 1,111 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ CMakeCache.txt
aerolib.csv
stubber/main.exe
stubber/out/
assets/
homebrew/
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "libNidResolver"]
path = libNidResolver
url = https://github.com/astrelsky/libNidResolver.git
12 changes: 12 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,15 @@ add_subdirectory(daemon)
add_subdirectory(daemon_shim)
add_subdirectory(libhijacker)
add_subdirectory(spawner)
add_subdirectory(homebrew)

# this was too complicated
#include(FetchContent)
#FetchContent_Declare(
# NidResolver
# GIT_REPOSITORY https://github.com/astrelsky/libNidResolver.git
# OVERRIDE_FIND_PACKAGE
#)
#FetchContent_MakeAvailable(NidResolver)

add_subdirectory(libNidResolver)
103 changes: 0 additions & 103 deletions CMakePresets.json

This file was deleted.

2 changes: 1 addition & 1 deletion daemon/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ set(CMAKE_C_FLAGS "--target=x86_64-freebsd-pc-elf -DPPR -DPS5 -DPS5_FW_VERSION=$
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112 -D__BSD_VISIBLE=1 -D__XSI_VISIBLE=500")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-builtin -nostdlib -Wall") # -nostartfiles
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -fPIE -march=znver2 -Wall -Werror")
set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -O3 -pedantic -pedantic-errors")
set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -DDEBUG -gfull -gdwarf-2 -O0 -pedantic -pedantic-errors")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0")

target_sources(${PROJECT_NAME} PRIVATE ${SrcFiles})
Expand Down
2 changes: 1 addition & 1 deletion daemon/source/commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void CommandServer::run(TcpSocket &sock) {
}

static void __attribute__((constructor)) initUserService() {
static constexpr auto DEFAULT_PRIORITY = 256;
static constexpr auto DEFAULT_PRIORITY = 100;
int priority = DEFAULT_PRIORITY;
sceUserServiceInitialize(&priority);
}
Expand Down
Loading

0 comments on commit 9bba4c0

Please sign in to comment.