aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/modmanager.h
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-03-15 05:57:15 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-03-15 05:57:15 +0000
commit50e69bde548c5a1af3385f0eff6aa14c088c21c5 (patch)
tree24a050f6d31b43b7196f0ea8b6283e2d76bc561a /NorthstarDedicatedTest/modmanager.h
parent96aa95aede1fb1f3fde3d2c08728c37520bea4c2 (diff)
downloadNorthstarLauncher-50e69bde548c5a1af3385f0eff6aa14c088c21c5.tar.gz
NorthstarLauncher-50e69bde548c5a1af3385f0eff6aa14c088c21c5.zip
add mod binks, mod rpak loading, and support for non-preload vpks/rpaks
Diffstat (limited to 'NorthstarDedicatedTest/modmanager.h')
-rw-r--r--NorthstarDedicatedTest/modmanager.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/NorthstarDedicatedTest/modmanager.h b/NorthstarDedicatedTest/modmanager.h
index 07e5bffb..c79c507d 100644
--- a/NorthstarDedicatedTest/modmanager.h
+++ b/NorthstarDedicatedTest/modmanager.h
@@ -44,6 +44,21 @@ struct ModScript
std::vector<ModScriptCallback> Callbacks;
};
+// these are pretty much identical, could refactor to use the same stuff?
+struct ModVPKEntry
+{
+ public:
+ bool m_bAutoLoad;
+ std::string m_sVpkPath;
+};
+
+struct ModRpakEntry
+{
+ public:
+ bool m_bAutoLoad;
+ std::string m_sPakPath;
+};
+
class Mod
{
public:
@@ -76,10 +91,14 @@ class Mod
// other files:
- std::vector<std::string> Vpks;
+ std::vector<ModVPKEntry> Vpks;
std::unordered_map<size_t, std::string> KeyValues;
+ std::vector<std::string> BinkVideos;
std::string Pdiff; // only need one per mod
+ std::vector<ModRpakEntry> Rpaks;
+ std::unordered_map<std::string, std::string> RpakAliases; // paks we alias to other rpaks, e.g. to load sp_crashsite paks on the map mp_crashsite
+
// other stuff
bool wasReadSuccessfully = false;