Asset refactor

This commit is contained in:
2026-04-03 12:56:04 -05:00
parent 0885da8d44
commit da1a5a3f1b
59 changed files with 1032 additions and 726 deletions

View 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
);