mirror of
https://github.com/libretro/RetroArch
synced 2025-03-31 19:21:06 +00:00
Rename more 'roms' references
This commit is contained in:
parent
dfeab30f26
commit
fbb3583337
@ -114,7 +114,7 @@ void fill_pathname_noext(char *out_path, const char *in_path, const char *replac
|
|||||||
// Basename of in_basename is the string after the last '/' or '\\', i.e the filename without directories.
|
// Basename of in_basename is the string after the last '/' or '\\', i.e the filename without directories.
|
||||||
// If in_basename has no '/' or '\\', the whole 'in_basename' will be used.
|
// If in_basename has no '/' or '\\', the whole 'in_basename' will be used.
|
||||||
// 'size' is buffer size of 'in_dir'.
|
// 'size' is buffer size of 'in_dir'.
|
||||||
// E.g..: in_dir = "/tmp/some_dir", in_basename = "/some_roms/foo.c", replace = ".asm" =>
|
// E.g..: in_dir = "/tmp/some_dir", in_basename = "/some_content/foo.c", replace = ".asm" =>
|
||||||
// in_dir = "/tmp/some_dir/foo.c.asm"
|
// in_dir = "/tmp/some_dir/foo.c.asm"
|
||||||
void fill_pathname_dir(char *in_dir, const char *in_basename, const char *replace, size_t size);
|
void fill_pathname_dir(char *in_dir, const char *in_basename, const char *replace, size_t size);
|
||||||
|
|
||||||
|
@ -109,8 +109,8 @@ void retro_set_environment(retro_environment_t cb)
|
|||||||
|
|
||||||
cb(RETRO_ENVIRONMENT_SET_VARIABLES, (void*)vars);
|
cb(RETRO_ENVIRONMENT_SET_VARIABLES, (void*)vars);
|
||||||
|
|
||||||
bool no_rom = true;
|
bool no_content = true;
|
||||||
cb(RETRO_ENVIRONMENT_SET_SUPPORT_NO_GAME, &no_rom);
|
cb(RETRO_ENVIRONMENT_SET_SUPPORT_NO_GAME, &no_content);
|
||||||
|
|
||||||
if (!cb(RETRO_ENVIRONMENT_GET_LOG_INTERFACE, &logging))
|
if (!cb(RETRO_ENVIRONMENT_GET_LOG_INTERFACE, &logging))
|
||||||
logging.log = fallback_log;
|
logging.log = fallback_log;
|
||||||
@ -118,13 +118,13 @@ void retro_set_environment(retro_environment_t cb)
|
|||||||
static const struct retro_subsystem_memory_info mem1[] = {{ "ram1", 0x400 }, { "ram2", 0x401 }};
|
static const struct retro_subsystem_memory_info mem1[] = {{ "ram1", 0x400 }, { "ram2", 0x401 }};
|
||||||
static const struct retro_subsystem_memory_info mem2[] = {{ "ram3", 0x402 }, { "ram4", 0x403 }};
|
static const struct retro_subsystem_memory_info mem2[] = {{ "ram3", 0x402 }, { "ram4", 0x403 }};
|
||||||
|
|
||||||
static const struct retro_subsystem_rom_info roms[] = {
|
static const struct retro_subsystem_rom_info content[] = {
|
||||||
{ "Test Rom #1", "bin", false, false, true, mem1, 2, },
|
{ "Test Rom #1", "bin", false, false, true, mem1, 2, },
|
||||||
{ "Test Rom #2", "bin", false, false, true, mem2, 2, },
|
{ "Test Rom #2", "bin", false, false, true, mem2, 2, },
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct retro_subsystem_info types[] = {
|
static const struct retro_subsystem_info types[] = {
|
||||||
{ "Foo", "foo", roms, 2, 0x200, },
|
{ "Foo", "foo", content, 2, 0x200, },
|
||||||
{ NULL },
|
{ NULL },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -14,8 +14,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// Test module to check re-entrancy of libretro implementations.
|
// Test module to check re-entrancy of libretro implementations.
|
||||||
// Reruns RetroArch main loop with all roms defined on command-line
|
// Reruns RetroArch main loop with all content defined on command-line
|
||||||
// to check if libretro can load multiple roms after each other.
|
// to check if libretro can load multiple content after each other.
|
||||||
|
|
||||||
#include "../getopt_rarch.h"
|
#include "../getopt_rarch.h"
|
||||||
#include "../general.h"
|
#include "../general.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user