core: As an experiment, handle running from a subdirectory (generally out/debug or out/release, since people tend to do that). Remove unused File.stat().
Some checks failed
Build Tilde Friends / Build-All (push) Failing after 4m49s
Some checks failed
Build Tilde Friends / Build-All (push) Failing after 4m49s
This commit is contained in:
16
src/task.h
16
src/task.h
@ -112,12 +112,26 @@ void tf_task_set_db_path(tf_task_t* task, const char* path);
|
||||
void tf_task_set_zip_path(tf_task_t* task, const char* path);
|
||||
|
||||
/**
|
||||
** Get the path to the zipp file being used for static data.
|
||||
** Set the path to the root of the project directory for data.
|
||||
** @param task The task.
|
||||
** @param path The file path or NULL.
|
||||
*/
|
||||
void tf_task_set_root_path(tf_task_t* task, const char* path);
|
||||
|
||||
/**
|
||||
** Get the path to the zip file being used for static data.
|
||||
** @param task The task.
|
||||
** @return The zip file path or NULL.
|
||||
*/
|
||||
const char* tf_task_get_zip_path(tf_task_t* task);
|
||||
|
||||
/**
|
||||
** Get the path to use for reading loose files.
|
||||
** @param task The task.
|
||||
** @return The path or NULL.
|
||||
*/
|
||||
const char* tf_task_get_root_path(tf_task_t* task);
|
||||
|
||||
/**
|
||||
** Set arbitrary named arguments that will be made available to the task.
|
||||
** @param task The task.
|
||||
|
Reference in New Issue
Block a user