Files
Itemzflow/external/libdumper/include/common.hpp
T
LightningMods 36ca31d21b ItemzCore version: 1.4-V-2024-01-23T18:42:41
- Fixed dumping DLCs and AC w/p data
- Added an Install all PKGs option for folders with more than 1 PKG
- Installing a PKG will no longer boot you back to settings
- Carried over some improvements from the PS5 version of IF
- Replaced reg. vectors for ThreadSafeVectors
- Added the Chinese lang files
- Fixed a bug that would cause the Utility thread to deadlock
- Fixed a Bug that caused the daemon not to give a backtrace on 9.00
2024-01-23 18:56:00 -05:00

42 lines
1.0 KiB
C++

// Copyright (c) 2021 Al Azif
// License: GPLv3
#ifndef COMMON_HPP_
#define COMMON_HPP_
#include <filesystem>
#include <sstream>
#include <stdexcept>
#include "log.h"
#include <ps4sdk.h>
#include <iostream> // std::cout
#include <fstream> // std::ifstream
#ifndef PAGE_SIZE
#define PAGE_SIZE 0x4000
#endif
#ifndef UNUSED
#define UNUSED(x) (void)(x)
#endif
typedef enum orbisCommonDialogStatus {
COMMON_DIALOG_STATUS_NONE = 0,
COMMON_DIALOG_STATUS_INITIALIZED = 1,
COMMON_DIALOG_STATUS_RUNNING = 2,
COMMON_DIALOG_STATUS_FINISHED = 3
} orbisCommonDialogStatus;
extern "C" {
extern orbisCommonDialogStatus sceMsgDialogUpdateStatus(void);
extern int32_t sceMsgDialogProgressBarSetMsg(int target, const char* barMsg);
extern int32_t sceMsgDialogProgressBarSetValue(int target, int rate);
}
void ProgUpdate(uint32_t prog, std::string fmt);
std::filesystem::path customRelative(std::filesystem::path from, std::filesystem::path to);
std::string customFileSize(const std::string& filename);
#endif // COMMON_HPP_