AM2R-Community-Developers / AM2R-Community-Updates

Source code for AM2R 1.5.2+, free of copyrighted assets and trademarks.
https://www.reddit.com/r/AM2R/
Other
138 stars 27 forks source link

External title/area files are not being read / used on Linux #69

Closed Miepee closed 3 years ago

Miepee commented 3 years ago

Describe the bug Having external title screen (either title or BG) or area files will result in not being used on Linux.

To Reproduce Place an external title screen according to readme.

Expected behavior The file isn't loaded.

Platform (please complete the following information):

Game Version: 1.5.2

Explanation on why this doesn't work:

if (directory_exists(program_directory + lin + "/lang/titles")) {
    ...
}

directory_exists according to this documentation post does only work for the save file location.

directory_create (and the other directory functions) will only work in the save area.

The fact that this works on Windows at all is weird, because according to their documentation, it shouldn't. Thanks for @lassiterm for finding the code for that, confirming it only affects these three locations and sending me the link to the documentation, because I was too blind when I first went through the code. Thus palette loading from #42 really was just User error, as previously established already.