| 796 |
|
} |
| 797 |
|
|
| 798 |
|
if (!*type) |
| 799 |
< |
DDrStartupMessage("badly formed bsl definition for \"%s\"", name); |
| 799 |
> |
DDrStartupMessage("Daodan: Badly formed bsl definition for \"%s\"", name); |
| 800 |
|
|
| 801 |
|
if (!strcmp(type, "int")) |
| 802 |
|
bsl_type = sl_int32; |
| 808 |
|
bsl_type = sl_bool; |
| 809 |
|
else |
| 810 |
|
{ |
| 811 |
< |
DDrStartupMessage("unknown type in bsl definition for \"%s\"", name); |
| 811 |
> |
DDrStartupMessage("Daodan: Unknown type in bsl definition for \"%s\"", name); |
| 812 |
|
return true; |
| 813 |
|
} |
| 814 |
|
|
| 853 |
|
|
| 854 |
|
void SLrConfig() |
| 855 |
|
{ |
| 856 |
< |
DDrStartupMessage("re-parsing daodan.ini for bsl..."); |
| 856 |
> |
DDrStartupMessage("Daodan: Re-parsing daodan.ini for bsl..."); |
| 857 |
|
inifile_read("daodan.ini", SLrIniCallback); |
| 858 |
< |
DDrStartupMessage("finished parsing"); |
| 858 |
> |
DDrStartupMessage("Daodan: Finished parsing"); |
| 859 |
|
} |
| 860 |
|
|
| 861 |
|
void ONICALL SLrDaodan_Register_ReturnType(char* name, char* desc, char* argfmt, sl_type type, sl_func callback) { |
| 866 |
|
errornum = SLrScript_Command_Register_ReturnType(name, desc, argfmt2, type, callback); |
| 867 |
|
if(errornum) |
| 868 |
|
{ |
| 869 |
< |
DDrStartupMessage("Registration of script command %s failed with error %i", name, errornum); |
| 869 |
> |
DDrStartupMessage("Daodan: Registration of script command %s failed with error %i", name, errornum); |
| 870 |
|
} |
| 871 |
|
} else { |
| 872 |
< |
DDrStartupMessage("Registration of script command %s failed because of a too long argfmt", name); |
| 872 |
> |
DDrStartupMessage("Daodan: Registration of script command %s failed because of a too long argfmt", name); |
| 873 |
|
} |
| 874 |
|
} |
| 875 |
|
|