This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
font.base=$(font.monospace) | |
font.small=$(font.monospace) | |
font.comment=$(font.monospace) | |
font.text=$(font.monospace) | |
font.text.comment=$(font.monospace) | |
font.embedded.base=$(font.monospace) | |
font.embedded.comment=$(font.monospace) | |
font.vbs=$(font.monospace) | |
wrap=0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://go.dev/dl/go1.24.1.linux-arm64.tar.gz | |
sudo tar -C /usr/local -xzf go1.24.1.linux-arm64.tar.gz | |
sudo apt install apt-file fd-find scite | |
sudo apt-file update | |
# for building Ikemen | |
sudo apt install libwayland-dev libxkbcommon-dev libasound2-dev libssl-dev | |
sudo apt install fd-find |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Lua script for verifying Ikemen's game assets | |
-- [email protected] | |
-- 20.10 Selasa, 01 Oktober 2024 | |
path_sep = '/' | |
local f_validation = io.open("validation"..os.date("%Y%m%d_%H%M%S")..".txt", "w") | |
if f_validation == nil then | |
print("Error: Can not create validation.txt") | |
return | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <sys/ioctl.h> | |
#include <linux/input.h> | |
#include <string.h> | |
// Function to check if the input device is a keyboard | |
int is_keyboard(const char *device_path) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
drm-common.c:find_drm_device: drmGetDevices2 | |
drm-common.c:find_drm_device: open /dev/dri/card0 | |
drm-common.c:get_resources:find_drm_device: drmModeGetResources | |
drm-common.c:find_drm_device: drmFreeDevices | |
drm-common.c:find_drm_connector: drmModeGetConnector | |
drm-common.c:find_drm_connector: drmModeFreeConnector | |
drm-common.c:find_drm_connector: drmModeGetConnector | |
drm-common.c:init_drm: drmModeGetEncoder | |
drm-common.c:init_drm: drmModeFreeEncoder | |
drm-common.c:init_drm: drmModeGetEncoder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
KMSDRM_GLES_SwapWindow; | |
a. KMSDRM_CreateSurfaces | |
b. KMSDRM_WaitPageflip | |
c. KMSDRM_gbm_surface_release_buffer | |
d. eglSwapBuffers | |
e. KMSDRM_gbm_surface_lock_front_buffer | |
f. KMSDRM_FBFromBO -> KMSDRM_drmModeAddFB | |
g. KMSDRM_drmModeSetCrtc OR KMSDRM_drmModePageFlip -> KMSDRM_WaitPageflip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///C:/Users/Personal Komputer/AppData/Roaming/Code/User/settings.json | |
{ | |
"editor.minimap.enabled": false, | |
"extensions.ignoreRecommendations": true, | |
"git.openRepositoryInParentFolders": "never", | |
"diffEditor.ignoreTrimWhitespace": true, | |
"terminal.integrated.defaultProfile.windows": "PowerShell", | |
"terminal.integrated.profiles.windows": { | |
"PowerShell": { | |
"source": "PowerShell", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Command line tool to test shader compiler (using OpenGL + SDL2). | |
Run it inside folder that contains shader files. | |
If filename consists "frag" then it treat as fragment shader. | |
If filename consists "vert" then it treat as vertex shader. | |
If filename consists "geo" then it treat as geometry shader. | |
Build: | |
gcc main.c -o compile_shader -lGL `sdl2-config --cflags --libs` | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"log" | |
"runtime" | |
"os" | |
"path/filepath" | |
"strings" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// #include <string> | |
#include <map> | |
std::map<std::string, int> scrapeId{ | |
{"megadrive",1}, | |
{"snes",4}, | |
{"psx",57}, | |
{"ps2",58} | |
}; |
NewerOlder