Skip to content

Instantly share code, notes, and snippets.

@Quipyowert2
Quipyowert2 / build.log
Created April 23, 2023 04:28
Visual Studio errors and warnings when building PR #64 Globulation 2
Build started...
1>------ Build started: Project: glob2, Configuration: Debug SDL x64 ------
1>CursorManager.cpp
1>GUIAnimation.cpp
1>GUIBase.cpp
1>GUIButton.cpp
1>D:\Linux_home\nathan\src\glob2\libgag\src\GUIButton.cpp(376,32): warning C4267: '=': conversion from 'size_t' to 'unsigned int', possible loss of data
1>D:\Linux_home\nathan\src\glob2\libgag\src\GUIButton.cpp(416,15): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
1>GUICheckList.cpp
1>GUIFileList.cpp
@Quipyowert2
Quipyowert2 / fix-msys2-path.patch
Created February 7, 2023 21:15
Changes to SCons 4.4.1 to get Globulation 2 to compile on Mingw64 environment of MSYS2
diff --git a/SCons/Environment.py b/SCons/Environment.py
index 7212c89ea..69f13a9c4 100644
--- a/SCons/Environment.py
+++ b/SCons/Environment.py
@@ -587,6 +587,9 @@ class SubstitutionEnvironment:
# othewise force a shell
if not is_List(command):
kw["shell"] = True
+ if "mingw" in self["TOOLS"] and "shell" in kw:
+ command = ["sh", "-c", command]
@Quipyowert2
Quipyowert2 / SConstruct-changes-for-msys2.patch
Created February 4, 2023 06:04
SConstruct changes needed for Globulation 2 to compile on MSys2
diff --git a/SConstruct b/SConstruct
index 8476b3a4..81963e6b 100644
--- a/SConstruct
+++ b/SConstruct
@@ -140,7 +140,7 @@ def configure(env, server_only):
print("Could not find libboost_date_time or libboost_date_time-mt or boost/thread/thread.hpp")
missing.append("libboost_date_time")
env.Append(LIBS=[boost_date_time])
- env.Append(LIBS=["boost_system", "pthread"])
+ env.Append(LIBS=["pthread"])
@Quipyowert2
Quipyowert2 / FOSS Alternatives to Adobe's Premiere Pro.md
Created April 28, 2019 01:18
FOSS Alternatives to Adobe's Premiere Pro

Open Source Video Editors:

  1. Blender - I'm not sure if this one counts since it is more of a CAD program than a video editor.

  2. Avidemux:

Avidemux is a free video editor designed for simple cutting, filtering and encoding tasks. It supports many file types, including AVI, DVD compatible MPEG files, MP4 and ASF, using a variety of codecs. Tasks can be automated using projects, job queue and powerful scripting.

  1. OpenShot:
@Quipyowert2
Quipyowert2 / game_cpp_mismatch_free_delete.patch
Created October 10, 2018 05:19
Fix mismatched free delete in Zaz 'game.cpp' sourceforge.net/p/zaz
diff --git a/src/game.cpp b/src/game.cpp
index 89bb76f..5004bae 100755
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -265,7 +265,7 @@ Game::~Game()
delete ballPaths[b];
}
- delete ballPaths;
+ delete[] ballPaths;