How witthayapae/whatever works
Ran-Mobile is a native mobile port of the RAN game client, with platform adaptation and a D3D9-to-OpenGL ES rendering shim. The visible startup entry is Android’s native boot function; the tree also contains Android launcher code and tools for inspecting extracted game assets. The README gives no capability overview, so this map is limited to workflows supported by the supplied excerpts and source index. Several asset tools are unsampled; their connections are shown only where the index or excerpt supports them.
Main entry points: d3d9_impl.cpp D3D9 Shim · preview-terrain.js Terrain Preview · main.cpp Native Boot · staticmesh.js Static Mesh Decoder
Components 14
Mobile Runtime
- Android Launcher
native/android/java/com/ran/launcher/RanActivity.java - Native Boot
native/platform/android/main.cpp - Platform Services
native/shim/platform/ran_plat.h - Win32 Compatibility
native/shim/win/windows.h
Graphics Compatibility
- D3D9 Shim
native/shim/d3d/d3d9_impl.cpp - GL Context
native/shim/gl/gl_context.cpp - GL Interfaces
native/shim/gl/gl_thunks.h - Touch Controls
native/shim/platform/touch_ui.cpp
Asset Decoding
- RCC Archive Reader
tools/rcc-extract/rcc.js - Static Mesh Decoder
tools/rcc-extract/staticmesh.js - Octree Decoder
tools/rcc-extract/octree.js - PNG Encoder
tools/rcc-extract/png.js
Asset Inspection
- Terrain Preview
tools/rcc-extract/preview-terrain.js - Mesh Preview
tools/rcc-extract/preview-mesh.js
Connections 10
- Native Boot → Platform Services: logs through
native/platform/android/main.cpp - Native Boot → Win32 Compatibility: includes
native/platform/android/main.cpp - D3D9 Shim → Win32 Compatibility: includes
native/shim/d3d/d3d9_impl.cpp - D3D9 Shim → GL Context: uses backend
native/shim/d3d/d3d9_impl.cpp - D3D9 Shim → GL Interfaces: uses renderer
native/shim/d3d/d3d9_impl.cpp - Terrain Preview → RCC Archive Reader: reads archives
tools/rcc-extract/preview-terrain.js - Terrain Preview → Static Mesh Decoder: decodes terrain
tools/rcc-extract/preview-terrain.js - Terrain Preview → PNG Encoder: encodes image
tools/rcc-extract/preview-terrain.js - Mesh Preview → PNG Encoder: encodes image
tools/rcc-extract/preview-mesh.js - Static Mesh Decoder → Octree Decoder: uses decoder
tools/rcc-extract/staticmesh.js