Files
gMod/header/uMod_File.h
T
DubbleClick a7e36fc965 rename to gmod, drop gui (#1)
* remove GUI parts as those will not be updated

* move to header/source

* add cmakelist to create solution

* Change Readme

* Implement modlist.txt loading

* Setup versioning and CD pipeline

* Setup DirectX in pipeline

* Make uMod load from uMod.dll directory

* Fix file loading

* Remove break

* Fix CD pipeline (#1)

* Test cd pipeline

* See what's in Lib directory

* See inside lib/x86

* Manually adjust the build environment

* Disable CD pipeline in PRs
Create CI pipeline

* Fix slashes in path

* Fix build call

* Attempt to fix paths

* Copy dx headers inside the /header folder

* Use ps

* Change cache location

* Path changes

* Improve CMake to look for lib and header files

* Fix missing Lib folder

* Move changes to CD pipeline

* Disable CI on merge and fix CD (#2)

* Fix CD tag (#4)

* Hijack existing DirectX calls (#5)

* Create a dll without listener (#6)

* Fix asset creation in CD pipeline (#7)

* Setup file loading

* create necessary files

* merge latest changes, set output dir

* Change main to master in pipelines
Add fallback for DX libs in CMakeLists

* Setup new generator

* formatting

* remove listener

* Change CD to pick the dll from bin
Change release name to gMod

* more formatting

* add editorconfig

* Setup versioning

* Remove CODEOWNERS

---------

Co-authored-by: Alex Macocian <amacocian@yahoo.com>
2023-11-10 17:40:30 +01:00

57 lines
1.1 KiB
C++

#pragma once
#include "uMod_Main.h"
#include <string>
#include <vector>
#include "uMod_Texture.h"
class uMod_File {
public:
uMod_File();
uMod_File(std::string file);
~uMod_File();
bool FileSupported();
bool PackageFile();
bool SingleFile();
//int AddSingleFileToNode( uMod_TreeViewNode* node);
int GetContentTemplate(const std::string& content);
/*
int GetComment( wxString &tool_tip);
int GetContent( AddTextureClass &tex, bool add);
*/
int GetContent();
int SetFile(const std::string file)
{
FileName = file;
Loaded = false;
return 0;
}
std::string GetFile() { return FileName; }
std::vector<UModTexture> Textures;
private:
int ReadFile();
int UnXOR();
/*
int GetCommentZip( wxString &tool_tip);
int GetCommentTpf( wxString &tool_tip);
*/
int AddFile();
int AddZip();
int AddTpf();
int AddContent(const char* pw);
std::string FileName;
bool Loaded;
bool XORed;
char* FileInMemory;
unsigned int MemoryLength;
unsigned int FileLen;
unsigned long long FileHash;
};