mirror of
https://github.com/archr-linux/fileman.git
synced 2026-07-13 03:19:08 -07:00
Disabled 'Size' option on 351ELEC for now.
This commit is contained in:
@@ -15,7 +15,7 @@ endif
|
||||
|
||||
SRC = $(wildcard src/*.cpp)
|
||||
OBJ = $(patsubst %cpp,%o,$(SRC))
|
||||
COMPILER_FLAGS = $(shell $(SDL2_CONFIG) --cflags) -Wall -pedantic -Wfatal-errors -DDEVICE_$(DEVICE) -DSTART_PATH=\"$(START_PATH)\" -DRES_PATH=\"$(RES_PATH)\"
|
||||
COMPILER_FLAGS = $(shell $(SDL2_CONFIG) --cflags) -Wall -pedantic -Wfatal-errors -DDEVICE_$(DEVICE) -DSTART_PATH=\"$(START_PATH)\" -DRES_PATH=\"$(RES_PATH)\" -DFIRMWARE_$(FIRMWARE)
|
||||
LINKER_FLAGS = $(shell $(SDL2_CONFIG) --libs) -lSDL2_image -lSDL2_ttf
|
||||
|
||||
all : $(OBJ)
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ build351Files() {
|
||||
START_PATH="$3"
|
||||
RES_PATH="$4"
|
||||
make clean
|
||||
make CC="$TOOLCHAIN_DIR"/bin/aarch64-libreelec-linux-gnueabi-g++ DEVICE="$DEVICE" SDL2_CONFIG="$TOOLCHAIN_DIR"/aarch64-libreelec-linux-gnueabi/sysroot/usr/bin/sdl2-config START_PATH="$START_PATH" RES_PATH="$RES_PATH"
|
||||
make CC="$TOOLCHAIN_DIR"/bin/aarch64-libreelec-linux-gnueabi-g++ DEVICE="$DEVICE" SDL2_CONFIG="$TOOLCHAIN_DIR"/aarch64-libreelec-linux-gnueabi/sysroot/usr/bin/sdl2-config START_PATH="$START_PATH" RES_PATH="$RES_PATH" FIRMWARE="$FIRMWARE"
|
||||
mkdir -p build/351Files
|
||||
cp -r 351Files README.md res build/351Files
|
||||
cp launchers/"$FIRMWARE"/351Files.sh build
|
||||
|
||||
+1
-6
@@ -320,7 +320,7 @@ void FileUtils::renameFile(const std::string &p_file1, const std::string &p_file
|
||||
unsigned long long int FileUtils::getDirSize(const std::string &p_path)
|
||||
{
|
||||
// Execute command 'du'
|
||||
std::string l_line = "du -s " + p_path;
|
||||
std::string l_line = "du -bs " + p_path;
|
||||
char l_buffer[256];
|
||||
FILE *l_pipe = popen(l_line.c_str(), "r");
|
||||
if (l_pipe == NULL)
|
||||
@@ -339,10 +339,5 @@ unsigned long long int FileUtils::getDirSize(const std::string &p_path)
|
||||
unsigned long long int l_result = 0;
|
||||
std::istringstream iss(l_line);
|
||||
iss >> l_result;
|
||||
// Convert to bytes
|
||||
if (std::getenv("POSIXLY_CORRECT") != NULL)
|
||||
l_result *= 512;
|
||||
else
|
||||
l_result *= 1024;
|
||||
return l_result;
|
||||
}
|
||||
|
||||
@@ -313,8 +313,10 @@ void MainWindow::openContextMenu(void)
|
||||
l_dialog.addOption("Delete", 3, g_iconTrash);
|
||||
if (nbSelected == 1)
|
||||
l_dialog.addOption("Rename", 9, g_iconEdit);
|
||||
#ifndef FIRMWARE_351ELEC
|
||||
if (m_fileLister.getNbSelected('d') > 0)
|
||||
l_dialog.addOption("Size", 4, g_iconDisk);
|
||||
#endif
|
||||
l_dialog.addOption("Select all", 5, g_iconSelect);
|
||||
l_dialog.addOption("Select none", 6, g_iconNone);
|
||||
l_dialog.addOption("New directory", 7, g_iconNewDir);
|
||||
|
||||
@@ -204,7 +204,6 @@ int IWindow::execute(void)
|
||||
// Render all windows
|
||||
void IWindow::renderAll(void)
|
||||
{
|
||||
//~ INHIBIT(std::cout << "renderAll - " << g_windows.size() << " windows\n";)
|
||||
if (g_windows.empty())
|
||||
return;
|
||||
// First window to draw is the last that is fullscreen
|
||||
|
||||
Reference in New Issue
Block a user