Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
crudelios committed Apr 12, 2024
1 parent 4fb438d commit e5565c8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .ci_scripts/setup_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ case "$BUILD_TARGET" in
# Note: Using a tagged version of the container to make sure that it's not updated unexpectedly
# You can update the tag by obtaining a recent one from here: https://hub.docker.com/r/gnuton/vitasdk-docker/tags
# Make sure that it compiles correctly and runs on a Vita prior to pushing the change
docker run -d --name vitasdk --workdir /build/git -v "${PWD}:/build/git" gnuton/vitasdk-docker:20230823 tail -f /dev/null
docker run -d --name vitasdk --workdir /build/git -v "${PWD}:/build/git" gnuton/vitasdk-docker:20240412 tail -f /dev/null
;;
"switch")
# You can obtain a recent devkitA64 image from https://hub.docker.com/repository/docker/devkitpro/devkita64/general
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.1...3.27.0)
cmake_minimum_required(VERSION 3.1)
include(CMakeDependentOption)

set(TARGET_PLATFORM "default" CACHE STRING "Platform to cross-compile for. Options: vita switch android emscripten. Leave blank for no cross compilation")
Expand Down
8 changes: 0 additions & 8 deletions src/platform/file_manager_cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,6 @@ const dir_info *platform_file_manager_cache_get_dir_info(const char *dir)
// This is effectively a hack, and definitely not full-proof, but the performance gains are well worth it
if (!*file_item->extension) {
static char full_name[FILE_NAME_MAX];
if (!dir_name_offset) {
strncpy(full_name, info->name, FILE_NAME_MAX);
dir_name_offset = strlen(info->name);
if (full_name[dir_name_offset - 1] != '/') {
full_name[dir_name_offset++] = '/';
full_name[dir_name_offset] = 0;
}
}
strncpy(full_name + dir_name_offset, name, FILE_NAME_MAX - 1 - dir_name_offset);
DIR *file_d = opendir(full_name);
if (file_d) {
Expand Down
2 changes: 1 addition & 1 deletion src/platform/julius.c
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ static int pre_init(const char *custom_data_dir)
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
"Error",
"Julius requires the original files from Caesar 3.\n\n"
"Please insert the proper directory or copy the files to the selected directory.",
"Please enter the proper directory or copy the files to the selected directory.",
NULL);
return 0;
}
Expand Down

0 comments on commit e5565c8

Please sign in to comment.