本文整理汇总了C++中resources_register_string函数的典型用法代码示例。如果您正苦于以下问题:C++ resources_register_string函数的具体用法?C++ resources_register_string怎么用?C++ resources_register_string使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了resources_register_string函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: cbm2_resources_init
int cbm2_resources_init(void)
{
if (resources_register_string(resources_string) < 0) {
return -1;
}
if (resources_register_int(resources_int) < 0) {
return -1;
}
if (resources_register_string(cbm5x0_resources_string) < 0) {
return -1;
}
return resources_register_int(cbm5x0_resources_int);
}
开发者ID:OpenEmu,项目名称:VICE-Core,代码行数:15,代码来源:cbm5x0-resources.c
示例2: romset_resources_init
int romset_resources_init(void)
{
if (resources_register_string(resources_string) < 0)
return -1;
return resources_register_int(resources_int);
}
开发者ID:SMTDDR,项目名称:droidsound,代码行数:7,代码来源:romset.c
示例3: flash_trap_resources_init
int flash_trap_resources_init(void)
{
if (resources_register_string(resources_string) < 0)
return -1;
return resources_register_int(resources_int);
}
开发者ID:BigBoss21X,项目名称:vice-emu,代码行数:7,代码来源:flash-trap.c
示例4: expert_resources_init
int expert_resources_init(void)
{
if (resources_register_string(resources_string) < 0) {
return -1;
}
return resources_register_int(resources_int);
}
开发者ID:SMTDDR,项目名称:droidsound,代码行数:7,代码来源:expert.c
示例5: rs232drv_resources_init
int rs232drv_resources_init(void)
{
if (resources_register_string(resources_string) < 0)
return -1;
return rs232_resources_init();
}
开发者ID:BigBoss21X,项目名称:vice-emu,代码行数:7,代码来源:rs232drv.c
示例6: plus60k_resources_init
int plus60k_resources_init(void)
{
if (resources_register_string(resources_string) < 0)
return -1;
return resources_register_int(resources_int);
}
开发者ID:twinaphex,项目名称:vice-next,代码行数:7,代码来源:plus60k.c
示例7: c64_256k_resources_init
int c64_256k_resources_init(void)
{
if (resources_register_string(resources_string) < 0)
return -1;
return resources_register_int(resources_int);
}
开发者ID:martinpiper,项目名称:VICE,代码行数:7,代码来源:c64_256k.c
示例8: iec128dcr_resources_init
int iec128dcr_resources_init(void)
{
if (resources_register_string(resources_string) < 0)
return -1;
return resources_register_int(resources_int);
}
开发者ID:martinpiper,项目名称:VICE,代码行数:7,代码来源:iec128dcr-resources.c
示例9: monitor_network_resources_init
/*! \brief initialize the network monitor resources
\return
0 on success, else -1.
\remark
Registers the string and the integer resources
*/
int monitor_network_resources_init(void)
{
if (resources_register_string(resources_string) < 0)
return -1;
return resources_register_int(resources_int);
}
开发者ID:twinaphex,项目名称:vice-next,代码行数:14,代码来源:monitor_network.c
示例10: quicktimedrv_resources_init
static int quicktimedrv_resources_init(void)
{
if (resources_register_string(resources_string) < 0)
return -1;
return resources_register_int(resources_int);
}
开发者ID:BigBoss21X,项目名称:vice-emu,代码行数:7,代码来源:quicktimedrv.c
示例11: output_text_init_resources
int output_text_init_resources(void)
{
output_select_t output_select;
output_select.output_name = "text";
output_select.output_open = output_text_open;
output_select.output_close = output_text_close;
output_select.output_putc = output_text_putc;
output_select.output_getc = output_text_getc;
output_select.output_flush = output_text_flush;
output_select_register(&output_select);
if (resources_register_string(resources_string) < 0) {
return -1;
}
if (machine_class != VICE_MACHINE_C64DTV
&& machine_class != VICE_MACHINE_PLUS4) {
if (resources_register_int(resources_int_userport) < 0) {
return -1;
}
}
return resources_register_int(resources_int);
}
开发者ID:Rakashazi,项目名称:emu-ex-plus-alpha,代码行数:26,代码来源:output-text.c
示例12: c64exp_resources_init
int c64exp_resources_init(void)
{
unsigned int dnr;
drive_t *drive;
for (dnr = 0; dnr < DRIVE_NUM; dnr++) {
drive = drive_context[dnr]->drive;
res_drive[0].name = lib_msprintf("Drive%iParallelCable", dnr + 8);
res_drive[0].value_ptr = &(drive->parallel_cable);
res_drive[0].param = uint_to_void_ptr(dnr);
res_drive[1].name = lib_msprintf("Drive%iProfDOS", dnr + 8);
res_drive[1].value_ptr = &(drive->profdos);
res_drive[1].param = uint_to_void_ptr(dnr);
res_drive[2].name = lib_msprintf("Drive%iSuperCard", dnr + 8);
res_drive[2].value_ptr = &(drive->supercard);
res_drive[2].param = uint_to_void_ptr(dnr);
if (resources_register_int(res_drive) < 0) {
return -1;
}
lib_free((char *)(res_drive[0].name));
lib_free((char *)(res_drive[1].name));
lib_free((char *)(res_drive[2].name));
}
return resources_register_string(resources_string);
}
开发者ID:AreaScout,项目名称:vice,代码行数:29,代码来源:c64exp-resources.c
示例13: functionrom_resources_init
int functionrom_resources_init(void)
{
if (resources_register_string(resources_string) < 0)
return -1;
return resources_register_int(resources_int);
}
开发者ID:martinpiper,项目名称:VICE,代码行数:7,代码来源:functionrom.c
示例14: joystick_arch_init_resources
int joystick_arch_init_resources(void)
{
int ok = resources_register_string(resources_string);
if (ok < 0) {
return ok;
}
return resources_register_int(resources_int);
}
开发者ID:bobsummerwill,项目名称:VICE,代码行数:8,代码来源:joy.c
示例15: fsdevice_resources_init
int fsdevice_resources_init(void)
{
if (resources_register_string(resources_string) < 0) {
return -1;
}
return resources_register_int(resources_int);
}
开发者ID:AreaScout,项目名称:vice,代码行数:8,代码来源:fsdevice-resources.c
示例16: ffmpegdrv_resources_init
static int ffmpegdrv_resources_init(void)
{
if (resources_register_string(resources_string) < 0) {
return -1;
}
return resources_register_int(resources_int);
}
开发者ID:AreaScout,项目名称:vice,代码行数:8,代码来源:ffmpegdrv.c
示例17: plus256k_resources_init
int plus256k_resources_init(void)
{
if (resources_register_string(resources_string) < 0) {
return -1;
}
return resources_register_int(resources_int);
}
开发者ID:QaDeS,项目名称:droidsound,代码行数:8,代码来源:plus256k.c
示例18: autostart_resources_init
/*! \brief initialize the resources
\return
0 on success, else -1.
\remark
Registers the integer resources
*/
int autostart_resources_init(void)
{
resources_string[0].factory_value = archdep_default_autostart_disk_image_file_name();
if (resources_register_string(resources_string) < 0)
return -1;
return resources_register_int(resources_int);
}
开发者ID:SMTDDR,项目名称:droidsound,代码行数:16,代码来源:autostart.c
示例19: ui_resources_init
int ui_resources_init(void)
{
translate_resources_init();
if (resources_register_string(resources_string) < 0)
return -1;
return resources_register_int(resources_int);
}
开发者ID:martinpiper,项目名称:VICE,代码行数:9,代码来源:uiapi.c
示例20: fliplist_resources_init
int fliplist_resources_init(void)
{
resources_string[0].factory_value = archdep_default_fliplist_file_name();
if (resources_register_string(resources_string) < 0)
return -1;
return 0;
}
开发者ID:bobsummerwill,项目名称:VICE,代码行数:9,代码来源:fliplist.c
注:本文中的resources_register_string函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论