Reorganized directory structure.

This commit is contained in:
Andrea Orru 2016-12-01 18:46:38 -05:00
parent 621aa65858
commit 2562edfe9a
48 changed files with 14 additions and 12 deletions

View file

@ -3,13 +3,13 @@ LaiNES
Compact, cycle-accurate NES emulator in ~1000 lines of C++.
![File Browser](./img/files.png)
![Super Mario Bros. 3](./img/super_mario_3.png)
![Kirby's Adventure](./img/kirby.png)
![File Browser](http://i.imgur.com/2tuDlCw.png)
![Super Mario Bros. 3](http://i.imgur.com/Gm4QWsE.png)
![Kirby's Adventure](http://i.imgur.com/xA2vwim.png)
![Controller Settings](./img/ff_settings.png)
![Super Mario Bros.](./img/super_mario.png)
![The Legend of Zelda](./img/zelda.png)
![Star Wars](http://i.imgur.com/j3MmRba.png)
![Super Mario Bros.](http://i.imgur.com/yal0ps1.png)
![The Legend of Zelda](http://i.imgur.com/OLO02ij.png)
## How are lines counted?
There have been some discussions about how the number of lines has been calculated. The claim of ~1k lines doesn't include the libraries in the boost and nes_apu folders. Future plans include eliminating these dependencies to make the code base even slimmer.
@ -60,7 +60,7 @@ The emulator comes bundled with a simple GUI to navigate the filesystem and set
The size of the window and the controls are customizable. LaiNES supports multiple controllers and should work with joysticks as well. The default controls for the first player are as follows:
![Controls](./img/controls.png)
![Controller Settings](http://i.imgur.com/ERQ2nmJ.png)
## Compatibility
LaiNES implements the most common mappers, which should be enough for a good percentage of the games:

View file

@ -1,13 +1,15 @@
from os import environ
flags = ['-O3', '-march=native', '-std=c++11']
VariantDir('build/src', 'src', duplicate=0)
VariantDir('build/lib', 'lib', duplicate=0)
flags = ['-O3', '-flto', '-march=native', '-std=c++14']
env = Environment(ENV = environ,
CXX = 'clang++',
CPPPATH = 'src',
CPPFLAGS = ['-Wno-unused-value'],
CXXFLAGS = flags,
LINKFLAGS = flags,
CPPPATH = ['#lib/include', '#src/include'],
LIBS = ['SDL2', 'SDL2_image', 'SDL2_ttf'])
env.Program('laines', Glob('src/*.cpp') + Glob('src/*/*.cpp'))
env.Program('laines', Glob('build/*/*.cpp') + Glob('build/*/*/*.cpp'))

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

View file

@ -1,6 +1,6 @@
#pragma once
#include "common.hpp"
#include "nes_apu/Nes_Apu.h"
#include <Nes_Apu.h>
namespace CPU {

View file

@ -1,7 +1,7 @@
#pragma once
#include <SDL2/SDL.h>
#include <string>
#include "nes_apu/Nes_Apu.h"
#include <Nes_Apu.h>
#include "common.hpp"
namespace GUI {