Magic tools: Inline->static for android, corrected paths to avoid double slash which makes SDL2 not loading the stuff from assets.
Thoose changes were already in the SDL2 and android versions, they were reverted somehow...
This commit is contained in:
parent
f08982ad1f
commit
f836cc775a
47 changed files with 144 additions and 124 deletions
|
|
@ -94,7 +94,7 @@ int distortion_init(magic_api * api)
|
|||
{
|
||||
char fname[1024];
|
||||
|
||||
snprintf(fname, sizeof(fname), "%s/sounds/magic/distortion.ogg", api->data_directory);
|
||||
snprintf(fname, sizeof(fname), "%ssounds/magic/distortion.ogg", api->data_directory);
|
||||
|
||||
// Try to load the file!
|
||||
|
||||
|
|
@ -118,7 +118,7 @@ SDL_Surface *distortion_get_icon(magic_api * api, int which ATTRIBUTE_UNUSED)
|
|||
{
|
||||
char fname[1024];
|
||||
|
||||
snprintf(fname, sizeof(fname), "%s/images/magic/distortion.png", api->data_directory);
|
||||
snprintf(fname, sizeof(fname), "%simages/magic/distortion.png", api->data_directory);
|
||||
|
||||
|
||||
// Try to load the image, and return the results to Tux Paint:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue