forked from Mdashdotdashn/LittleGPTracker
-
Notifications
You must be signed in to change notification settings - Fork 36
Playstation Vita port #170
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
Open
isage
wants to merge
8
commits into
djdiskmachine:master
Choose a base branch
from
isage:vita
base: master
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.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
7547338
Fix SDL2 process
isage 5b62587
Initial PSVITA port
isage 71f492c
Update readme's
isage bba58f3
Update readme and workflows
isage e0199a6
VITA: implement battery level
isage d53ab97
VITA: fix filesystem
isage 5f70baa
VITA: update artwork
isage 7e599c6
Merge branch 'master' into vita
djdiskmachine File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| -include $(PWD)/rules_base | ||
|
|
||
| DEFINES := \ | ||
| -DPLATFORM_$(PLATFORM) \ | ||
| -DBUFFERED \ | ||
| -DCPP_MEMORY \ | ||
| -DHAVE_STDINT_H \ | ||
| -DSDL2 \ | ||
| -DNDEBUG | ||
|
|
||
|
|
||
| DEVKIT = /usr/local/vitasdk/ | ||
| CROSS_COMPILE=$(DEVKIT)bin/arm-vita-eabi- | ||
|
|
||
| CC = $(CROSS_COMPILE)gcc | ||
| CXX = $(CROSS_COMPILE)g++ | ||
| STRIP = $(CROSS_COMPILE)strip | ||
| SYSROOT := $(shell $(CROSS_COMPILE)gcc --print-sysroot) | ||
| SDL_CFLAGS := $(shell $(SYSROOT)/bin/sdl2-config --cflags) | ||
| SDL_LIBS := $(shell $(SYSROOT)/bin/sdl2-config --libs) | ||
|
|
||
| INCLUDES = -Iinclude $(SDL_CFLAGS) -I$(PWD)/../sources | ||
| OPT_FLAGS = -O3 -g -marm -mcpu=cortex-a9 -mfpu=neon -mfloat-abi=hard -ftree-vectorize -ffast-math -fsigned-char -fno-optimize-sibling-calls -fno-rtti | ||
|
|
||
| TOOLPATH=$(DEVKIT)/bin | ||
| PREFIX := arm-bita-eabi- | ||
|
|
||
| CFLAGS := $(DEFINES) $(INCLUDES) $(SDL_CFLAGS) $(OPT_FLAGS) | ||
| CXXFLAGS:= $(CFLAGS) -std=gnu++03 | ||
| LIBS := -lSDL_mixer $(SDL_LIBS) | ||
| LDFLAGS := $(LDFLAGS) -Wl,-q -Wl,-z,nocopyreloc | ||
| LIBDIRS := $(DEKVIT)/lib | ||
| LIBDIRS += $(DEKVIT)/arm-vita-eabi/lib | ||
| OUTPUT = ../lgpt-vita | ||
| EXTENSION:= vpk | ||
|
|
||
| #--------------------------------------------------------------------------------- | ||
| %.vpk: %.bin %.sfo | ||
| vita-make-fself $< $@ | ||
| vita-pack-vpk -s ../lgpt-vita.sfo -b $< \ | ||
| --add ../resources/VITA/sce_sys=sce_sys \ | ||
| $@ | ||
| @echo built ... $(notdir $@) | ||
|
|
||
| #--------------------------------------------------------------------------------- | ||
| %.sfo: | ||
| vita-mksfoex -s TITLE_ID="LGPT00001" "Piggy Tracker" $@ | ||
|
|
||
| #--------------------------------------------------------------------------------- | ||
| %.bin: %.velf | ||
| vita-make-fself $< $@ | ||
| @echo built ... $(notdir $@) | ||
|
|
||
| #--------------------------------------------------------------------------------- | ||
| %.velf: %.elf | ||
| vita-elf-create -s $< $@ | ||
| @echo built ... $(notdir $@) | ||
|
|
||
| #--------------------------------------------------------------------------------- | ||
|
|
||
| %.elf: $(OFILES) | ||
| $(CXX) $(LDFLAGS) -o $@ $(OFILES) $(LIBS) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| Install bin/lgpt-vita.vpk via vitashell | ||
|
|
||
| Copy samplelib, and optionally demo track (lgpt_BETA) and bin/*.xml configs to ux0:/data/lgpt/ | ||
|
|
||
| Enjoy! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| <CONFIG> | ||
| <DUMPEVENT value="YES"/><!--debug logging-->> | ||
| <SCREENMULT value="2"/> <!-- Does nothing on VITA --> | ||
|
|
||
| <!-- Default colors below --> | ||
| <BACKGROUND value = "1D0A1F" /> <!--Background color--> | ||
| <FOREGROUND value = "F5EBFF" /> <!--Text color--> | ||
| <BORDER value = "FF00DD" /> <!--Dialog border color--> | ||
| <HICOLOR1 value = "B750D1" /> <!--Highlight color 1--> | ||
| <HICOLOR2 value = "DB33DB" /> <!--Highlight color 2--> | ||
| <CURSORCOLOR value = "FF00DD" /> <!--Cursor color--> | ||
| <PLAYCOLOR value = "FF00DD" /> <!--Play indicator color--> | ||
| <MUTECOLOR value = "F5EBFF" /> <!--Mute indicator color--> | ||
| <SONGVIEW_FE value = "A55B8F" /> <!--Alt chain color1--> | ||
| <SONGVIEW_00 value = "853B6F" /> <!--Alt chain color2--> | ||
| <ROWCOLOR1 value = "BA28F9" /> <!--Row count color 1 --> | ||
| <ROWCOLOR2 value = "FF00FF" /> <!--Row count color 2--> | ||
| <ALTROWNUMBER value = "4"/> <!--How many rows before alternating--> | ||
| <FONTTYPE value = '0' /> <!-- '0':original '1':digital '2':monster 'CUSTOM': load custom_font.xml--> | ||
|
|
||
| </CONFIG> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| <!-- | ||
| MAPPING FOR VITA | ||
| place in ux0:/data/lgpt/ | ||
| rename to "mapping.xml" to use this | ||
| --> | ||
| <MAPPINGS> | ||
| <MAP src="but:0:8" dst="/event/up" /> | ||
| <MAP src="but:0:6" dst="/event/down" /> | ||
| <MAP src="but:0:7" dst="/event/left" /> | ||
| <MAP src="but:0:9" dst="/event/right" /> | ||
| <MAP src="but:0:2" dst="/event/a" /> | ||
| <MAP src="but:0:1" dst="/event/b" /> | ||
| <MAP src="but:0:5" dst="/event/rshoulder" /> | ||
| <MAP src="but:0:4" dst="/event/lshoulder" /> | ||
| <MAP src="but:0:11" dst="/event/start" /> | ||
| <!-- Map select to rshoulder (LSDJ/M8 style | ||
| <MAP src="but:0:10" dst="/event/rshoulder" /> | ||
| --> | ||
| <!-- | ||
| Macro 1 "Square" button | ||
| Queue Phrases (Current row Phrases cue play) | ||
| <MAP src="but:0:3" dst="/event/lshoulder" /> | ||
| <MAP src="but:0:3" dst="/event/start" /> | ||
| --> | ||
| <!-- | ||
| Macro 2 "Select" button | ||
| Solo phrase (hold to solo, release to unsolo) | ||
| Warning: will do weirdness if combined with other buttons! Use with caution ;) | ||
| <MAP src="but:0:10" dst="/event/a" /> | ||
| <MAP src="but:0:10" dst="/event/rshoulder" /> | ||
| --> | ||
| </MAPPINGS> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions
11
projects/resources/VITA/sce_sys/livearea/contents/template.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
|
|
||
| <livearea style="a1" format-ver="01.00" content-rev="1"> | ||
| <livearea-background> | ||
| <image>bg.png</image> | ||
| </livearea-background> | ||
|
|
||
| <gate> | ||
| <startup-image>startup.png</startup-image> | ||
| </gate> | ||
| </livearea> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please re-use existing lgpt.png
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there bigger resolution version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nvm. updated. also updated startup screen artwork to match psp version