Asset refactor
This commit is contained in:
34
src/dusk/asset/loader/locale/assetlocaleloader.h
Normal file
34
src/dusk/asset/loader/locale/assetlocaleloader.h
Normal file
@@ -0,0 +1,34 @@
|
||||
/**
|
||||
* Copyright (c) 2026 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "asset/asset.h"
|
||||
#include "locale/localemanager.h"
|
||||
|
||||
typedef struct {
|
||||
void *nothing;
|
||||
} assetlocaleloaderparams_t;
|
||||
|
||||
/**
|
||||
* Handler for locale assets.
|
||||
*
|
||||
* @param file Asset file to load the locale from.
|
||||
* @return Any error that occurs during loading.
|
||||
*/
|
||||
errorret_t assetLocaleLoader(assetfile_t *file);
|
||||
|
||||
/**
|
||||
* Loads a locale from the specified path.
|
||||
*
|
||||
* @param path Path to the locale asset.
|
||||
* @param nothing Nothing yet.
|
||||
* @return Any error that occurs during loading.
|
||||
*/
|
||||
errorret_t assetLocaleLoad(
|
||||
const char_t *path,
|
||||
void *nothing
|
||||
);
|
||||
Reference in New Issue
Block a user