[0.2a-4] windows can die in a fucking fire

This commit is contained in:
Ben Russell (300178622) 2015-02-07 13:35:37 +13:00
parent 1d173715ae
commit 66f45e17a1
3 changed files with 14 additions and 6 deletions

View File

@ -23,7 +23,7 @@
#define VERSION_X 2
#define VERSION_Y 0
#define VERSION_A 1
#define VERSION_Z 3
#define VERSION_Z 4
// Remember to bump "Z" basically every time you change the engine!
// Remember to bump the version in Lua too!
// Remember to document API changes in a new version!

View File

@ -20,9 +20,9 @@
-- Thanks. --GM
VERSION_ENGINE = {
cmp={0,2,0,1,3},
num=8389632+3,
str="0.2a-3",
cmp={0,2,0,1,4},
num=8389632+4,
str="0.2a-4",
}
--error(""..common.version.num)
@ -145,5 +145,6 @@ VERSION_BUGS = {
{intro=8389632+1, fix=8389632+2, msg="Memory leak when reusing a VA in va_make"},
{intro=8389632+1, fix=8389632+2, msg="VA API lacks support for textures"},
{intro=8389632+2, fix=8389632+3, msg="Compat breakage with va_render_global and textures"},
{intro=4259840+11, fix=8389632+4, msg="[Win32] Needs a workaround for a bug in MinGW's execv function"},
}

View File

@ -98,8 +98,15 @@ int icelua_fn_client_mk_sys_execv(lua_State *L)
SDL_Quit();
#ifdef WIN32
if(main_oldcwd != NULL)
_chdir(main_oldcwd);
const char *follow = main_argv0;
while(*follow != '\x00')
{
if(*follow == '\\' || *follow == '/')
main_argv0 = follow+1;
follow++;
}
//if(main_oldcwd != NULL) _chdir(main_oldcwd);
#endif
printf("argv0: [%s]\n", main_argv0);
fflush(stdout);