Skip to content

Instantly share code, notes, and snippets.

View Botje's full-sized avatar

Dries Harnie Botje

  • 13:25 (UTC +02:00)
View GitHub Profile
@Botje
Botje / JNIExample.cpp
Created July 1, 2019 14:55
Bare minimum example that creates a JSON object
#include <stdio.h>
#include <jni.h>
#include "JNIExample.h"
JNIEXPORT jobject JNICALL Java_JNIExample_sayHello
(JNIEnv *env, jobject object) {
jclass jsoncls = env->FindClass("org/json/JSONObject");
jobject newObj;
jmethodID constructorID = env->GetMethodID(jsoncls,"<init>","()V");
newObj = env->NewObject(jsoncls, constructorID);

Keybase proof

I hereby claim:

  • I am botje on github.
  • I am driesharnie (https://keybase.io/driesharnie) on keybase.
  • I have a public key whose fingerprint is 67FF FD99 2150 E875 CCA7 BEBD BF9E FA33 4BC1 B079

To claim this, I am signing this object:

root@3a9de5a7483b:/tmp/scummvm-master/build# make -k engines/dm/libdm.a
fatal: Not a git repository (or any of the parent directories): .git
C++ engines/dm/detection.o
../engines/dm/detection.cpp:55:26: warning: 'DM::fallbackDesc' defined but not used [-Wunused-variable]
static ADGameDescription fallbackDesc = {
^
C++ engines/dm/dm.o
C++ engines/dm/gfx.o
C++ engines/dm/dungeonman.o
../engines/dm/dungeonman.cpp: In member function 'void DM::DungeonMan::setSquareAspect(uint16*, DM::direction, int16, int16)':
root@31d46d6cd714:/scummvm-master/build# make -k engines/dm/libdm.a
fatal: Not a git repository (or any of the parent directories): .git
C++ engines/dm/detection.o
../engines/dm/detection.cpp:28:26: warning: 'DM::fallbackDesc' defined but not used [-Wunused-variable]
static ADGameDescription fallbackDesc = {
^
C++ engines/dm/dm.o
C++ engines/dm/gfx.o
C++ engines/dm/dungeonman.o
../engines/dm/dungeonman.cpp:335:35: error: explicit qualification in declaration of 'int16 DM::ordinalToIndex(int16)'
@Botje
Botje / cut_residualvm.pot
Created August 26, 2015 18:45
Residualvm.pot cut against scummvm.pot
# LANGUAGE translation for ResidualVM.
# Copyright (C) YEAR ResidualVM Team
# This file is distributed under the same license as the ResidualVM package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: ResidualVM 0.3.0git\n"
"Report-Msgid-Bugs-To: residualvm-devel@lists.sf.net\n"