Quote:
Originally Posted by HamletEagle
1.It looks like this plugin is not working. g_bgm_path array is filled from load_bgm_files which is called in plugin_cfg.
You precache inside plugin_precache, which happens BEFORE plugin_cfg.
The result is you are not preaching anything, because during plugin_precache g_bgm_path array is empty.
2.Please use fopen/fgets(the new file natives) instead of read_file.
3.Could you use a dynamic array instead of a fixed array so there is no limit to how many songs can be added?
Note that this changes are required if you want this to remain approved.
|
confirm.
1. Is there any problem with the recognition of the execution order?
plugin_init => plugin_precache => plugin_cfg
2. roger that.
3. Currently working.
__________________