-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
mods wont load without supported binary
1 parent
e1f8ee0
commit becb454
Showing
7 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#include "ModUtils.h" | ||
|
||
bool ModUtils::isModCompatible(std::string modPath) { | ||
Zip* zip = new Zip(""); | ||
auto filenames = zip->getAllFileNames(modPath); | ||
|
||
std::vector<std::string>::iterator it; | ||
#ifdef _WIN32 | ||
it = std::find(filenames.begin(), filenames.end(), ".dll"); | ||
#elif defined(__APPLE__) | ||
it = std::find(filenames.begin(), filenames.end(), ".dylib"); | ||
#elif defined(__ANDROID__) | ||
it = std::find(filenames.begin(), filenames.end(). ".so"); | ||
#endif | ||
|
||
if (it != filenames.end()) { | ||
return true; | ||
} else { | ||
return false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#pragma once | ||
|
||
#include <Geode/Geode.hpp> | ||
#include "ziputils.h" | ||
|
||
class ModUtils { | ||
public: | ||
static bool isModCompatible(std::string modPath); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters