From facf0dd0e1606223da276bbf3984c55ca84e83d9 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Wed, 23 Aug 2017 21:18:17 -0700 Subject: Allow reloading current ROM with a hotkey (default F5) and allow locking on a cartridge via menu --- util.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'util.h') diff --git a/util.h b/util.h index 92b643a..a426edb 100644 --- a/util.h +++ b/util.h @@ -42,6 +42,8 @@ char is_absolute_path(char *path); char * basename_no_extension(char *path); //Returns the extension from a path or NULL if there is no extension char *path_extension(char *path); +//Returns the directory portion of a path or NULL if there is no directory part +char *path_dirname(char *path); //Gets the smallest power of two that is >= a certain value, won't work for values > 0x80000000 uint32_t nearest_pow2(uint32_t val); //Should be called by main with the value of argv[0] for use by get_exe_dir -- cgit v1.2.3