Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - wengwengweng

Pages: [1]
1
General / Re: How to load files from macOS app bundle "Resource" folder?
« on: November 22, 2018, 06:08:14 am »
Thanks. I don't use xcode so I skipped that tutorial page... Got it working now.

2
General / How to load files from macOS app bundle "Resource" folder?
« on: November 22, 2018, 04:19:38 am »
I have a macos app bundle like this:

.
└── Contents
    ├── Frameworks
    ├── Info.plist
    ├── MacOS
    └── Resources
        ├── icon.icns
        └── sprites
            └── car.png
 

I can't load files by calling loadFromFile("sprites/car.png"), however I just tried in SDL using "sprites/*" just works. Now I can only use absolute path to make it work.

Pages: [1]
anything