Mercurial > repos > blastem
comparison util.h @ 1438:e2bd03ed3190
Allow reloading current ROM with a hotkey (default F5) and allow locking on a cartridge via menu
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 23 Aug 2017 21:18:17 -0700 |
parents | 5ceb316c479a |
children | d82af64c94d2 |
comparison
equal
deleted
inserted
replaced
1437:da72344af3ff | 1438:e2bd03ed3190 |
---|---|
40 char is_absolute_path(char *path); | 40 char is_absolute_path(char *path); |
41 //Returns the basename of a path with th extension (if any) stripped | 41 //Returns the basename of a path with th extension (if any) stripped |
42 char * basename_no_extension(char *path); | 42 char * basename_no_extension(char *path); |
43 //Returns the extension from a path or NULL if there is no extension | 43 //Returns the extension from a path or NULL if there is no extension |
44 char *path_extension(char *path); | 44 char *path_extension(char *path); |
45 //Returns the directory portion of a path or NULL if there is no directory part | |
46 char *path_dirname(char *path); | |
45 //Gets the smallest power of two that is >= a certain value, won't work for values > 0x80000000 | 47 //Gets the smallest power of two that is >= a certain value, won't work for values > 0x80000000 |
46 uint32_t nearest_pow2(uint32_t val); | 48 uint32_t nearest_pow2(uint32_t val); |
47 //Should be called by main with the value of argv[0] for use by get_exe_dir | 49 //Should be called by main with the value of argv[0] for use by get_exe_dir |
48 void set_exe_str(char * str); | 50 void set_exe_str(char * str); |
49 //Returns the directory the executable is in | 51 //Returns the directory the executable is in |