Can't use .. in file paths?
Monkey Targets Forums/Android/Can't use .. in file paths?
| ||
Hi all, it seems like I can't use a path like this when loading resources: "../menus/slider.png" It works fine on PC/Mac and iOS but fails when running on Android. So anyway I changed everything to avoid using ".." Is that the case or am I being dumb? Thanks. |
| ||
maybe try this: "monkey://data/menus/slider.png" |
| ||
Or justimage := LoadImage("menus/slider.png") |
| ||
I should explain that the function I was calling with that path was one of my own and it already adds "graphics/" to the start of the path (so the final path ends up as "graphics/../menus/slider.png". Sometimes I want to go up a level and into another folder which is why I use "../" It's just a shame that you can use that, or maybe there's an equivalent thing? |