mirror of
https://github.com/decompals/wibo.git
synced 2025-12-17 00:47:18 +00:00
Various fixes for mwcc/mwld (#32)
* Override GetFileAttributesA for MWCC license.dat * Add WIN_FUNC to FileTimeToLocalFileTime * Use callee_pop_aggregate_return(0) * Lexically normalize paths
This commit is contained in:
5
files.h
5
files.h
@@ -1,4 +1,5 @@
|
||||
#include <filesystem>
|
||||
#include <string>
|
||||
|
||||
namespace files {
|
||||
std::filesystem::path pathFromWindows(const char *inStr);
|
||||
@@ -9,3 +10,7 @@ namespace files {
|
||||
unsigned int setStdHandle(uint32_t nStdHandle, void *hHandle);
|
||||
void init();
|
||||
}
|
||||
|
||||
static bool endsWith(const std::string &str, const std::string &suffix) {
|
||||
return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user