Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
cmake_minimum_required(VERSION 3.20)

file(GLOB_RECURSE PSYCROSS_SRCS_C
"*.c"
"*.c" "*.C"
)

file(GLOB_RECURSE PSYCROSS_SRCS_CPP
"*.cpp"
)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-narrowing")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-narrowing")

set_source_files_properties( ${PSYCROSS_SRCS_C} PROPERTIES LANGUAGE C)
set_source_files_properties( ${PSYCROSS_SRCS_CPP} PROPERTIES LANGUAGE CXX)
#set_source_files_properties( "src/gte/PsyX_GTE.cpp" PROPERTIES LANGUAGE C)
Expand All @@ -18,6 +23,6 @@ find_package(SDL2 REQUIRED)
target_link_libraries(psycross_static ${SDL2_LIBRARIES})
target_include_directories(psycross_static PRIVATE ${SDL2_INCLUDE_DIRS})

find_package(OPENAL REQUIRED)
find_package(OpenAL REQUIRED)
target_link_libraries(psycross_static OpenAL)
target_include_directories(psycross_static PRIVATE ${OpenAL_BINARY_DIR} ${OpenAL_SOURCE_DIR}/include)
2 changes: 1 addition & 1 deletion include/psx/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ struct EvCB {
};

//#if !defined(D3D9)
#if 0///@FIXME Really not defined D3D9 :/
#if __GNUC__///@FIXME Really not defined D3D9 :/
struct EXEC {
unsigned int pc0;
unsigned int gp0;
Expand Down
4 changes: 3 additions & 1 deletion src/PsyX_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "PsyX/PsyX_render.h"

#ifdef _WIN32
#include <windows.h>
#include <pla.h>
#endif // _WIN32

Expand Down Expand Up @@ -269,7 +270,8 @@ static void PsyX_Sys_InitialiseInput()
}

#ifdef __GNUC__
#define _stricmp(s1, s2) strcasecmp(s1, s2)
// should be strcasecmp, but this one never existed in C's std, and all the usage-cases don't seem to fail on Linux/Mingw.
#define _stricmp(s1, s2) strcmp(s1, s2)
#endif

// Keyboard mapping lookup
Expand Down
2 changes: 1 addition & 1 deletion src/psx/LIBGPU.C
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ void CatPrim(void* p0, void* p1)
catPrim(p0, p1);
}

u_short LoadTPage(u_int* pix, int tp, int abr, int x, int y, int w, int h)
u_short LoadTPage(u_long* pix, int tp, int abr, int x, int y, int w, int h)
{
RECT16 imageArea;
imageArea.x = x;
Expand Down
2 changes: 1 addition & 1 deletion src/psx/LIBGTE.C
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ void RotTransSV(SVECTOR* v0, SVECTOR* v1, long* flag)
gte_stflg(flag);
}

int RotTransPers(SVECTOR* v0, int* sxy, long* p, long* flag)
int RotTransPers(SVECTOR* v0, long* sxy, long* p, long* flag)
{
int sz;
gte_RotTransPers(v0, sxy, p, flag, &sz);
Expand Down