diff options
author | Michael Pavone <pavone@retrodev.com> | 2017-08-23 21:18:17 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2017-08-23 21:18:17 -0700 |
commit | facf0dd0e1606223da276bbf3984c55ca84e83d9 (patch) | |
tree | 1034b38f7f86d1f9a6de1ae7ae1d8cbef01d2930 /util.h | |
parent | f46eaaf8651d2c763de76ce82999d9d7e1230719 (diff) |
Allow reloading current ROM with a hotkey (default F5) and allow locking on a cartridge via menu
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |