Playertest: scene/script system refactor and Wii ABI fix
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -50,12 +50,20 @@ errorret_t assetInitLinux(void) {
|
||||
const char_t **path = ASSET_LINUX_SEARCH_PATHS;
|
||||
int32_t error;
|
||||
do {
|
||||
sprintf(
|
||||
searchPath,
|
||||
char_t temp[ASSET_FILE_PATH_MAX];
|
||||
snprintf(
|
||||
temp,
|
||||
ASSET_FILE_PATH_MAX,
|
||||
*path,
|
||||
ASSET.platform.systemPath,
|
||||
ASSET_FILE_NAME
|
||||
);
|
||||
snprintf(
|
||||
searchPath,
|
||||
ASSET_FILE_PATH_MAX,
|
||||
"%s/%s",
|
||||
ASSET.platform.systemPath,
|
||||
temp
|
||||
);
|
||||
|
||||
// Try open
|
||||
ASSET.zip = zip_open(searchPath, ZIP_RDONLY, &error);
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
#include "asset/assetfile.h"
|
||||
|
||||
static const char_t *ASSET_LINUX_SEARCH_PATHS[] = {
|
||||
"%s/%s",
|
||||
"%s",
|
||||
"../%s",
|
||||
"../../%s",
|
||||
|
||||
@@ -8,6 +8,6 @@
|
||||
#pragma once
|
||||
#include "script/scriptcontext.h"
|
||||
|
||||
void modulePlatformLinux(scriptcontext_t *ctx) {
|
||||
scriptContextExec(ctx, "LINUX = true\n");
|
||||
static void modulePlatformLinux(lua_State *L) {
|
||||
luaL_dostring(L, "LINUX = true\n");
|
||||
}
|
||||
Reference in New Issue
Block a user