mirror of
https://github.com/joel16/VitaShell.git
synced 2024-11-23 11:49:40 +00:00
Release v1.8
This commit is contained in:
parent
3d6516f44a
commit
d498044c2e
@ -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")
|
||||
|
@ -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.
|
||||
|
@ -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;
|
||||
@ -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);
|
||||
|
@ -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;
|
||||
|
4
file.c
4
file.c
@ -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) {
|
||||
@ -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);
|
||||
|
2
hex.c
2
hex.c
@ -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;
|
||||
|
||||
|
2
main.h
2
main.h
@ -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))
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
2
photo.c
2
photo.c
@ -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;
|
||||
|
||||
|
@ -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>
|
||||
|
2
psarc.c
2
psarc.c
@ -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);
|
||||
|
@ -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
sfo.c
2
sfo.c
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user