Skip to content

Instantly share code, notes, and snippets.

View Yamakuzure's full-sized avatar
💭
Preparing next elogind release

Sven Eden Yamakuzure

💭
Preparing next elogind release
View GitHub Profile
@Yamakuzure
Yamakuzure / BioEngine.ini.diff
Last active May 1, 2021 08:42
Mass Effect 1 BioEngini.ini edited patch for high details and shadows
# Note: The diff is highly edited and will not apply like that. A guide is in the works
diff --git a/Config/BioEngine.ini b/Config/BioEngine.ini
index bde89c4..c6be9cd 100644
--- a/Config/BioEngine.ini
+++ b/Config/BioEngine.ini
@@ -52,7 +51,7 @@ TerrainMaterialMaxTextureCount=16
BeginUPTryCount=200000
bStaticDecalsEnabled=True
bDynamicDecalsEnabled=True
-bForceStaticTerrain=False
@Yamakuzure
Yamakuzure / BIOGame.ini
Created May 1, 2021 08:32
Mass Effect 1 BIOGame.ini non-vanilla sections
; Dead bodies are real...
[BIOC_Base.BioPawnBehavior]
; (...)
m_bAllowPhysicsOnDeadBodies=True
; Have bodies stay much longer and not wildly disappear (Costs memory!)
[BIOC_Base.BioArtPlaceable]
; (...)
m_fCorpseCleanupFirstAttemptTime=360.0 ;How many seconds to wait until the first corpse cleanup attempt
diff --git a/src/basic/fileio.c b/src/basic/fileio.c
index e981cd024..995c30e1f 100644
--- a/src/basic/fileio.c
+++ b/src/basic/fileio.c
@@ -60,12 +60,14 @@ int write_string_stream_ts(
if (fputc('\n', f) == EOF)
return -errno;
- if (flags & WRITE_STRING_FILE_SYNC)
- r = fflush_sync_and_check(f);
diff --git a/src/basic/fileio.c b/src/basic/fileio.c
index e981cd024..2d669b4e1 100644
--- a/src/basic/fileio.c
+++ b/src/basic/fileio.c
@@ -164,11 +164,11 @@ int write_string_file_ts(
}
}
- (void) __fsetlocking(f, FSETLOCKING_BYCALLER);
-
diff --git a/src/basic/cgroup-util.c b/src/basic/cgroup-util.c
index 9235361b6..11102790e 100644
--- a/src/basic/cgroup-util.c
+++ b/src/basic/cgroup-util.c
@@ -824,7 +824,7 @@ int cg_attach(const char *controller, const char *path, pid_t pid) {
xsprintf(c, PID_FMT "\n", pid);
- r = write_string_file(fs, c, WRITE_STRING_FILE_DISABLE_BUFFER);
+ r = write_string_file(fs, c, 0);
diff --git a/src/basic/fileio.c b/src/basic/fileio.c
index e981cd024..ffcbf7309 100644
--- a/src/basic/fileio.c
+++ b/src/basic/fileio.c
@@ -156,7 +156,7 @@ int write_string_file_ts(
goto fail;
}
- f = fdopen(fd, "w");
+ f = fdopen(fd, "we");