How to make Hollywood exe file loads work in Mac?
Posted: Tue Oct 29, 2024 10:30 am
I have macbook from 2015, I made MacOs x64 executebale and put it to a USB stick.
It seems like it might be working right away, as when I put the stick to Macbook, it shows Hollywood logo, and when I click it, it seems like it actually starts and works.
However, I get an error when trying to Open a file "Cannot read file X".
Thing is, I have also made exe to a Windows, and when I put that stick to a Windows, I don't have that problem.
I am using relative path, as in "pictures/pic1.img".
Because it does work in Windows with the same USB stick, I don't think problem is with the code, but it has something to do with the MacBook. Like maybe the current directory is not the directory where the program is started from, but maybe I need to move this relative folders somewhere elsewhere, but where?
It seems like it might be working right away, as when I put the stick to Macbook, it shows Hollywood logo, and when I click it, it seems like it actually starts and works.
However, I get an error when trying to Open a file "Cannot read file X".
Thing is, I have also made exe to a Windows, and when I put that stick to a Windows, I don't have that problem.
I am using relative path, as in "pictures/pic1.img".
Because it does work in Windows with the same USB stick, I don't think problem is with the code, but it has something to do with the MacBook. Like maybe the current directory is not the directory where the program is started from, but maybe I need to move this relative folders somewhere elsewhere, but where?