Fixed crash at the end of DS sound playback

* revert to the previous implementation.

Made sure sfall only loads a localized resource file with valid name.
Some code edits.
This commit is contained in:
NovaRain
2021-10-05 13:36:58 +08:00
parent 5df3d7230f
commit c19137bd1a
6 changed files with 66 additions and 30 deletions
@@ -1046,6 +1046,7 @@ sfall_funcX metarule functions
- Overrides the name of the script object that was set from **scrname.msg**
- The changed name will be reset each time the player leaves the map or reloads the game
- Passing an empty string ("") to the `name` argument or omitting it will allow the game to get the name for the object from pro_*.msg files
- The function can override the name only once for the same object until reset
- __NOTE:__ this function is intended for use in normal game scripts