Skip to content

Commit

Permalink
Move the game icon into the "res" directory
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmaniak committed Aug 8, 2024
1 parent 232323e commit 81ba74c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ bundle: $(TARGET)
echo "APPL????" > $(bundle_contents)/PkgInfo
cp $(TARGET) $(bundle_contents)/MacOS/
cp -r "res" $(bundle_contents)/Resources/
cp icon.bmp $(bundle_contents)/Resources/
# $(INSTALL_PROGRAM) $< $(bundle_contents)/MacOS/

.PHONY: debug
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion src/graphics.cc
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ bool Graphics::InitWindow() {
}
window_initialized_ = true;

icon = SDL_LoadBMP(kIconName.c_str());
icon = SDL_LoadBMP((RESOURCES_PATH + std::string(SEPARATOR)
+ kIconName).c_str());

if (icon == nullptr) {
return false;
Expand Down

0 comments on commit 81ba74c

Please sign in to comment.