A modded EditSaber for making beat saber maps.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
957 B

  1. #pragma once
  2. #include "ModuleManager.h"
  3. /**
  4. * The public interface to this module. In most cases, this interface is only public to sibling modules
  5. * within this plugin.
  6. */
  7. class IWindowsFileUtility : public IModuleInterface
  8. {
  9. public:
  10. /**
  11. * Singleton-like access to this module's interface. This is just for convenience!
  12. * Beware of calling this during the shutdown phase, though. Your module might have been unloaded already.
  13. *
  14. * @return Returns singleton instance, loading the module on demand if needed
  15. */
  16. static inline IWindowsFileUtility& Get()
  17. {
  18. return FModuleManager::LoadModuleChecked< IWindowsFileUtility >("WindowsFileUtility");
  19. }
  20. /**
  21. * Checks to see if this module is loaded and ready. It is only valid to call Get() if IsAvailable() returns true.
  22. *
  23. * @return True if the module is loaded and ready to use
  24. */
  25. static inline bool IsAvailable()
  26. {
  27. return FModuleManager::Get().IsModuleLoaded("WindowsFileUtility");
  28. }
  29. };