Skip to content

Commit

Permalink
Removed wrong game name when loading bsd files,normalized file ending
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianoDiDio committed Mar 30, 2024
1 parent 0b204cd commit 91b9d96
Show file tree
Hide file tree
Showing 50 changed files with 12,719 additions and 12,721 deletions.
136 changes: 68 additions & 68 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,68 +1,68 @@
name: CMake Build Matrix
on:
push:
branches:
- '**'

jobs:
build:

name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}

defaults:
run:
shell: ${{ matrix.config.shell }}

strategy:
fail-fast: false

matrix:
config:
- {
name: "Windows",
os: windows-latest,
shell: "msys2 {0}",
artifact: "Release-Windows"
}
- {
name: "Ubuntu",
os: ubuntu-latest,
shell: "sh",
artifact: "Release-Linux",
}
steps:
- name: Setup Windows dependencies
if: startsWith(matrix.config.os, 'Windows')
uses: msys2/setup-msys2@v2
with:
install: >-
git
mingw-w64-x86_64-cmake
mingw-w64-x86_64-ninja
mingw-w64-x86_64-gcc
mingw-w64-x86_64-mesa
- name: Setup Ubuntu dependencies
if: startsWith(matrix.config.name, 'Ubuntu')
run: |
sudo apt-get update
sudo apt install libegl1-mesa-dev libglu1-mesa-dev libasound2-dev libpulse-dev ninja-build cmake build-essential -y
- name: Checkout repository
uses: actions/checkout@v3
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Configure
run: |
mkdir Build
cmake \
-B Build \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_PVS_STUDIO_ANALYZER=OFF \
-G Ninja \
- name: Build
run: cmake --build Build --parallel
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.config.artifact }}
path: Build/bin/
name: CMake Build Matrix
on:
push:
branches:
- '**'

jobs:
build:

name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}

defaults:
run:
shell: ${{ matrix.config.shell }}

strategy:
fail-fast: false

matrix:
config:
- {
name: "Windows",
os: windows-latest,
shell: "msys2 {0}",
artifact: "Release-Windows"
}
- {
name: "Ubuntu",
os: ubuntu-latest,
shell: "sh",
artifact: "Release-Linux",
}
steps:
- name: Setup Windows dependencies
if: startsWith(matrix.config.os, 'Windows')
uses: msys2/setup-msys2@v2
with:
install: >-
git
mingw-w64-x86_64-cmake
mingw-w64-x86_64-ninja
mingw-w64-x86_64-gcc
mingw-w64-x86_64-mesa
- name: Setup Ubuntu dependencies
if: startsWith(matrix.config.name, 'Ubuntu')
run: |
sudo apt-get update
sudo apt install libegl1-mesa-dev libglu1-mesa-dev libasound2-dev libpulse-dev ninja-build cmake build-essential -y
- name: Checkout repository
uses: actions/checkout@v3
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Configure
run: |
mkdir Build
cmake \
-B Build \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_PVS_STUDIO_ANALYZER=OFF \
-G Ninja \
- name: Build
run: cmake --build Build --parallel
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.config.artifact }}
path: Build/bin/
50 changes: 25 additions & 25 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
[submodule "libs/glew-cmake"]
path = libs/glew-cmake
url = https://github.com/Perlmint/glew-cmake.git
[submodule "libs/libpng"]
path = libs/libpng
url = https://github.com/glennrp/libpng.git
[submodule "libs/zlib"]
path = libs/zlib
url = https://github.com/madler/zlib
[submodule "libs/SDL"]
path = libs/SDL
url = https://github.com/libsdl-org/SDL
branch = release-2.26.x
[submodule "libs/libsamplerate"]
path = libs/libsamplerate
url = https://github.com/libsndfile/libsamplerate
[submodule "libs/ImGuiFileDialog"]
path = libs/ImGuiFileDialog
url = https://github.com/aiekick/ImGuiFileDialog.git
[submodule "libs/cglm"]
path = libs/cglm
url = https://github.com/recp/cglm
[submodule "libs/cimgui"]
path = libs/cimgui
url = https://github.com/cimgui/cimgui
[submodule "libs/glew-cmake"]
path = libs/glew-cmake
url = https://github.com/Perlmint/glew-cmake.git
[submodule "libs/libpng"]
path = libs/libpng
url = https://github.com/glennrp/libpng.git
[submodule "libs/zlib"]
path = libs/zlib
url = https://github.com/madler/zlib
[submodule "libs/SDL"]
path = libs/SDL
url = https://github.com/libsdl-org/SDL
branch = release-2.26.x
[submodule "libs/libsamplerate"]
path = libs/libsamplerate
url = https://github.com/libsndfile/libsamplerate
[submodule "libs/ImGuiFileDialog"]
path = libs/ImGuiFileDialog
url = https://github.com/aiekick/ImGuiFileDialog.git
[submodule "libs/cglm"]
path = libs/cglm
url = https://github.com/recp/cglm
[submodule "libs/cimgui"]
path = libs/cimgui
url = https://github.com/cimgui/cimgui
66 changes: 33 additions & 33 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
cmake_minimum_required(VERSION 3.16)
include(FetchContent)

project(Jurassic-Park-PSX-File-Viewer)

OPTION(ENABLE_PVS_STUDIO_ANALYZER "Enable PVS studio analyzer." ON)

# On Windows CMAKE_RUNTIME_OUTPUT_DIRECTORY is used to tell CMAKE where
# to put DLLs.
set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/SharedLibraries )
set( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/SharedLibraries )
set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/ )

SET(CMAKE_SKIP_BUILD_RPATH FALSE)
SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
SET(CMAKE_INSTALL_RPATH "$\{ORIGIN\}")

# Common dependencies for every project that requires it...
set(OpenGL_GL_PREFERENCE LEGACY)
find_package(OpenGL REQUIRED)

if( ENABLE_PVS_STUDIO_ANALYZER )
# Make sure that PVS studio is available for every subdirectory...
FetchContent_Declare(
PVS_CMakeModule
GIT_REPOSITORY "https://github.com/viva64/pvs-studio-cmake-module.git"
GIT_TAG "master"
)
FetchContent_MakeAvailable(PVS_CMakeModule)
include("${pvs_cmakemodule_SOURCE_DIR}/PVS-Studio.cmake")
endif()
add_subdirectory(libs)
add_subdirectory(src)
cmake_minimum_required(VERSION 3.16)
include(FetchContent)

project(Jurassic-Park-PSX-File-Viewer)

OPTION(ENABLE_PVS_STUDIO_ANALYZER "Enable PVS studio analyzer." ON)

# On Windows CMAKE_RUNTIME_OUTPUT_DIRECTORY is used to tell CMAKE where
# to put DLLs.
set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/SharedLibraries )
set( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/SharedLibraries )
set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/ )

SET(CMAKE_SKIP_BUILD_RPATH FALSE)
SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
SET(CMAKE_INSTALL_RPATH "$\{ORIGIN\}")

# Common dependencies for every project that requires it...
set(OpenGL_GL_PREFERENCE LEGACY)
find_package(OpenGL REQUIRED)

if( ENABLE_PVS_STUDIO_ANALYZER )
# Make sure that PVS studio is available for every subdirectory...
FetchContent_Declare(
PVS_CMakeModule
GIT_REPOSITORY "https://github.com/viva64/pvs-studio-cmake-module.git"
GIT_TAG "master"
)
FetchContent_MakeAvailable(PVS_CMakeModule)
include("${pvs_cmakemodule_SOURCE_DIR}/PVS-Studio.cmake")
endif()
add_subdirectory(libs)
add_subdirectory(src)
Loading

0 comments on commit 91b9d96

Please sign in to comment.