mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-30 08:02:22 +00:00
Fix CXX_BUILD
This commit is contained in:
parent
15c80a6e73
commit
4b41ea60a0
@ -25,6 +25,10 @@
|
||||
#include "video_context_driver.h"
|
||||
#include <gfx/math/matrix_4x4.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct shader_backend
|
||||
{
|
||||
bool (*init)(void *data, const char *path);
|
||||
@ -110,4 +114,8 @@ const shader_backend_t *shader_ctx_init_first(void);
|
||||
|
||||
struct video_shader *video_shader_driver_get_current_shader(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -41,6 +41,9 @@
|
||||
#include <retro_stat.h>
|
||||
#include <retro_miscellaneous.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* path_mkdir:
|
||||
@ -640,3 +643,7 @@ void fill_short_pathname_representation(char* out_rep,
|
||||
else
|
||||
strlcpy(out_rep, path_short, size);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@ -18,14 +18,6 @@
|
||||
|
||||
#include "libretro.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int net_http_get(const char **result, size_t *size, const char *url, retro_time_t *timeout);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
11
retroarch.c
11
retroarch.c
@ -1484,6 +1484,7 @@ void rarch_main_deinit(void)
|
||||
**/
|
||||
void rarch_playlist_load_content(void *data, unsigned idx)
|
||||
{
|
||||
unsigned i;
|
||||
const char *path = NULL;
|
||||
const char *core_path = NULL;
|
||||
char *path_check = NULL;
|
||||
@ -1500,19 +1501,15 @@ void rarch_playlist_load_content(void *data, unsigned idx)
|
||||
idx, &path, NULL, &core_path, NULL, NULL, NULL);
|
||||
|
||||
path_tolower = strdup(path);
|
||||
for (int i = 0; i < strlen(path_tolower); ++i)
|
||||
{
|
||||
|
||||
for (i = 0; i < strlen(path_tolower); ++i)
|
||||
path_tolower[i] = tolower(path_tolower[i]);
|
||||
}
|
||||
|
||||
|
||||
if (strstr(path_tolower, ".zip"))
|
||||
{
|
||||
strstr(path_tolower, ".zip")[4] = '\0';
|
||||
}
|
||||
else if (strstr(path_tolower, ".7z"))
|
||||
{
|
||||
strstr(path_tolower, ".7z")[3] = '\0';
|
||||
}
|
||||
|
||||
path_check = (char *)calloc(strlen(path_tolower) + 1, sizeof(char));
|
||||
strncpy(path_check, path, strlen(path_tolower));
|
||||
|
Loading…
x
Reference in New Issue
Block a user