-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve portability and multiple fixes #13
Open
deltabeard
wants to merge
6
commits into
binji:main
Choose a base branch
from
deltabeard:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Commits on Feb 12, 2024
-
Makefile: simplify and use pkg-config for SDL2
This allows for improved cross-platform building. Tested working on Windows 10 in a MinGW64 (w64devkit) development environment with the following commit. Signed-off-by: Mahyar Koshkouei <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c1b785a - Browse repository at this point
Copy the full SHA c1b785aView commit details -
Removes mmap() and other non-portable instructions. Only SDL2 functions are used now. Tested working on Windows 10 in a MinGW64 development environment. This may fix issue binji#1, whereby a crash happens if rom.sav is not found. Now, if rom.sav is not found, 32kB is allocated, and then later saved on exit. Not tested on macOS. Signed-off-by: Mahyar Koshkouei <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 20a3f90 - Browse repository at this point
Copy the full SHA 20a3f90View commit details -
Fixes issue binji#10 whereby gameplay would run at the speed of the monitor refresh rate. A delay is automatically calculated on each frame to slow down the gameplay if required. Note that this does not speed up the gameplay if the monitor has a refresh rate lower than 59 Hz. In such cases, VSYNC should just be disabled in the source code. Signed-off-by: Mahyar Koshkouei <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8d8de02 - Browse repository at this point
Copy the full SHA 8d8de02View commit details -
main: use SDL instead of inttypes.h
Might help reduce the number of bytes in the obfuscated version, and hopefully compensate for the additions made in the previous commits. Signed-off-by: Mahyar Koshkouei <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e8ed8be - Browse repository at this point
Copy the full SHA e8ed8beView commit details -
main: center window & misc changes
Reduced length of variable name. Although this doesn't matter as it will become obfuscated anyway. Reduce speed_compensation calculation to single line. Signed-off-by: Mahyar Koshkouei <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for dca3c4e - Browse repository at this point
Copy the full SHA dca3c4eView commit details -
main: fix running too fast when vsync off
Signed-off-by: Mahyar Koshkouei <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9e58632 - Browse repository at this point
Copy the full SHA 9e58632View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.