summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-14 15:14:25 +0100
committerskal <pascal.massimino@gmail.com>2026-02-14 15:14:25 +0100
commit8ce27b7e15f0fc65c8ee78950c7501660b936178 (patch)
tree391f32111b9a30a0156709b6c1ed2fae7b435d57 /src/util
parente38be0dbf5816338ff97e2ee2f9adfff2902dc2b (diff)
style: Apply clang-format to codebase
Diffstat (limited to 'src/util')
-rw-r--r--src/util/asset_manager.cc4
-rw-r--r--src/util/file_watcher.cc2
-rw-r--r--src/util/file_watcher.h6
3 files changed, 6 insertions, 6 deletions
diff --git a/src/util/asset_manager.cc b/src/util/asset_manager.cc
index 274f0f9..0baa063 100644
--- a/src/util/asset_manager.cc
+++ b/src/util/asset_manager.cc
@@ -199,7 +199,7 @@ void DropAsset(AssetId asset_id, const uint8_t* asset) {
// Note: This only works for assets that read from disk at runtime.
// Compiled-in assets cannot be hot-reloaded.
bool ReloadAssetsFromFile(const char* config_path) {
- (void)config_path; // Unused - just for API consistency
+ (void)config_path; // Unused - just for API consistency
// Clear cache to force reload
for (size_t i = 0; i < (size_t)AssetId::ASSET_LAST_ID; ++i) {
@@ -212,4 +212,4 @@ bool ReloadAssetsFromFile(const char* config_path) {
fprintf(stderr, "[ReloadAssets] Cache cleared\n");
return true;
}
-#endif // !defined(STRIP_ALL)
+#endif // !defined(STRIP_ALL)
diff --git a/src/util/file_watcher.cc b/src/util/file_watcher.cc
index 22eb824..ddaea1b 100644
--- a/src/util/file_watcher.cc
+++ b/src/util/file_watcher.cc
@@ -41,4 +41,4 @@ time_t FileWatcher::get_mtime(const char* path) {
return 0;
}
-#endif // !defined(STRIP_ALL)
+#endif // !defined(STRIP_ALL)
diff --git a/src/util/file_watcher.h b/src/util/file_watcher.h
index 2766a43..c183e8a 100644
--- a/src/util/file_watcher.h
+++ b/src/util/file_watcher.h
@@ -5,9 +5,9 @@
#if !defined(STRIP_ALL)
+#include <ctime>
#include <string>
#include <vector>
-#include <ctime>
class FileWatcher {
public:
@@ -28,6 +28,6 @@ class FileWatcher {
time_t get_mtime(const char* path);
};
-#endif // !defined(STRIP_ALL)
+#endif // !defined(STRIP_ALL)
-#endif // FILE_WATCHER_H_
+#endif // FILE_WATCHER_H_