Render96 / Render96ex

Fork of https://github.com/sm64-port/sm64-port with additional features.
239 stars 43 forks source link

Language files do not load #45

Open sofakng opened 2 years ago

sofakng commented 2 years ago

Describe the bug Languages fail to load with an error "Loading File: No language files found, aborting."

To Reproduce Run the executable under Linux (ie. flatpak bundle)

Expected behavior No error

Screenshots n/a

Desktop (please complete the following information):

Smartphone (please complete the following information): n/a

Additional context The problem is located here:

https://github.com/Render96/Render96ex/blob/d0d88b9bbda70283f40c1bbe0c56d03ec4206588/src/pc/pc_main.c#L232

You can't assume that argv[0] always contains the full path. In this situation it only contains the filename.