mirror of
https://github.com/patchzyy/wiicompiled
synced 2026-09-10 09:11:52 -04:00
5c76e2b0df
* feature: add apple silicon native macOS support - #81 * (macos): Fix crash This fixes a crash when viewing the rear camera * fix(macos): keep interpolated presentation on main thread * fix(macos): supply Retro-WFC payload during setup * perf(windows): compile out flat-memory fallback check * remove duplicate smoke test * test(macos): name and focus host platform tests * fix(macos): validate Retro-WFC payload cache * fix(payload): preserve staged file access failures * Limit flat-page checks to variable-page hosts --------- Co-authored-by: patchzyy <64382339+patchzyy@users.noreply.github.com>
31 lines
1.0 KiB
C++
31 lines
1.0 KiB
C++
#include "platform/host_platform.h"
|
|
|
|
#include <iostream>
|
|
|
|
int main() {
|
|
if (!RuntimePlatform::ExecutableDirectory()) {
|
|
std::cerr << "unable to resolve the current executable directory\n";
|
|
return 1;
|
|
}
|
|
|
|
const auto userData = RuntimePlatform::ApplicationDataDirectory("WiiCompiledPlatformPathsTest");
|
|
if (userData.filename() != "WiiCompiledPlatformPathsTest") {
|
|
std::cerr << "application-data directory lost its application name: " << userData << '\n';
|
|
return 1;
|
|
}
|
|
if (RuntimePlatform::LogDirectory("WiiCompiledPlatformPathsTest") != userData / "Logs") {
|
|
std::cerr << "log directory is not derived from application data\n";
|
|
return 1;
|
|
}
|
|
#if defined(__APPLE__)
|
|
if (userData.parent_path().filename() != "Application Support" ||
|
|
userData.parent_path().parent_path().filename() != "Library") {
|
|
std::cerr << "macOS application-data directory is not under ~/Library/Application Support: "
|
|
<< userData << '\n';
|
|
return 1;
|
|
}
|
|
#endif
|
|
|
|
return 0;
|
|
}
|