Skip to content
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

Add TIC-80 libretro renderer #846

Merged
merged 59 commits into from Jun 20, 2019
Merged

Add TIC-80 libretro renderer #846

merged 59 commits into from Jun 20, 2019

Conversation

@RobLoach
Copy link
Contributor

RobLoach commented Jun 1, 2019

This adds a TIC-80 libretro core for playing TIC-80 cartridges in RetroArch. There are some issues that I'd love attention on...

TODO

  • Crackling audio
  • Fix up the color palette
  • Move libretro-common to 3rd-party submodule?
  • Is set(CMAKE_POSITION_INDEPENDENT_CODE ON) in the correct place?
  • Clean up more of the code
  • Platform Testing
    • Linux
    • MacOSX
    • Windows
    • Raspberry Pi
  • Update the Makefile with libretro buildbot PLATFORM definitions (cross-compile)

Usage

  1. Make sure RetroArch is installed.
  2. Build it
    cmake .
    make
    
  3. Run it
    retroarch -L lib/tic80_libretro.so demos/sfx.tic
    

Screenshot

Here is 8-Bit Panda running through the libretro core...

tic80_libretro

Fixes #519 libretro/libretro-lutro#52

RobLoach added 23 commits Jun 1, 2019
@RobLoach RobLoach changed the title libretro: Add libretro renderer libretro: Add libretro core Jun 2, 2019
@RobLoach RobLoach changed the title libretro: Add libretro core libretro: Add TIC-80 libretro core Jun 2, 2019
RobLoach added 2 commits Jun 2, 2019
Thanks to @fr500 for this recommendation.
RobLoach added 3 commits Jun 10, 2019
This adds some remaining API docs, along with inline comments.
libretro: Add documentation
RobLoach added 4 commits Jun 19, 2019
… libretro
@RobLoach RobLoach mentioned this pull request Jun 19, 2019
Copy link
Owner

nesbox left a comment

I think it would be better if you move tic80_libretro.c and dependent files to the src/system folder.
@RobLoach What do you think?

@RobLoach

This comment has been minimized.

Copy link
Contributor Author

RobLoach commented Jun 19, 2019

How about src/system/libretro/tic80_libretro.c? Don't want to clutter the folder too much.

RobLoach added 5 commits Jun 20, 2019
@RobLoach

This comment has been minimized.

Copy link
Contributor Author

RobLoach commented Jun 20, 2019

Moved to src/system/libretro. Thanks!

@RobLoach

This comment has been minimized.

Copy link
Contributor Author

RobLoach commented Jun 20, 2019

Lots of commits. When merging, you may want to do a squash & merge. Or not, I'll leave that to you 😄

y3JEz

@nesbox
nesbox approved these changes Jun 20, 2019
Copy link
Owner

nesbox left a comment

let's merge it :)

@nesbox nesbox merged commit e008b6d into nesbox:master Jun 20, 2019
2 checks passed
2 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@paradadf

This comment has been minimized.

Copy link

paradadf commented Jun 20, 2019

When the makefile is properly updated, I plan to add this to recalbox. Thanks both for your work!

@hugh-hoang

This comment has been minimized.

Copy link

hugh-hoang commented Oct 14, 2019

@RobLoach Sorry if this is a dumb question because I have very limited knowledge on how cross compiling work (still learning...) but is this possible to make more build targets for this core for the Nintendo devices such as 3DS and Switch? Retroarch running there with the devkitpro toolchains.

Thanks!

@RobLoach

This comment has been minimized.

Copy link
Contributor Author

RobLoach commented Oct 14, 2019

@hugh-hoang Quite possibly, yes! While I haven't tested it, nor do I understand it entirely, but it should be possible to...

  1. git clone https://github.com/libretro/libretro-super.git
  2. Add the platform recipe to https://github.com/libretro/libretro-super/tree/master/recipes
  3. Run...
    ./libretro-fetch.sh tic80
    SINGLE_CORE=tic80 ./libretro-buildbot-recipe.sh recipes/nintendo/libnx
    
@hugh-hoang

This comment has been minimized.

Copy link

hugh-hoang commented Oct 15, 2019

@RobLoach Cool thanks, thats a good start and I will try then we will see.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
7 participants
You can’t perform that action at this time.