本文整理汇总了C++中resources_register_string函数的典型用法代码示例。如果您正苦于以下问题:C++ resources_register_string函数的具体用法?C++ resources_register_string怎么用?C++ resources_register_string使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了resources_register_string函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
示例2: romset_resources_init
int romset_resources_init(void)
{
if (resources_register_string(resources_string) < 0)
return -1;
return resources_register_int(resources_int);
}
示例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);
}
示例4: expert_resources_init
int expert_resources_init(void)
{
if (resources_register_string(resources_string) < 0) {
return -1;
}
return resources_register_int(resources_int);
}
示例5: rs232drv_resources_init
int rs232drv_resources_init(void)
{
if (resources_register_string(resources_string) < 0)
return -1;
return rs232_resources_init();
}
示例6: plus60k_resources_init
int plus60k_resources_init(void)
{
if (resources_register_string(resources_string) < 0)
return -1;
return resources_register_int(resources_int);
}
示例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);
}
示例8: iec128dcr_resources_init
int iec128dcr_resources_init(void)
{
if (resources_register_string(resources_string) < 0)
return -1;
return resources_register_int(resources_int);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例13: functionrom_resources_init
int functionrom_resources_init(void)
{
if (resources_register_string(resources_string) < 0)
return -1;
return resources_register_int(resources_int);
}
示例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);
}
示例15: fsdevice_resources_init
int fsdevice_resources_init(void)
{
if (resources_register_string(resources_string) < 0) {
return -1;
}
return resources_register_int(resources_int);
}