Skip to content

Commit

Permalink
Please work with windows building again
Browse files Browse the repository at this point in the history
  • Loading branch information
JustDoom committed Mar 28, 2024
1 parent cb34971 commit 6adfeec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ jobs:
run: |
mkdir -p ~/.ssh
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
echo "StrictHostKeyChecking no" > ~/.ssh/config
chmod 600 ~/.ssh/id_rsa
ssh-keyscan github.com >> ~/.ssh/known_hosts
git submodule update --init --recursive
Expand Down
4 changes: 3 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ int launch(const std::string& rom, const std::string& executable) {

sf::RenderWindow window(sf::VideoMode(renderer.getColumns() * renderer.getScale(), renderer.getRows() *
renderer.getScale()), "8ChocChip - CHIP-8 Emulator", sf::Style::Titlebar | sf::Style::Close);
// TODO: Add icon - window.setIcon();
sf::Image icon;
icon.loadFromFile("../assets/icon.png");
window.setIcon(64, 64, icon.getPixelsPtr());

sf::Clock clock;

Expand Down

0 comments on commit 6adfeec

Please sign in to comment.