fix some warnings

This commit is contained in:
ConfiG 2023-08-02 17:54:17 +03:00
parent 2b1becc233
commit 363d27395c
No known key found for this signature in database
GPG key ID: 44DA1983F524C11B
3 changed files with 5 additions and 3 deletions
loader
CMakeLists.txt
include/Geode/cocos/platform/win32
src/platform/windows

View file

@ -159,6 +159,8 @@ endif()
target_compile_definitions(${PROJECT_NAME} PUBLIC GEODE_EXPORTING MAT_JSON_EXPORTING)
target_compile_definitions(${PROJECT_NAME} PRIVATE _CRT_SECURE_NO_WARNINGS)
# These are only needed for building source :-)
if (NOT GEODE_BUILDING_DOCS)
# Markdown support

View file

@ -78,8 +78,8 @@ public:
HACCEL m_hAccelTable;
LARGE_INTEGER m_nAnimationInterval;
LARGE_INTEGER m_nVsyncInterval;
std::string m_resourceRootPath;
std::string m_startupScriptFilename;
gd::string m_resourceRootPath;
gd::string m_startupScriptFilename;
CCControllerHandler* m_pControllerHandler;
bool m_bUpdateController;
CC_SYNTHESIZE_NV(bool, m_bShutdownCalled, ShutdownCalled);

View file

@ -164,7 +164,7 @@ bool Loader::Impl::userTriedToLoadDLLs() const {
bool triedToLoadDLLs = false;
// Check for .DLLs in mods dir
if (auto files = file::listFiles(dirs::getModsDir(), true)) {
if (auto files = file::readDirectory(dirs::getModsDir(), true)) {
for (auto& file : files.unwrap()) {
if (file.extension() == ".dll") {
triedToLoadDLLs = true;