Skip to content

Commit

Permalink
Release v1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOfficialFloW committed Jan 25, 2018
1 parent 3d6516f commit d498044
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 15 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ project(VitaShell)
include("${VITASDK}/share/vita.cmake" REQUIRED)
set(VITA_APP_NAME "VitaShell")
set(VITA_TITLEID "VITASHELL")
set(VITA_VERSION "01.79")
set(VITA_VERSION "01.80")

# Flags and includes
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -O3 -Wno-unused-variable -Wno-unused-but-set-variable -Wno-format-truncation -fno-lto")
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ The english language file is provided in **'VitaShellCustomization.rar'** and av
* sakya for Lightmp3
* Everybody who contributed on vitasdk

### Changelog 1.8 ###
- Aligned memory to 64bit for optimal I/O.
- Fixed crash when using FTP.

### Changelog 1.79 ###
- Added ability to open .psarc files.
- Added support for multi volume rar archives.
Expand Down
4 changes: 2 additions & 2 deletions archive.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ static int file_open(struct archive *a, void *client_data) {
if (archive_data->fd < 0)
return ARCHIVE_FATAL;

archive_data->buffer = malloc(TRANSFER_SIZE);
archive_data->buffer = memalign(64, TRANSFER_SIZE);
archive_data->block_size = TRANSFER_SIZE;

return ARCHIVE_OK;
Expand Down Expand Up @@ -635,7 +635,7 @@ int extractArchiveFile(const char *src_path, const char *dst_path, FileProcessPa
return fddst;
}

void *buf = malloc(TRANSFER_SIZE);
void *buf = memalign(64, TRANSFER_SIZE);

while (1) {
int read = archiveFileRead(fdsrc, buf, TRANSFER_SIZE);
Expand Down
4 changes: 2 additions & 2 deletions coredump.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,14 @@ static int decompressGzip(uint8_t *dst, int size_dst, uint8_t *src, int size_src
}

int coredumpViewer(const char *file) {
void *buffer = malloc(BIG_BUFFER_SIZE);
void *buffer = memalign(64, BIG_BUFFER_SIZE);
if (!buffer)
return -1;

int size = ReadFile(file, buffer, BIG_BUFFER_SIZE);

if (*(uint16_t *)buffer == 0x8B1F) {
void *out_buf = malloc(BIG_BUFFER_SIZE);
void *out_buf = memalign(64, BIG_BUFFER_SIZE);
if (!out_buf) {
free(buffer);
return -2;
Expand Down
4 changes: 2 additions & 2 deletions file.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ int getFileSha1(const char *file, uint8_t *pSha1Out, FileProcessParam *param) {
return fd;

// Open up the buffer for copying data into
void *buf = malloc(TRANSFER_SIZE);
void *buf = memalign(64, TRANSFER_SIZE);

// Actually take the SHA1 sum
while (1) {
Expand Down Expand Up @@ -348,7 +348,7 @@ int copyFile(const char *src_path, const char *dst_path, FileProcessParam *param
return fddst;
}

void *buf = malloc(TRANSFER_SIZE);
void *buf = memalign(64, TRANSFER_SIZE);

while (1) {
int read = sceIoRead(fdsrc, buf, TRANSFER_SIZE);
Expand Down
2 changes: 1 addition & 1 deletion hex.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ static HexListEntry *hexListGetNthEntry(HexList *list, int n) {
int hexViewer(const char *file) {
int text_viewer = 0;

uint8_t *buffer = malloc(BIG_BUFFER_SIZE);
uint8_t *buffer = memalign(64, BIG_BUFFER_SIZE);
if (!buffer)
return -1;

Expand Down
2 changes: 1 addition & 1 deletion main.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

// VitaShell version major.minor
#define VITASHELL_VERSION_MAJOR 0x01
#define VITASHELL_VERSION_MINOR 0x79
#define VITASHELL_VERSION_MINOR 0x80

#define VITASHELL_VERSION ((VITASHELL_VERSION_MAJOR << 0x18) | (VITASHELL_VERSION_MINOR << 0x10))

Expand Down
2 changes: 1 addition & 1 deletion makezip.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static int zipAddFile(zipFile zf, const char *path, int filename_start, int leve
}

// Add file to zip
void *buf = malloc(TRANSFER_SIZE);
void *buf = memalign(64, TRANSFER_SIZE);

uint64_t seek = 0;

Expand Down
2 changes: 1 addition & 1 deletion photo.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ static void resetImageInfo(vita2d_texture *tex, float *width, float *height, flo
}

int photoViewer(const char *file, int type, FileList *list, FileListEntry *entry, int *base_pos, int *rel_pos) {
char *buffer = malloc(BIG_BUFFER_SIZE);
char *buffer = memalign(64, BIG_BUFFER_SIZE);
if (!buffer)
return -1;

Expand Down
2 changes: 1 addition & 1 deletion pkg/sce_sys/livearea/contents/template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<frame id="frame4">
<liveitem>
<text align="left" text-align="left" word-wrap="off" ellipsis="on">
<str size="18" color="#ffffff" shadow="on">v1.79</str>
<str size="18" color="#ffffff" shadow="on">v1.8</str>
</text>
</liveitem>
</frame>
Expand Down
2 changes: 1 addition & 1 deletion psarc.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ int extractPsarcFile(const char *src_path, const char *dst_path, FileProcessPara
return fddst;
}

void *buf = malloc(TRANSFER_SIZE);
void *buf = memalign(64, TRANSFER_SIZE);

while (1) {
int read = psarcFileRead(fdsrc, buf, TRANSFER_SIZE);
Expand Down
6 changes: 6 additions & 0 deletions resources/changeinfo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -339,4 +339,10 @@
- Fixed refresh license DB when ran from ur0:.<br>
]]>
</changes>
<changes app_ver="01.8">
<![CDATA[
- Aligned memory to 64bit for optimal I/O.<br>
- Fixed crash when using FTP.<br>
]]>
</changes>
</changeinfo>
2 changes: 1 addition & 1 deletion sfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ int setSfoString(void *buffer, const char *name, const char *string) {
}

int SFOReader(const char *file) {
uint8_t *buffer = malloc(BIG_BUFFER_SIZE);
uint8_t *buffer = memalign(64, BIG_BUFFER_SIZE);
if (!buffer)
return -1;

Expand Down
2 changes: 1 addition & 1 deletion text.c
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ int textViewer(const char *file) {
if (!s)
return -1;

char *buffer_base = malloc(BIG_BUFFER_SIZE);
char *buffer_base = memalign(64, BIG_BUFFER_SIZE);
if (!buffer_base)
return -1;

Expand Down

0 comments on commit d498044

Please sign in to comment.