Checks whether system is using dark mode or not.
Signature:
using fnShouldAppsUseDarkMode = bool (WINAPI*)(); // ordinal 132
#include <string> | |
#include "regex.h" | |
/* | |
* Return a new string with all occurrences of 'from' replaced with 'to' | |
*/ | |
std::string replace_all(const std::string &str, const char *from, const char *to) | |
{ | |
std::string result(str); |
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.
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.
Download and Install Emscripten
/home/user
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install latest
./emsdk activate latest
source ./emsdk_env.sh
echo 'source "/home/user/emsdk/emsdk_env.sh"' >> $HOME/.bash_profile
tree-sitter
. This will be enabled by default quite soon now. It is theoretically faster and more powerful than regex based grammars (the one described in this guide), but requires a steeper learning curve. My understanding is that regex based grammars will still be supported however (at least until version 2), so this guide can still be useful.
To enable it yourself, go to Settings -> Core and check Use Tree Sitter Parsers
Links for tree-sitter
help:
tree-sitter
: the main repotree-sitter-cli
: converts a JavaScript grammar to the required C/C++ filesnode-tree-sitter
: module to use Tree-sitter parsers in NodeJSNote: I use ssh keys with git instead of https.
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream [email protected]:ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
#pragma once | |
#include "RuntimeImGui.h" | |
#include "RuntimeInclude.h" | |
RUNTIME_MODIFIABLE_INCLUDE; | |
#include "IconsFontAwesome.h" // from https://github.com/juliettef/IconFontCppHeaders | |
#include "PlatformUtils.h" | |
namespace ImGui |
#! /usr/bin/python2 | |
# -*- coding: utf-8 -*- | |
from PyQt4 import QtCore, QtGui | |
class FlowLayout(QtGui.QLayout): | |
def __init__(self, parent=None, margin=0, spacing=-1): | |
super(FlowLayout, self).__init__(parent) | |
if parent is not None: |
---------------------------------------------------------------------- | |
-- Generate Normal Map | |
-- | |
-- It works only for RGB color mode. | |
---------------------------------------------------------------------- | |
if app.apiVersion < 1 then | |
return app.alert("This script requires Aseprite v1.2.10-beta3") | |
end |
Any GitHub wiki can be cloned by appending wiki.git
to the repo url, so the clone url for
the repo https://myorg/myrepo/
is: [email protected]/myorg/myrepo.wiki.git
(for ssh) or https://github.com/my/myrepo.wiki.git
(for https).
You make edits, and commit and push your changes, like any normal repo.
You need to clone the wiki repo and edit it on your system.