Skip to main content

Command Palette

Search for a command to run...

Day 48/100 100 Days of Code

Rebuild Back Better

Updated
1 min read
Day 48/100 100 Days of Code
C

AKA Chris, is a software developer from Athens, Greece. He started programming with basic when he was very young. He lost interest in programming during school years but after an unsuccessful career in audio, he decided focus on what he really loves which is technology.

He loves working with older languages like C and wants to start programming electronics and microcontrollers because he wants to get into embedded systems programming.

It works!

I added cpplocate as a submodule to the project and now the program can find the assets in the .app bundle file. Getting the path to the bundle with the library is quite easy:

std::string Game::execpath = cpplocate::getBundlePath();

Then, I concatenated the path from the bundle to the font:

 execpath + std::string("/Contents/Resources/fonts/ArianaVioleta-dz2K.ttf")

Running the .app bundle now executes the application and loads the fonts gracefully.

100 Days of Code

Part 48 of 50

100 days of code is a good initiative to go into hard mode and spend more time in programming. These 100 days will be focused on completing projects and research.

Up next

Day 49/100 100 Days of Code

Rebuild Back Better