Skip to content

Instantly share code, notes, and snippets.

View ericoporto's full-sized avatar
🎮
making

Érico Porto ericoporto

🎮
making
View GitHub Profile

Introduction

Here are some rough notes on building Kirikiri SDL2 for iOS and Android.
Please note that these may or may not be incomplete. Improved documentation is being planned, but not started yet.

Startup Directory selection

Since Android and iOS don't really have concepts of "current directory" or "command line arguments", you should probably hardcode the startup directory in TVPBeforeSystemInit in src/core/base/sdl2/SysInitImpl.cpp.

Android is still a work in progress. You may be able to use file://?/ to access the Android assets folder, but this is untested.

@ericoporto
ericoporto / Dark.md
Created October 8, 2022 16:12 — forked from rounk-ctrl/Dark.md
Win32 Dark Mode

Dark Mode APIs.

API Signatures.

ShouldAppsUseDarkMode()

Checks whether system is using dark mode or not.
Signature:

using fnShouldAppsUseDarkMode = bool (WINAPI*)(); // ordinal 132

AllowDarkModeForWindow(In HWND hWnd, In bool allow)