34 lines
715 B
C
34 lines
715 B
C
/**
|
|
* 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
|
|
); |