Skip to content

Instantly share code, notes, and snippets.

View ericoporto's full-sized avatar
🎮
making

Érico Porto ericoporto

🎮
making
View GitHub Profile
@ericoporto
ericoporto / cirrus.log
Created August 31, 2023 17:15
Log cirrus Gradle time-out
cd Android && ./and-build.sh build_debug
building debug library and runtime...
/tmp/cirrus-ci-build/Android /tmp/cirrus-ci-build/Android
/tmp/cirrus-ci-build/Android/agsplayer /tmp/cirrus-ci-build/Android /tmp/cirrus-ci-build/Android
Downloading https://services.gradle.org/distributions/gradle-8.3-bin.zip
............10%............20%.............30%............40%.............50%............60%.............70%............80%.............90%............100%
Welcome to Gradle 8.3!
Here are the highlights of this release:
@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)

@ericoporto
ericoporto / Generate Normal Map.lua
Created March 10, 2019 02:29 — forked from ruccho/Generate Normal Map.lua
Lua script for Aseprite that generates normal map automatically.
----------------------------------------------------------------------
-- 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
Error: Object reference not set to an instance of an object.
Version: AGS 3.6.0.48
System.NullReferenceException: Object reference not set to an instance of an object.
at WeifenLuo.WinFormsUI.Docking.DockContentHandler.SetDockState(Boolean isHidden, DockState visibleState, DockPane oldPane)
at WeifenLuo.WinFormsUI.Docking.DockContent.Hide()
at AGS.Editor.WindowsMenuManager.DockPane_CheckedChanged(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnCheckedChanged(EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.set_CheckState(CheckState value)
at System.Windows.Forms.ToolStripMenuItem.set_Checked(Boolean value)
#include "pch.h"
#include <iostream>
#include <map>
#include <string>
// virtual CPU registers
#define SREG_SP 1 // stack pointer
#define SREG_MAR 2 // memory address register
#define SREG_AX 3 // general purpose
inline bool FixupArgument(char fixup, ScriptOperation& codeOp, int argIndex, ccInstance* codeInst, ccInstance& c_this, int pc_at) {
using FixupFunc = std::function<bool(ScriptOperation&, int, ccInstance*, ccInstance&, int)>;
// #define FIXUP_GLOBALDATA 1 // code[fixup] += &globaldata[0]
// #define FIXUP_FUNCTION 2 // code[fixup] += &code[0]
// #define FIXUP_STRING 3 // code[fixup] += &strings[0]
// #define FIXUP_IMPORT 4 // code[fixup] = &imported_thing[code[fixup]]
// #define FIXUP_DATADATA 5 // globaldata[fixup] += &globaldata[0]
// #define FIXUP_STACK 6 // code[fixup] += &stack[0]
Baixe o instalador pra windows da release do projeto coq platform: https://github.com/coq/platform/releases/tag/2022.09.1
NÃO INSTALE, use 7-zip pra extrair o exe em um diretório
copie o bin, lib, etc, share, man para seu /usr/local/
confirme que o arquivo findlib.conf está em /usr/local/lib
No seu bash rc, adicione a linha export OCAMLFIND_CONF=/usr/local/lib/findlib.conf
reinicie seu terminal MSYS2 e digite coqide no terminal
$ ./ags --windowed --log-stdout=+m:all --sdl-log=1
Adventure Game Studio v3.6 Interpreter
Copyright (c) 1999-2011 Chris Jones and 2011-2023 others
ACI version 3.6.0.44
Initializing backend libs
SDL Version: 2.24.1
Initializing game data
Looking for the game data.
Cwd: /home/user/git/userfork/ags/cmake-build-release
diff --git a/Engine/gfx/ali3dogl.cpp b/Engine/gfx/ali3dogl.cpp
index 51c3f3e..eb1c676 100644
--- a/Engine/gfx/ali3dogl.cpp
+++ b/Engine/gfx/ali3dogl.cpp
@@ -269,10 +269,13 @@ void OGLGraphicsDriver::InitGlParams(const DisplayMode &mode)
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT);
+ Debug::Printf(kDbgMsg_Info, "OGL: Vsync mode is %d.", mode.Vsync);
_capsVsync = SDL_GL_SetSwapInterval(mode.Vsync ? 1 : 0) == 0;