head 1.2; access; symbols pkgsrc-2020Q3:1.1.0.10 pkgsrc-2020Q3-base:1.1 pkgsrc-2020Q2:1.1.0.8 pkgsrc-2020Q2-base:1.1 pkgsrc-2020Q1:1.1.0.4 pkgsrc-2020Q1-base:1.1 pkgsrc-2019Q4:1.1.0.6 pkgsrc-2019Q4-base:1.1 pkgsrc-2019Q3:1.1.0.2 pkgsrc-2019Q3-base:1.1; locks; strict; comment @// @; 1.2 date 2020.12.03.22.23.33; author nia; state dead; branches; next 1.1; commitid S77wlrRWGYYPAlyC; 1.1 date 2019.07.09.16.33.30; author nia; state Exp; branches; next ; commitid yFuUzFdXr0Lb9ouB; desc @@ 1.2 log @lightspark: Update to 0.8.3 Changes: fix support for sound in PPAPI plugin better handling of obfuscated code new command line argument to ignore unhandled exceptions support for context menus added partial support for CubeTextures and compressed Textures in Stage3d ability to create screenshot added boost dependency removed fullscreen mode implemented better sound handling, especially for AVM1 better support of older (AVM1) swf files support for xml in AVM1 support for video streaming in AVM1 @ text @$NetBSD: patch-src_main.cpp,v 1.1 2019/07/09 16:33:30 nia Exp $ get_current_dir_name is not portable. --- src/main.cpp.orig 2018-06-02 09:25:36.000000000 +0000 +++ src/main.cpp @@@@ -396,9 +396,12 @@@@ int main(int argc, char* argv[]) //When running in a local sandbox, set the root URL to the current working dir else if(sandboxType != SecurityManager::REMOTE) { - char * cwd = get_current_dir_name(); + char cwd[PATH_MAX]; + if (getcwd(cwd, PATH_MAX) == NULL) { + LOG(LOG_ERROR,_("getcwd failed")); + exit(1); + } string cwdStr = string("file://") + string(cwd); - free(cwd); cwdStr += "/"; sys->mainClip->setOrigin(cwdStr, fileName); } @ 1.1 log @Add lightspark. Lightspark is an open source Flash player implementation for playing files in SWF format. @ text @d1 1 a1 1 $NetBSD$ @