mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-16 04:32:52 +00:00
Pulls the three remaining platform-shaped interfaces out of app/common/ and into platform/network/, platform/leaderboard/ and platform/game/, each with a function accessor + true no-op stub backend matching the existing platform/profile/ template. Drops the duplicate PlatformNetworkManagerInterface.h that was a stale copy of the same type. Existing app-side singletons (LeaderboardManager, LinuxLeaderboardManager, IPlatformNetworkStub, LinuxGame) keep working unchanged - the structural fix is just that the interface they depend on now lives in platform/ where it belongs.
14 lines
423 B
C++
14 lines
423 B
C++
#pragma once
|
|
|
|
#include "IPlatformNetwork.h"
|
|
|
|
// Function accessor backed by a function-local static (Meyers singleton).
|
|
// Same shape as platform/profile/profile.h: avoids the static-init-order
|
|
// fiasco. Call sites use the existing `PlatformNetwork.foo()` form via
|
|
// the macro.
|
|
namespace platform_internal {
|
|
IPlatformNetwork& PlatformNetwork_get();
|
|
}
|
|
|
|
#define PlatformNetwork (::platform_internal::PlatformNetwork_get())
|