ports/graphics/gfract/patches/patch-main_cpp

21 lines
502 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
--- main.cpp.orig Mon Feb 1 13:31:34 2010
+++ main.cpp Thu Oct 27 15:10:55 2016
@@ -340,7 +340,7 @@ void load_palette_cmd(void)
void load_builtin_palette_cmd(void* arg)
{
- int n = reinterpret_cast<int>(arg);
+ int n = *((int*)(&arg));
palette_load_builtin(n);
reapply_palette();
@@ -1001,7 +1001,7 @@ void load_config()
{
using namespace boost::filesystem;
- if (!exists(path(cfgFilename, native)))
+ if (!exists(path(cfgFilename)))
{
return;
}