mirror of
https://github.com/BanjoRecomp/BanjoRecomp
synced 2026-05-23 14:41:41 -04:00
Remove "failed to preload executable" print on Linux and MacOS (#80)
This commit is contained in:
+14
-2
@@ -513,13 +513,25 @@ void release_preload(PreloadContext& context) {
|
||||
context = {};
|
||||
}
|
||||
|
||||
#else
|
||||
#elif defined(__linux__) || defined(APPLE)
|
||||
|
||||
struct PreloadContext {
|
||||
|
||||
};
|
||||
|
||||
// TODO implement on other platforms
|
||||
bool preload_executable(PreloadContext& context) {
|
||||
// Preloading isn't implemented on Linux and MacOS, but it's also unnecessary there, as the OS already preloads the executable.
|
||||
// Therefore, we can just consider the executable to be preloaded.
|
||||
return true;
|
||||
}
|
||||
|
||||
void release_preload(PreloadContext& context) {
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
struct PreloadContext {};
|
||||
|
||||
bool preload_executable(PreloadContext& context) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user