Skip to content
This repository has been archived by the owner on Dec 26, 2020. It is now read-only.

Commit

Permalink
Rewrote everything using vita2d:
Browse files Browse the repository at this point in the history
Added vita_deactivate() and added new return values for vita_activate()
Made main logic revolve around loop with a switch statement
  • Loading branch information
ZombieWizzard committed Aug 26, 2016
1 parent 51bcc7f commit a30cc1c
Show file tree
Hide file tree
Showing 8 changed files with 515 additions and 118 deletions.
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ SRC_C :=$(call rwildcard, src/, *.c)
OBJ_DIRS := $(addprefix out/, $(dir $(SRC_C:src/%.c=%.o)))
OBJS := $(addprefix out/, $(SRC_C:src/%.c=%.o))

LIBS := -lSceKernel_stub -lSceAppUtil_stub -lSceCommonDialog_stub -lSceIme_stub -lSceCtrl_stub -lSceVshBridge_stub -lSceSysmodule_stub -lSceNet_stub -lSceNetCtl_stub -lSceHttp_stub -lSceSsl_stub -lSceDisplay_stub -lSceReg_stub
LIBS := -lSceKernel_stub -lSceAppUtil_stub -lSceCommonDialog_stub -lSceIme_stub -lSceCtrl_stub \
-lSceVshBridge_stub -lSceSysmodule_stub -lSceNet_stub -lSceNetCtl_stub -lSceHttp_stub \
-lSceSsl_stub -lSceDisplay_stub -lSceGxm_stub -lScePgf_stub -lvita2d -lSceReg_stub

CC := arm-vita-eabi-gcc
STRIP := arm-vita-eabi-strip
Expand All @@ -19,11 +21,11 @@ CONF ?= RELEASE
CFLAGS += -Wl,-q -Wall -O3 -D $(CONF)
ASFLAGS += $(CFLAGS)

.PHONY: all vpk eboot velf clean
all: vpk eboot velf
.PHONY: all vpk eboot elf clean
all: vpk eboot elf
vpk: build/$(TARGET).vpk
eboot: build/eboot.bin
velf: build/$(TARGET).velf
elf: build/$(TARGET).elf

build/%.vpk: vpk/eboot.bin vpk/sce_sys/param.sfo
mkdir -p build
Expand Down
19 changes: 7 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Vita Activator
Use this to get activation data on a HENkaku enabled PlayStation Vita
Use this to get activation data on a HENkaku enabled PlayStation Vita

# Requirements

[libvita2d](https://github.com/xerpi/libvita2d "By xerpi")

# Compiling
Either download latest vita-activator.vpk under releases
Expand All @@ -12,20 +12,15 @@ Clone repo to your pc
git clone http://github.com/ZombieWizzard/vita-activator.git
cd vita-activator
```
and build from sources
```
make clean
make (all|vpk|eboot|velf) CONF=RELEASE
```
or to disable SSL certification (useful for debugging with a proxy)
and build from sources
```
make clean
make (all|vpk|eboot|velf) CONF=DEBUG
make (all|vpk|eboot|elf) CONF=(RELEASE|DEBUG)
```
vita-activator.vpk and eboot.bin will be in build folder
vita-activator.vpk, eboot.bin and vita-activator.elf will be in build folder

# Usage
Once installed run Vita Activator and then follow on screen instructions
Once installed run Vita Activator and then follow on screen instructions

# License
You are free to use this code for any purposes
You are free to use this code for any purposes
5 changes: 4 additions & 1 deletion src/ime/ime_dialog.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "ime_dialog.h"

#include <string.h>

#include <psp2/types.h>
#include <psp2/ime_dialog.h>

Expand Down Expand Up @@ -52,7 +54,7 @@ void utf8_to_utf16(uint8_t *src, uint16_t *dst) {
*dst = '\0';
}

int initImeDialog(char *title, char *initial_text, int max_text_length) {
int initImeDialog(char *title, char *initial_text, int max_text_length, int password) {
if (ime_dialog_running)
return -1;

Expand All @@ -69,6 +71,7 @@ int initImeDialog(char *title, char *initial_text, int max_text_length) {
param.maxTextLength = max_text_length;
param.initialText = ime_initial_text_utf16;
param.inputTextBuffer = ime_input_text_utf16;
param.textBoxMode = password;

int res = sceImeDialogInit(&param);
if (res >= 0)
Expand Down
2 changes: 1 addition & 1 deletion src/ime/ime_dialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
extern "C" {
#endif

int initImeDialog(char *title, char *initial_text, int max_text_length);
int initImeDialog(char *title, char *initial_text, int max_text_length, int password);
uint16_t *getImeDialogInputTextUTF16();
uint8_t *getImeDialogInputTextUTF8();
int isImeDialogRunning();
Expand Down
Loading

0 comments on commit a30cc1c

Please sign in to comment.