diff --git a/src/avs.cpp b/src/avs.cpp index e6e213a..9cb816c 100644 --- a/src/avs.cpp +++ b/src/avs.cpp @@ -209,7 +209,7 @@ FOREACH_AVS_FUNC_OPTIONAL(AVS_FUNC_PTR) #define AVS_FUNC_LOAD(ret_type, name, ...) LOAD_FUNC(name); #define AVS_FUNC_LOAD_OPTIONAL(ret_type, name, ...) name = (decltype(name))GetProcAddress(mod_handle, exports.name); -bool init_avs(void) { +bool init_avs() { bool success = false; #ifdef _DEBUG diff --git a/src/avs.h b/src/avs.h index 0789d2d..35eaf8d 100644 --- a/src/avs.h +++ b/src/avs.h @@ -226,7 +226,7 @@ bool rapidxml_from_avs_file( ); char* avs_file_to_string(AVS_FILE f, rapidxml::xml_document<>& allocator); std::vector avs_file_to_vec(AVS_FILE f); -bool init_avs(void); +bool init_avs(); unsigned char* lz_compress(unsigned char* input, size_t length, size_t *compressed_length); unsigned char* lz_decompress(unsigned char* input, size_t length, size_t *decompressed_length); diff --git a/src/avs_standalone.cpp b/src/avs_standalone.cpp index ba12a5d..d68271b 100644 --- a/src/avs_standalone.cpp +++ b/src/avs_standalone.cpp @@ -75,7 +75,7 @@ bool boot(bool _print_logs) { return true; } -void shutdown(void) { +void shutdown() { avs_shutdown(); } @@ -86,7 +86,7 @@ void shutdown(void) { return false; \ } -bool load_dll(void) +bool load_dll() { auto avs = LoadLibraryA("avs2-core.dll"); if (!avs) diff --git a/src/avs_standalone.hpp b/src/avs_standalone.hpp index 9be640d..89e0ee2 100644 --- a/src/avs_standalone.hpp +++ b/src/avs_standalone.hpp @@ -2,6 +2,6 @@ namespace avs_standalone { bool boot(bool print_logs); - void shutdown(void); - bool load_dll(void); + void shutdown(); + bool load_dll(); } diff --git a/src/config.cpp b/src/config.cpp index 7fa20c0..cf89370 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -24,7 +24,7 @@ static void parse_list(std::string_view arg, std::set walk_dir(const std::string &path, return result; } -void cache_mods(void) { +void cache_mods() { // this is a bit hacky bool devmode = config.developer_mode; config.developer_mode = true; @@ -77,7 +77,7 @@ void cache_mods(void) { // data is "flat", all others must have their own special subfolders static std::vector game_folders; -void init_modpath_handler(void) { +void init_modpath_handler() { log_verbose("Top level folders:"); for (auto folder : folders_in_folder(".")) { log_verbose(" {}", folder); diff --git a/src/modpath_handler.h b/src/modpath_handler.h index fb7c681..cf840d4 100644 --- a/src/modpath_handler.h +++ b/src/modpath_handler.h @@ -4,9 +4,9 @@ #include #include -void init_modpath_handler(void); +void init_modpath_handler(); void modpath_debug_add_folder(const std::string &folder); -void cache_mods(void); +void cache_mods(); std::vector available_mods(); // mutates source std::string to be all lowercase std::optional normalise_path(const std::string &path, bool demangle = true);