FBNeo/README.md

101 lines
5.6 KiB
Markdown
Raw Normal View History

2019-05-17 18:46:08 +00:00
# FinalBurn Neo
Official Forum: https://neo-source.com
2018-10-23 10:22:50 +00:00
2019-06-30 13:40:25 +00:00
This is the official repository of FinalBurn Neo, an Emulator for Arcade Games & Select Consoles. It is based on the emulators FinalBurn and old versions of [MAME](https://www.mamedev.org)
2018-10-23 10:22:50 +00:00
2019-05-02 03:07:39 +00:00
Use of this program and its source code is subject to the license conditions provided in the [license.txt](/src/license.txt) file in the src folder.
2019-07-28 21:57:51 +00:00
# Work in Progress builds
2020-01-30 22:03:24 +00:00
If the below build status badge is green, you can download the latest builds from [this repository](https://github.com/finalburnneo/FBNeo-WIP-Storage-Facility/releases/tag/appveyor-build). Please note that if the below build status badge is not green then the build will be out of date. As this build is of the last commit occasionally you might run into incomplete code, crashes or other issues that [official releases](https://github.com/finalburnneo/FBNeo/releases) will not have. Also note that the dates might be wrong against the downloads, but if the badge is green the downloads *will* be of the latest commit.
2019-07-28 21:57:51 +00:00
2019-07-28 13:20:38 +00:00
[![Build status](https://ci.appveyor.com/api/projects/status/8rkefxtvxd3cllag/branch/master?svg=true)](https://ci.appveyor.com/project/tmaul/fbneo-kbhgd/branch/master)
2019-06-11 10:41:06 +00:00
2020-01-30 22:16:01 +00:00
Here is the build status of the other versions for which we don't supply a binary directly. A red badge against a platform will indicate that something is wrong with that build. Currenty Raspberry Pi builds are missing from CI, but will one day be added:
![SDL2](https://github.com/finalburnneo/FBNeo/workflows/SDL2%20CI/badge.svg)
![SDL1.2](https://github.com/finalburnneo/FBNeo/workflows/SDL1.2%20CI/badge.svg)
![macOS](https://github.com/finalburnneo/FBNeo/workflows/macOS%20CI/badge.svg)
2020-01-30 22:17:29 +00:00
![VS X64](https://github.com/finalburnneo/FBNeo/workflows/VS2019%20x64%20CI/badge.svg)
![VS win32](https://github.com/finalburnneo/FBNeo/workflows/VS2019%20win32%20CI/badge.svg)
2020-01-30 22:16:01 +00:00
2019-11-22 10:19:00 +00:00
# Ports
2019-12-01 20:25:58 +00:00
Raspberry Pi [build instructions](README-PI.md).
2019-11-22 10:19:00 +00:00
2019-12-01 20:25:58 +00:00
macOS [build instructions](README-macOS.md) and [releases](https://github.com/fbn-mac/FBNeo/releases).
2019-11-22 10:19:00 +00:00
2019-12-29 20:27:30 +00:00
[LibRetro port](https://github.com/libretro/FBNeo) with builds availble via [RetroArch](https://www.retroarch.com/) for most platforms.
2019-11-22 10:19:00 +00:00
For SDL1.2 builds just type `make sdl` (requires SDL1.2 and GCC, make, perl and nasm) [instructions](README-SDL.md)
2020-01-23 22:01:59 +00:00
For SDL2 builds just type `make sdl2` (requires SDL2, SDL2_image, gcc, make, perl and nasm) [instructions](README-SDL.md)
2019-11-22 10:19:00 +00:00
# Reporting Issues
Please raise an issue on the [project GitHub](https://github.com/finalburnneo/FBNeo) or report on the forums at [Neosource](https://neo-source.com)
# What about FB Alpha?
2019-12-01 20:25:58 +00:00
Many of the developers of this project also worked on FB Alpha. Due to a [controversy](https://www.google.com/search?q=capcom+home+arcade+illegal&oq=capcom+home+arcade+illegal), we no longer do, and recommend that everyone use this emulator instead.
2019-12-28 20:02:38 +00:00
# Contributing
We welcome pull requests and other submissions from anyone. We maintain a list of known bugs and features that would be nice to add on the [issue tracker](https://github.com/finalburnneo/FBNeo/issues), some of which would be a good starting point for new contributors.
2019-12-29 20:27:30 +00:00
One of the focuses of FBNeo is ensuring that the codebase is compilable on older systems. This is for many reasons, not least because older hardware still has a use outside of landfill or being stored in a recycling center, but also it can be a lot of fun porting and running FBNeo to other platforms. Currently, this means we will always aim for [C++03 compliance](https://en.wikipedia.org/wiki/C%2B%2B03) as a minimum. Any pull requests should keep this in mind!
2019-12-28 20:02:38 +00:00
2019-12-29 20:27:30 +00:00
## Notes on Contributions
2019-12-28 20:02:38 +00:00
In the root of the source tree there is an [.editorconfig](https://editorconfig.org/) that mandates:
* tabs for indentation
* tabs use 4 columns
Please see the following function for some ideas on how naming, brackets and braces should be
```
void FunctionName(UINT8 var1, UINT16 var2)
{
UINT64 result;
if (var1 * var2 >= 10) {
result = var1 * var2;
} else {
result = var1;
}
}
```
2019-12-29 20:27:30 +00:00
## Source tree structure
2020-01-30 22:03:24 +00:00
The source for FBNeo is layed out in a similar way to how things were in the days of the original FinalBurn. It's just that there are now more directories and source files as the emulator has grown significantly.
2019-12-29 20:27:30 +00:00
```
src/
--/burn <-- This is where the emulation code lives
----/devices <-- This is where emulated devices (EEPROMS, etc) live
----/drv <-- This is where the drivers for Games and Systems live
2020-01-30 22:03:24 +00:00
----/snd <-- This is where the emulation for sound chips and other sound generating devices live
2019-12-29 20:27:30 +00:00
--/burner <-- This is where the frontend code lives
--/cpu <-- This is where the CPU emulation lives
--/dep <-- This is where external dependencies live (such as libpng)
--/intf <-- This is where the platform specific code for each platform that FBNeo supports live (e.g. Video and Sound output)
```
## Porting FBNeo to different systems
2019-12-28 20:02:38 +00:00
In the main source tree, you will see in the intf directory various implementations for different platforms. You should look in here when porting to new platforms. We also encourage new ports, and are happy to have them merged in to the main sourcetree. There is probably a project there for someone to re-implement some of the older ports using the intf standard, should they want to.
For portability we define the following types
```
unsigned char UINT8;
signed char INT8;
unsigned short UINT16;
signed short INT16;
unsigned int UINT32;
signed int INT32;
signed int64 INT64;
unsigned int64 UINT64;
```
2019-12-29 20:27:30 +00:00
It is recommended that you take a look at the other #defines and things in the header files in Burn and Burner, and don't forget that some of the existing code in the intf directory will come in handy for new ports.