File tree Expand file tree Collapse file tree 4 files changed +16
-5
lines changed
Expand file tree Collapse file tree 4 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -27,18 +27,29 @@ setup:
2727 @echo " Setting up SSGE..."
2828 @echo " Copying SSGE files to the project directory..."
2929 @echo " This may take a while, please wait..."
30- @rm -f $(OSDIR ) /libSSGE.so
31- @cp -r ../$(OSDIR ) /bin/* $(OSDIR )
30+ ifeq ($(OS ) ,Windows_NT)
31+ @rm -f $(OSDIR)/bin/SSGE.dll
32+ @cp -f ../$(OSDIR)/bin/SSGE.dll $(OSDIR)/SSGE.dll
33+ @cp -f ../$(OSDIR)/bin/SSGE.dll ./$(OSDIR)/SSGE.dll
34+ @cp -f ../$(OSDIR)/bin/SDL2.dll ./$(OSDIR)/SDL2.dll
35+ @cp -f ../$(OSDIR)/bin/SDL2_image.dll ./$(OSDIR)/SDL2_image.dll
36+ @cp -f ../$(OSDIR)/bin/SDL2_ttf.dll ./$(OSDIR)/SDL2_ttf.dll
37+ @cp -f ../$(OSDIR)/bin/SDL2_mixer.dll ./$(OSDIR)/SDL2_mixer.dll
38+ else
39+ @rm -f $(OSDIR)/bin/libSSGE.so
40+ @cp -f ../$(OSDIR)/bin/libSSGE.so $(OSDIR)/libSSGE.so
41+ @cp -f ../$(OSDIR)/bin/libSSGE.so ./$(OSDIR)/libSSGE.so
42+ endif
3243 @rm -rf $(OSDIR)/lib
33- @cp -r ../$(OSDIR ) /lib $(OSDIR ) /lib
44+ @cp -rf ../$(OSDIR)/lib $(OSDIR)/lib
3445
3546clean :
3647 @echo " Cleaning up..."
3748 @rm -f $(OBJ )
3849
3950create_dirs :
4051 @echo " Creating necessary directories..."
41- @mkdir -p $(OSDIR ) $(OSDIR ) /bin $( OSDIR ) / build
52+ @mkdir -p $(OSDIR ) $(OSDIR ) /build
4253
4354$(OSDIR ) /build/% .o : src/% .c
4455 @echo Compiling $* .c...
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ inline static void _updateAnimations() {
145145 for (uint32_t i = 0 , stateDone = 0 ; stateDone < _playingAnim .count && i < _playingAnim .size ; i ++ ) {
146146 SSGE_AnimationState * state = SSGE_Array_Get (& _playingAnim , i );
147147 if (state == NULL || !state -> isPlaying ) continue ;
148- if (!state -> isPlaying ) { puts ( "not playing" ); continue ;}
148+ if (!state -> isPlaying ) continue ;
149149
150150 SSGE_Animation * anim = state -> animation ;
151151 switch (anim -> type ) {
You can’t perform that action at this time.
0 commit comments