mirror of
https://github.com/joel16/VITAlbum.git
synced 2024-11-26 21:10:25 +00:00
textures: Remove unused file icon
This commit is contained in:
parent
4729aa646a
commit
2ab9af9c29
@ -117,7 +117,6 @@ vita_create_vpk(${PROJECT_NAME}.vpk ${VITA_TITLEID} ${PROJECT_NAME}.self
|
||||
FILE sce_sys/livearea/contents/bg.png sce_sys/livearea/contents/bg.png
|
||||
FILE sce_sys/livearea/contents/startup.png sce_sys/livearea/contents/startup.png
|
||||
FILE sce_sys/livearea/contents/template.xml sce_sys/livearea/contents/template.xml
|
||||
FILE res/file.png res/file.png
|
||||
FILE res/folder.png res/folder.png
|
||||
FILE res/image.png res/image.png
|
||||
)
|
||||
|
@ -12,7 +12,7 @@ typedef struct {
|
||||
int delay = 0;
|
||||
} Tex;
|
||||
|
||||
extern Tex folder_texture, file_texture, image_texture;
|
||||
extern Tex folder_texture, image_texture;
|
||||
|
||||
namespace Textures {
|
||||
bool LoadImageFile(unsigned char **data, SceOff *size, Tex *texture);
|
||||
|
BIN
res/file.png
BIN
res/file.png
Binary file not shown.
Before Width: | Height: | Size: 3.3 KiB |
@ -442,29 +442,26 @@ namespace Textures {
|
||||
}
|
||||
|
||||
void Init(void) {
|
||||
unsigned char *data[3] = { nullptr, nullptr, nullptr };
|
||||
SceOff size[3] = { 0, 0, 0 };
|
||||
std::string filenames[3] = {
|
||||
"app0:res/file.png",
|
||||
const int num_icons = 2;
|
||||
unsigned char *data[num_icons] = { nullptr, nullptr };
|
||||
SceOff size[num_icons] = { 0, 0 };
|
||||
std::string filenames[num_icons] = {
|
||||
"app0:res/folder.png",
|
||||
"app0:res/image.png"
|
||||
};
|
||||
|
||||
for (int i = 0; i < 3; i++) {
|
||||
for (int i = 0; i < num_icons; i++) {
|
||||
if (R_FAILED(FS::ReadFile(filenames[i], &data[i], &size[i])))
|
||||
break;
|
||||
}
|
||||
|
||||
bool image_ret = Textures::LoadImagePNG(&data[0], &size[0], &file_texture);
|
||||
bool image_ret = Textures::LoadImagePNG(&data[0], &size[0], &folder_texture);
|
||||
IM_ASSERT(image_ret);
|
||||
|
||||
image_ret = Textures::LoadImagePNG(&data[1], &size[1], &folder_texture);
|
||||
image_ret = Textures::LoadImagePNG(&data[1], &size[1], &image_texture);
|
||||
IM_ASSERT(image_ret);
|
||||
|
||||
image_ret = Textures::LoadImagePNG(&data[2], &size[2], &image_texture);
|
||||
IM_ASSERT(image_ret);
|
||||
|
||||
for (int i = 0; i < 3; i++) {
|
||||
for (int i = 0; i < num_icons; i++) {
|
||||
if (data[i])
|
||||
delete[] data[i];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user