Skip to content

Commit

Permalink
Initial commit. Things are broken.
Browse files Browse the repository at this point in the history
  • Loading branch information
skogaby committed Aug 30, 2015
0 parents commit 5901d3b
Show file tree
Hide file tree
Showing 93 changed files with 63,364 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Auto detect text files and perform LF normalization
* text=auto

# Custom for Visual Studio
*.cs diff=csharp

# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
56 changes: 56 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# Windows shortcuts
*.lnk

# =========================
# Operating System Files
# =========================

# OSX
# =========================

.DS_Store
.AppleDouble
.LSOverride

# Thumbnails
._*

# Files that might appear on external disk
.Spotlight-V100
.Trashes

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

# ==========================
**/*.o
**/*.elf


# ==========================
# Visual Studio files
# ==========================
Debug/
Release/
*.vcxproj
*.vcxproj.filters
340 changes: 340 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

37 changes: 37 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
TARGET = snes9x_next_vita
OBJS = src/apu.o src/bsx.o src/c4emu.o src/cheats.o src/controls.o src/cpu.o src/cpuexec.o \
src/dsp.o src/fxemu.o src/globals.o src/memmap.o src/obc1.o src/ppu.o src/sa1.o \
src/sdd1.o src/seta.o src/snapshot.o src/spc7110.o src/srtc.o src/tile.o \
libretro/libretro.o libretro/memory_stream.o vita/font_data.o vita/font.o vita/file_chooser.o \
vita/utils.o vita/vita_input.o vita/vita_audio.o vita/vita_video.o vita/vita_menu.o vita/main.o

LIBS = -lpsplib -lSceDisplay_stub -lSceGxm_stub -lScePower_stub -lSceCtrl_stub -lSceTouch_stub \
-lSceAudio_stub -lScePower_stub -lSceRtc_stub -lc_stub -lpng16 -lz -lm_stub -lvita2d

PREFIX = $(DEVKITARM)/bin/arm-none-eabi
CC = $(PREFIX)-gcc
CFLAGS = -Wall -O3 -specs=psp2.specs -DVITA
CFLAGS += -w -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -ftree-vectorize \
-mfloat-abi=hard -ffast-math -fsingle-precision-constant -ftree-vectorizer-verbose=2 -fopt-info-vec-optimized -funroll-loops \
-mword-relocations -fno-rtti -Wno-deprecated -Wno-comment -Wno-sequence-point
CFLAGS += -DHAVE_STRINGS_H -DHAVE_STDINT_H -DHAVE_INTTYPES_H -D__LIBRETRO__ -DRIGHTSHIFT_IS_SAR -DINLINE=inline -DCORRECT_VRAM_READS \
-DFRONTEND_SUPPORTS_RGB565 -DCPU_SHUTDOWN
ASFLAGS = $(CFLAGS)

CORE_DIR := .
INCFLAGS := -I$(CORE_DIR)/libretro -I$(CORE_DIR)/src

all: $(TARGET)_fixup.elf

%_fixup.elf: %.elf
psp2-fixup -q -S $< $@

$(TARGET).elf: $(OBJS)
$(CC) $(CFLAGS) $(INCFLAGS) $^ $(LIBS) -o $@

clean:
@rm -rf $(TARGET)_fixup.elf $(TARGET).elf $(OBJS)

copy: $(TARGET)_fixup.elf
@cp $(TARGET)_fixup.elf ~/shared/vitasample.elf
@echo "Copied!"
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# SNES9xVITA
Native SNES emulator for the PlayStation VITA

Currently features Snes9x 1.52 core based on Snes9xNext: https://github.com/libretro/snes9x-next
Will soon feature alongside it the Snes9x 1.43 core based on CATSFC-libretro: https://github.com/libretro/CATSFC-libretro

Depends on:
vita2dlib: https://github.com/xerpi/vita2dlib
vita_portlibs: https://github.com/xerpi/vita_portlibs
psplib4vita: https://github.com/frangarcj/psplib4vita

There are currently a *lot* of missing features, and the emulator does not run at full speed in a lot of games.
89 changes: 89 additions & 0 deletions docs/CATSFC-libretro/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
ndssfc
Copyright (C) 2010 dking <dking024@gmail.com>,
GBAtemp users BassAceGold, ShadauxCat and Nebuleon

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of
the License, or (at your option) any later version.

Some source code with this sdk belong to the source's author, copyright
information are in the source files.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

- - - Based on - - -

Snes9x 1.43 (c) contributors; see a list in any source file under source/.

Permission to use, copy, modify and distribute Snes9x in both binary and
source form, for non-commercial purposes, is hereby granted without fee,
providing that this license information and copyright notice appear with
all copies and any derived work.

This software is provided 'as-is', without any express or implied
warranty. In no event shall the authors be held liable for any damages
arising from the use of this software.

Snes9x is freeware for PERSONAL USE only. Commercial users should
seek permission of the copyright holders first. Commercial use includes
charging money for Snes9x or software derived from Snes9x.

The copyright holders request that bug fixes and improvements to the code
should be forwarded to them so everyone can benefit from the modifications
in future versions.

- - - Using icons - - -

SNES controller icon from the Gaming Icons Pack by deviantART user deleket.

Some rights reserved. This work is licensed under a Creative Commons
Attribution-Noncommercial-No Derivative Works 3.0 License.

See it here: http://deleket.deviantart.com/art/Gaming-Icons-Pack-42723812

The full text of the license is found here:
http://creativecommons.org/licenses/by-nc-nd/3.0/

----

sbutto.svg, smaini.svg, smnsel.svg, smsel.svg, smsgfr.svg, snmaini.svg,
stitle.svg, subsela.svg:

Created by GBAtemp user Nebuleon.

Some rights reserved. This work is licensed under a Creative Commons
Attribution-ShareAlike 3.0 license.

The full text of the license is found here:
http://creativecommons.org/licenses/by-sa/3.0/

----

applications-system.svg, media-flash.svg, system-log-out.svg:

Created by artists for the Tango Icon Project.

This work is in the public domain.

----

key.svg, manage.svg, slide-audio.svg:

Part of the RRZE Icon Set, (c) 2010 Regional Computing Centre of Erlangen
(RRZE).

Get it here: http://rrze-icon-set.berlios.de/download.html

Some rights reserved. This work is licensed under a Creative Commons
Attribution-ShareAlike 3.0 license.

The full text of the license is found here:
http://creativecommons.org/licenses/by-sa/3.0/
2 changes: 2 additions & 0 deletions docs/CATSFC-libretro/version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CAT SFC emulator - Based on BAG SFC emulator r3 - core NDSSFC 1.06

Loading

0 comments on commit 5901d3b

Please sign in to comment.