Dodaj pliki projektów.
This commit is contained in:
parent
4912ed6774
commit
f6150b0d17
18 changed files with 9210 additions and 0 deletions
59
DataStruct.h
Normal file
59
DataStruct.h
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
/*
|
||||
* This file is part of VoidArchiveTool.
|
||||
*
|
||||
* Copyright (C) 2025 Yanczi
|
||||
*
|
||||
* Void Archive Toolis free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
|
||||
|
||||
|
||||
#define EXTENSION "pak"
|
||||
#define SIGNATURE "VoidFS"
|
||||
|
||||
#define VERSION 11
|
||||
|
||||
|
||||
//Prgoram title
|
||||
#define PROGRAM_TITLE "Void Archive Tool"
|
||||
#define PROGRAM_VERSION "v1.1"
|
||||
#define PROGRAM_AUTHOR "Yanczi"
|
||||
#define PROGRAM_COMPILING "1 September 2025"
|
||||
#define PROGRAM_LICENSE "GNU LGPL v3"
|
||||
|
||||
|
||||
|
||||
struct CargoHead
|
||||
{
|
||||
std::string signature;
|
||||
uint8_t version;
|
||||
uint32_t files;
|
||||
uint64_t table;
|
||||
};
|
||||
|
||||
struct FilesTable
|
||||
{
|
||||
uint8_t nameLen;
|
||||
std::string nameFile;
|
||||
uint64_t offset;
|
||||
uint32_t size;
|
||||
uint32_t rawSize;
|
||||
uint64_t crc;
|
||||
bool isZip;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue