topaz-next / topaz

💎 A server emulator for Final Fantasy XI.
GNU General Public License v3.0
56 stars 80 forks source link

lua FileWatcher is only enabled on x86 debug builds, not all debug builds #2645

Closed SirGouki closed 3 years ago

SirGouki commented 3 years ago

Additional Information (Steps to reproduce/Expected behavior) : When compiling the map server, the file watcher by default is only enabled if the target is x86 debug. It will not enable the file watcher if the target is x64 debug.

Workaround: remove/comment out the preprocessor code #ifdef DEBUG and #endif that are around luautils::EnableFileWatcher(), but this will make it active on all builds. I don't know the proper flag for Windows' 64 debug build.

ghost commented 3 years ago

Definitely enabled on my end with an x64 debug build using VS2019. What build flags are you using?

SirGouki commented 3 years ago

Whatever the default were, I used the cmake to import it into VS2019 community, and just changed it to x64 Debug. I have not changed the default stuff VS adds as far as build flags are concerned.

zach2good commented 3 years ago

I thought hiding the filewatcher stuff inside debug builds was snazzy, but in the end its even annoying me as I try to build/rebuild etc. I'll enable it everywhere soon 👍

As for flags, 32/64 shouldn't change anything, but I THINK the debug flag is officially: _DEBUG, but I don't remember

Won't matter soon anyway

zach2good commented 3 years ago

Fixed with: https://github.com/topaz-next/topaz/commit/e27b448239e33cc707ca5680947aa0161098d6c4